Questions tagged with Windows Provisioning

Content language: English

Sort by most recent

Browse through the questions and answers listed below or filter and sort to narrow down your results.

Hi, I was asked to provide 2 instances for a development project. One instance will use Windows Server and the other CentOS. They need each of the instances to have two network cards, one for internet connection and the other to be privately connected to the other instance. For example, the second network card of the windows server should be 10.88.8.1 and the second card of the centOS should be 10.88.8.10 and it should be an exclusive connection, but those IPs are out of the range of the primary private IP from each aditional network interface. When adding the extra network cards, I see that they come with a specific private IP but from the instances I can change the IP of each instance: in Windows through CPL and in CentOS from the command line, but I can't ping between them . What would be the simplest way to be able to configure those two extra network cards that the client needs? Thanks in advance. Regards.
1
answers
0
votes
19
views
asked 2 months ago
Subscribed to Win 2019 with WordPress paid AMI. No longer need WordPress. Easyest way to convert to free Win 2019 AMI?
1
answers
0
votes
19
views
profile picture
asked 2 months ago
Hello, we currently face some failure during AWS-SSM-Patchbaseline operation, only on some servers such as this one : OS Name: Microsoft Windows Server 2019 Standard OS Version: 10.0.17763 N/A Build 17763 OS Manufacturer: Microsoft Corporation OS Configuration: Member Server OS Build Type: Multiprocessor Free System Model: Virtual Machine System Type: x64-based PC Processor(s): 1 Processor(s) Installed. [01]: Intel64 Family 6 Model 85 Stepping 7 GenuineIntel ~2095 Mhz BIOS Version: Microsoft Corporation Hyper-V UEFI Release v4.0, 12/17/2019 Windows Directory: C:\Windows System Directory: C:\Windows\system32 Boot Device: \Device\HarddiskVolume2 System Locale: fr;French (France) Input Locale: en-us;English (United States) Time Zone: (UTC+01:00) Brussels, Copenhagen, Madrid, Paris Total Physical Memory: 8,095 MB SSM patchbaseline is failing, Command description and status : ![Enter image description here](/media/postImages/original/IMKl1BMGfwSS6Myzs881lwWA) Output : Invoke-PatchBaselineOperation : The find operation did not complete successfully.Additional failure information from Windows Update: HResult: -2145107924 | Message: At C:\ProgramData\Amazon\SSM\InstanceData\mi-05e7367b9c83f5cad\document\orchestration\0be5a4ac-cd73-439a-a928-5917a61e8 587\awsrunPowerShellScript\0.awsrunPowerShellScript\_script.ps1:195 char:13 + $response = Invoke-PatchBaselineOperation -Operation Install -Snapsho ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (Amazon.Patch.Ba...UpdateOperation:InstallWindowsUpdateOperation) [Inv oke-PatchBaselineOperation], Exception + FullyQualifiedErrorId : Exception Level 1: Error Message: The find operation did not complete successfully.Additional failure information from Windows Updat e: HResult: -2145107924 | Message: Stack Trace: at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsUpdateOperation.OperationDidN otSucceed(String operation, IUpdateExceptionCollection exceptions) at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.WindowsUpdateOperation.FilterWindowsUpdateSearch( List`1 filteringMethods) at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.InstallWindowsUpdateOperation.GetBaselineFiltered Updates() at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.InstallWindowsUpdateOperation.GetFilteredUpdates( ) at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.InstallWindowsUpdateOperation.InstallUpdates() at Amazon.Patch.Baseline.Operations.PatchNow.Implementations.InstallWindowsUpdateOperation.DoWindowsUpdateOper ation() ,Amazon.Patch.Baseline.Operations.PowerShellCmdlets.InvokePatchBaselineOperation failed to run commands: exit status 0xffffffff Any help is appreciated.
1
answers
0
votes
59
views
LabRat
asked 2 months ago
Hi, I have two instances which were in Lightsail (1. Windows Server 2. Ubuntu Linux), and I need to transfer them to another AWS account. I got instructions from support on how to go about it. 1. Create snapshots 2. Create an EC2 instance from the snapshot 3. Use the AMI as a baseline snapshot to transfer the server's instance to another account The problem I'm facing in the last step is when I try to transfer the instance, I get the notification that the server's partitions are encrypted. I'm not sure how to go about fixing this. Has anyone been able to solve this?
2
answers
0
votes
34
views
tonyj
asked 2 months ago
Hello mates, I am working on observability. I have a Windows Server 2016, I installed a web application that produces logs. To do the observability, I turned to CloudWatch, to visualize logs and metrics. I installed a CloudWatch agent on the Windows server. Here is the configuration file: ``` { "agent": { "metrics_collection_interval": 5, "logfile": "C:\\ProgramData\\Amazon\\AmazonCloudWatchAgent\\Logs\\amazon-cloudwatch-agent.log", "region": "eu-central-1", "debug": true }, "logs": { "logs_collected": { "files": { "collect_list": [ { "file_path": "C:\\ProgramData\\Amazon\\AmazonCloudWatchAgent\\Logs\\amazon-cloudwatch-agent.log", "log_group_name": "amazon-cloudwatch-agent-group-log.log", "log_stream_name": "amazon-cloudwatch-agent-stream-log.log", "timezone": "UTC" }, { "file_path": "C:\\Users\\michael.ranivo\\Docuements\\Monitoring\\Middleware\\questions.txt", "log_group_name": "test-middleware-group-logs", "log_stream_name": "test-middleware-stream-logs", "timezone":"Local" } ] } }, "force_flush_interval" : 5 }, "metrics": { "metrics_collected": { "namespace": "test-middleware-metrics", "statsd": {}, "Processor": { "measurement": [ {"name": "% Idle Time", "rename": "CPU_IDLE", "unit": "Percent"}, "% Interrupt Time", "% User Time", "% Processor Time" ], "resources": [ "*" ], "append_dimensions": { "d1": "win_foo", "d2": "win_bar" } }, "LogicalDisk": { "measurement": [ {"name": "% Idle Time", "unit": "Percent"}, {"name": "% Disk Read Time", "rename": "DISK_READ"}, "% Disk Write Time" ], "resources": [ "*" ] }, "Memory": { "metrics_collection_interval": 5, "measurement": [ "Available Bytes", "Cache Faults/sec", "Page Faults/sec", "Pages/sec" ], "append_dimensions": { "d3": "win_bo" } }, "Network Interface": { "metrics_collection_interval": 5, "measurement": [ "Bytes Received/sec", "Bytes Sent/sec", "Packets Received/sec", "Packets Sent/sec" ], "resources": [ "*" ], "append_dimensions": { "d3": "win_bo" } }, "System": { "measurement": [ "Context Switches/sec", "System Calls/sec", "Processor Queue Length" ], "append_dimensions": { "d1": "win_foo", "d2": "win_bar" } } }, "append_dimensions": { "ImageId": "${aws:ImageId}", "InstanceId": "${aws:InstanceId}", "InstanceType": "${aws:InstanceType}", "AutoScalingGroupName": "${aws:AutoScalingGroupName}" }, "aggregation_dimensions" : [["ImageId"], ["InstanceId", "InstanceType"], ["d1"],[]] } } ``` When I launch the agent, with this command: ``` & "C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1" -a fetch-config -m onPremise -s -c file:"C:\\ProgramData\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent.json" ``` The agent launches well but when I look at the agent’s logs I have this: ``` 2023/01/19 16:56:29 I! Config has been translated into TOML C:\ProgramData\Amazon\AmazonCloudWatchAgent\\amazon-cloudwatch-agent.toml 2023/01/19 16:56:29 D! toml config [agent] collection_jitter = "0s" debug = true flush_interval = "1s" flush_jitter = "0s" hostname = "" interval = "5s" logfile = "C:\\ProgramData\\Amazon\\AmazonCloudWatchAgent\\Logs\\amazon-cloudwatch-agent.log" logtarget = "lumberjack" metric_batch_size = 1000 metric_buffer_limit = 10000 omit_hostname = false precision = "" quiet = false round_interval = false [inputs] [[inputs.logfile]] destination = "cloudwatchlogs" file_state_folder = "C:\\ProgramData\\Amazon\\AmazonCloudWatchAgent\\Logs\\state" [[inputs.logfile.file_config]] file_path = "C:\\ProgramData\\Amazon\\AmazonCloudWatchAgent\\Logs\\amazon-cloudwatch-agent.log" from_beginning = true log_group_name = "server-perso-amazon-cloudwatch-agent-group-log.log" log_stream_name = "server-perso-amazon-cloudwatch-agent-stream-log.log" pipe = false retention_in_days = -1 timezone = "UTC" [[inputs.logfile.file_config]] file_path = "C:\\Users\\leka\\Documents\\tests.txt" from_beginning = true log_group_name = "server-perso-test-middleware-group-logs" log_stream_name = "server-perso-test-middleware-stream-logs" pipe = false retention_in_days = -1 timezone = "LOCAL" [inputs.logfile.tags] metricPath = "logs" [[inputs.statsd]] interval = "10s" parse_data_dog_tags = true service_address = ":8125" [inputs.statsd.tags] "aws:AggregationInterval" = "60s" metricPath = "metrics" [[inputs.win_perf_counters]] DisableReplacer = true [[inputs.win_perf_counters.object]] Counters = ["% Idle Time", "% Disk Read Time", "% Disk Write Time"] Instances = ["*"] Measurement = "LogicalDisk" ObjectName = "LogicalDisk" WarnOnMissing = true [inputs.win_perf_counters.tags] "aws:StorageResolution" = "true" metricPath = "metrics" [[inputs.win_perf_counters]] DisableReplacer = true interval = "5s" [[inputs.win_perf_counters.object]] Counters = ["Available Bytes", "Cache Faults/sec", "Page Faults/sec", "Pages/sec"] Instances = ["------"] Measurement = "Memory" ObjectName = "Memory" WarnOnMissing = true [[inputs.win_perf_counters.object]] Counters = ["Bytes Received/sec", "Bytes Sent/sec", "Packets Received/sec", "Packets Sent/sec"] Instances = ["*"] Measurement = "Network Interface" ObjectName = "Network Interface" WarnOnMissing = true [inputs.win_perf_counters.tags] "aws:StorageResolution" = "true" d3 = "win_bo" metricPath = "metrics" [[inputs.win_perf_counters]] DisableReplacer = true [[inputs.win_perf_counters.object]] Counters = ["% Idle Time", "% Interrupt Time", "% User Time", "% Processor Time"] Instances = ["*"] Measurement = "Processor" ObjectName = "Processor" WarnOnMissing = true [[inputs.win_perf_counters.object]] Counters = ["Context Switches/sec", "System Calls/sec", "Processor Queue Length"] Instances = ["------"] Measurement = "System" ObjectName = "System" WarnOnMissing = true [inputs.win_perf_counters.tags] "aws:StorageResolution" = "true" d1 = "win_foo" d2 = "win_bar" metricPath = "metrics" [outputs] [[outputs.cloudwatch]] force_flush_interval = "60s" namespace = "server-perso-test-middleware-metrics" profile = "default" region = "eu-central-1" rollup_dimensions = [["ImageId"], ["InstanceId", "InstanceType"], ["d1"], []] shared_credential_file = "C:\\Users\\leka\\.aws\\credentials" tagexclude = ["host", "metricPath"] [[outputs.cloudwatch.metric_decoration]] category = "LogicalDisk" name = "% Idle Time" unit = "Percent" [[outputs.cloudwatch.metric_decoration]] category = "LogicalDisk" name = "% Disk Read Time" rename = "DISK_READ" [[outputs.cloudwatch.metric_decoration]] category = "Processor" name = "% Idle Time" rename = "CPU_IDLE" unit = "Percent" [outputs.cloudwatch.tagpass] metricPath = ["metrics"] [[outputs.cloudwatchlogs]] force_flush_interval = "5s" log_stream_name = "wind" profile = "default" region = "eu-central-1" shared_credential_file = "C:\\Users\\leka\\.aws\\credentials" tagexclude = ["metricPath"] [outputs.cloudwatchlogs.tagpass] metricPath = ["logs"] [processors] [[processors.ec2tagger]] ec2_instance_tag_keys = ["aws:autoscaling:groupName"] ec2_metadata_tags = ["ImageId", "InstanceId", "InstanceType"] profile = "default" refresh_interval_seconds = "0s" shared_credential_file = "C:\\Users\\leka\\.aws\\credentials" [processors.ec2tagger.tagpass] metricPath = ["metrics"] 2023-01-19T15:56:29Z I! Starting AmazonCloudWatchAgent 1.247357.0 2023-01-19T15:56:29Z I! AWS SDK log level not set 2023-01-19T15:56:29Z I! Loaded inputs: logfile statsd win_perf_counters (3x) 2023-01-19T15:56:29Z I! Loaded aggregators: 2023-01-19T15:56:29Z I! Loaded processors: ec2tagger 2023-01-19T15:56:29Z I! Loaded outputs: cloudwatch cloudwatchlogs 2023-01-19T15:56:29Z I! Tags enabled: host=wind 2023-01-19T15:56:29Z I! [agent] Config: Interval:5s, Quiet:false, Hostname:"wind", Flush Interval:1s 2023-01-19T15:56:29Z D! [agent] Initializing plugins 2023-01-19T15:56:29Z I! [processors.ec2tagger] ec2tagger: Check EC2 Metadata. 2023-01-19T15:56:29Z D! Successfully created credential sessions 2023-01-19T15:56:29Z I! [logagent] starting 2023-01-19T15:56:29Z I! [logagent] found plugin cloudwatchlogs is a log backend 2023-01-19T15:56:29Z I! [logagent] found plugin logfile is a log collection 2023-01-19T15:56:30Z D! [logagent] open file count, 0 2023-01-19T15:56:31Z D! [logagent] open file count, 0 2023-01-19T15:56:32Z D! [logagent] open file count, 0 2023-01-19T15:56:33Z D! [logagent] open file count, 0 2023-01-19T15:56:34Z D! [logagent] open file count, 0 2023-01-19T15:56:35Z D! [logagent] open file count, 0 2023-01-19T15:56:36Z D! [logagent] open file count, 0 2023-01-19T15:56:37Z D! [logagent] open file count, 0 2023-01-19T15:56:38Z D! [logagent] open file count, 0 2023-01-19T15:56:39Z D! [logagent] open file count, 0 2023-01-19T15:56:40Z D! [logagent] open file count, 0 2023-01-19T15:56:41Z D! [logagent] open file count, 0 2023-01-19T15:56:42Z D! [logagent] open file count, 0 2023-01-19T15:56:43Z D! [logagent] open file count, 0 2023-01-19T15:56:44Z D! [logagent] open file count, 0 2023-01-19T15:56:45Z D! [logagent] open file count, 0 2023-01-19T15:56:46Z D! [logagent] open file count, 0 2023-01-19T15:56:47Z D! [logagent] open file count, 0 2023-01-19T15:56:48Z D! [logagent] open file count, 0 2023-01-19T15:56:49Z D! [logagent] open file count, 0 2023-01-19T15:56:50Z D! [logagent] open file count, 0 2023-01-19T15:56:51Z D! [logagent] open file count, 0 2023-01-19T15:56:52Z D! [logagent] open file count, 0 2023-01-19T15:56:54Z D! [logagent] open file count, 0 2023-01-19T15:56:54Z D! [logagent] open file count, 0 2023-01-19T15:56:55Z D! [logagent] open file count, 0 2023-01-19T15:56:56Z D! [logagent] open file count, 0 2023-01-19T15:56:57Z D! [logagent] open file count, 0 2023-01-19T15:56:58Z D! [logagent] open file count, 0 2023-01-19T15:56:59Z D! [logagent] open file count, 0 2023-01-19T15:56:59Z I! CWAGENT_LOG_LEVEL is set to "DEBUG" 2023-01-19T15:57:00Z D! [logagent] open file count, 0 2023-01-19T15:57:01Z D! [logagent] open file count, 0 2023-01-19T15:57:02Z D! [logagent] open file count, 0 2023-01-19T15:57:03Z D! [logagent] open file count, 0 2023-01-19T15:57:04Z D! [logagent] open file count, 0 2023-01-19T15:57:05Z D! [logagent] open file count, 0 2023-01-19T15:57:06Z D! [logagent] open file count, 0 2023-01-19T15:57:07Z D! [logagent] open file count, 0 2023-01-19T15:59:18Z E! Failed to get credential from session: NoCredentialProviders: no valid providers in chain caused by: EnvAccessKeyNotFound: failed to find credentials in the environment. SharedCredsLoad: failed to load profile, . EC2RoleRequestError: no EC2 instance role found caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/meta-data/iam/security-credentials/": dial tcp 169.254.169.254:80: connectex: Une tentative de connexion a échoué car le parti connecté n’a pas répondu convenablement au-delà d’une certaine durée ou une connexion établie a échoué car l’hôte de connexion n’a pas répondu. 2023-01-19T15:59:18Z D! [logagent] open file count, 0 2023-01-19T15:59:19Z D! [logagent] open file count, 0 2023-01-19T15:59:20Z D! [logagent] open file count, 0 2023-01-19T15:59:21Z D! [logagent] open file count, 0 2023-01-19T15:59:22Z D! [logagent] open file count, 0 2023-01-19T15:59:23Z D! [logagent] open file count, 0 2023-01-19T15:59:24Z D! [logagent] open file count, 0 2023-01-19T15:59:25Z E! [processors.ec2tagger] ec2tagger: Unable to retrieve EC2 Metadata. This plugin must only be used on an EC2 instance. 2023-01-19T15:59:25Z E! [telegraf] Error running agent: could not initialize processor processors.ec2tagger: EC2MetadataRequestError: failed to get EC2 instance identity document caused by: RequestError: send request failed caused by: Get "http://169.254.169.254/latest/dynamic/instance-identity/document": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 2023/01/19 16:59:25 E! Error when starting Agent, Error is exit status 1 ``` I removed the metric part from the configuration file and this worked. I have no idea how my agent cloudwatch can send the metrics to cloudwatch. Do you have any idea? Thank you in advance for what I read.
1
answers
0
votes
41
views
asked 2 months ago
I cannot ping or telnet to rdp port(3389) from my NAT instance or my local PC event I already enabled all tracffics from any IPv4 for that instance. I tried creating many times, but I got the same result. I think the instance windows was not start normally. In two weeks ago, I created one in HongKong zone and didn't face the problem. Now, I tred in Singapore zone. Thanks
2
answers
0
votes
28
views
asked 3 months ago
When using the RDP session of fleet manager, I get strange errors when trying to type into certain windows. For example, I can type into the search bar and notepad, but when I open a PowerShell window, it doesn't respond to key inputs. The Command window works but the PowerShell window is what I use for a lot of admin tasks. Its making fleet manager almost unusable now. Is there a way to fix this?
1
answers
0
votes
236
views
asked 3 months ago
I created a SecureString parameter in AWS Systems Manager Parameter Store. It uses the default KMS key for encryption/decryption. I also created an association in State Manager to run "AWS-RunPowerShellScript" using the command "Net.exe user administrator {{ssh:<name of my parameter>}}" to have State Manager update the password across all of my associated Windows EC2 instances. However, the update only works when I reference a String parameter but does NOT work when I reference a SecureString parameter. Any ideas why I can't reference a SecureString parameter? How do I reference a SecureString parameter in this State Manager association?
1
answers
0
votes
45
views
asked 3 months ago
I have the .pem file with the RSA key but after launching the instance, when I click "Get password" It gets stuck in the following message. Password is not available. Please wait at least 4 minutes after launching an instance before trying to retrieve the auto-generated password. Is there an alternative for retrieving the password? Thank you in advance.
2
answers
0
votes
105
views
noxuz
asked 3 months ago
Hello, We have created workspaces (Windows Server 2016), and copy/paste b/n the workspace and the local computer is not working. It is not restricted by policy. It is not working from the workspace client and from the web as well. I tried to create a policy to allow copy/paste too, and still not working. Can someone help here, is there some workaround, is this a known issue ? Best Regards,
1
answers
0
votes
252
views
asked 3 months ago
As the title, built in lightsail Windows Host, I want to use the local Windows built @ - @ in RDP tool connection, but always prompted the password error, I should not have changed the password
1
answers
0
votes
29
views
asked 3 months ago
1
answers
0
votes
26
views
asked 3 months ago