当在代理服务器后面运行时,AWS-ApplyPatchBaseline 运行命令会失败。

0

【以下的问题经过翻译处理】 大家好,

我们正在尝试在运行Win 2012 R2的EC2实例上运行一个AWS-ApplyPatchBaseline命令。

该EC2实例具有一个私有IP(没有公共IP),并且正在使用SQUID连接到互联网。我们在IE级别上定义了代理,也使用AWS提供的PowerShell脚本在注册表中使用SSM代理。

我们已将EC2SSMFullAccess IAM角色提供给此实例。

运行此命令将始终失败,并显示以下输出(见结尾)。

我们想知道是否在代理服务器后运行此SSM命令不受支持?

谢谢。

**Patch Summary for :**  

**PatchGroup:**  

**BaselineId:**  

**SnapshotId:**  

**OwnerInformation:**  

**OperationType:扫描**  

**OperationStartTime:0001-01-01T00:00:00.0000000Z**  

**OperationEndTime:0001-01-01T00:00:00.0000000Z**  

**已安装计数:-1**  

**已安装其他计数:-1**  

**失败计数:-1**  

**缺少计数:-1**  

**不适用计数:-1**

**Win-P5HSOSPN3J9 - PatchBaselineOperations Assessment Results - 2017-05-03T14:34:19.561**

**Scan found no missing updates.**

**----------错误-------**

**无法运行命令:退出状态4294967295**

**Invoke-PatchBaselineOperation:抛出状态为ConnectFailure的WebException。**

**在C:\ProgramData\Amazon\SSM\InstanceData\i-0dcd2ed49067b2cc8\document\orchestr**

**ation\f596754b-b9a2-4cc2-982c-c209a387d895\awsrunPowerShellScript\0.awsrunPower**

**ShellScript\_script.ps1:155 char:13**

**+ $response = Invoke-PatchBaselineOperation -Operation Scan -SnapshotId ''
profile picture
EXPERT
asked 6 months ago19 views
1 Answer
0

【以下的回答经过翻译处理】 这个问题将在未来的版本中解决。同时,通过以下方式可以解决此问题。 请使用PSExec在系统上下文下配置IE设置。_ _PS C:\Users\Administrator\Downloads\PSTools> .\psexec -i -s -d cmd _ _然后在系统用户上下文CMD提示符下;_ _C:\Windows\system32>whoami _ _nt authority\system _ _C:\Windows\system32>inetcpl.cpl _ _然后配置与存储在HKCU中相同的设置并重新运行该文档。

profile picture
EXPERT
answered 6 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions