English 中文(简体)
启用多个C2窗口服务器,其自动标识来自商业部
原标题:Launching multiple ec2 windows servers with auto logon from a custom AMI

!

我正试图制造一个窗户,在发射时(使用多[20]个活服务器,在短时间内发射)汽车日志,并运行一个最佳应用(非常幸运的是,我无法拿到该信作为服务。 机器名称也必须是独一无二的。

问题在于做精细的先导,但当我从法庭上发射时,由于机器名称明显不同于原机体形象,它未能登录。

我所管理的唯一办法就是不做精炼、打米、然后在新机器发射和人工改变机器名称时将机器记录在新机器上,并设置自动神经工具。 由于终端用户不是技术性的,时间的限制使得无法有效地开展这一行动,因此THis并不理想。

我是在我的目击者们结束的! 你的帮助非常受赞赏。

问题回答

我知道这是一个非常老的问题。 然而,当我面临一个类似问题时,谷歌还是导致我出现这一问题。 我采取了以下行动来解决我的问题。

  • Customize an instance to your liking。 The AMI will be created using this instance。

    • Create a new user account with admin privileges。 This is needed as SysprepEc2ConfigService will reset the Administrator password。 Add this user to the group Remote Desktop Users, so you can RDP using this user account。
  • Edit EC2 s Sysprepwerfile to can auto-logon。

    • Append the following to component node named Microsoft-Windows-Shell-Setup in the file C:Program FilesAmazonEc2ConfigServicesysprep2008。xml

<AutoLogon>
  <Password>
    <Value>NewUser sPassword</Value>
    <PlainText>true</PlainText>
  </Password>
  <Username>NewUser sName</Username>
  <Enabled>true</Enabled>
  <LogonCount>999</LogonCount>
</AutoLogon>

The resulting file should look like the snippet below。 I have removed the parts not necessary for this answer。

<?xml version="1。0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
  <settings pass="oobeSystem">
    <!-- snip -->
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas。microsoft。com/WMIConfig/2002/State" xmlns:xsi="http://www。w3。org/2001/XMLSchema-instance">
      <!-- snip -->    
        <AutoLogon>
          <Password>
            <Value>NewUser sPassword</Value>
            <PlainText>true</PlainText>
          </Password>
          <Username>NewUser sName</Username>
          <Enabled>true</Enabled>
          <LogonCount>999</LogonCount>
        </AutoLogon>
    </component>
  </settings>
  <!-- snip -->
</unattend>
  • Next we edit the EC2ConfigService settings。

    • In the file "C:Program FilesAmazonEc2ConfigServiceSettingsBundleConfig。xml", ensure the value for SetPasswordAfterSysprep is Yes
    • In the file, "C:Program FilesAmazonEc2ConfigServiceSettingsconfig。xml", ensure the state node has the value Enabled for the plugin Ec2SetPassword
    • In the file, "C:Program FilesAmazonEc2ConfigServiceSettingsconfig。xml", ensure the value for RemoveCredentialsfromSysprepOnStartup is false
  • You are already launching an exe on logon。 Using the same mechanism, also launch a script that will delete the AutoLogonCount setting from the registry。 This step is important, else after 999 (as per the example mentioned above) logins, the autologon will stop。

powershell。exe  -command { Remove-ItemProperty -Path "HKLM:SoftwareMicrosoftWindows NTCurrentVersionwinlogon"  -Name AutoLogonCount -Force -ErrorAction 0 }
  • Now we can start Sysprep。 Either use the UI or the following command。

%ProgramFiles%AmazonEc2ConfigServiceec2config。exe -sysprep

Any instance launched using an AMI created from the above instance, retains the auto-logon behaviour indefinitely。

Don t 知道这一软件是否能够帮助,看洛贡特及其卫星文章:

1) Deployment 2) Commmand line/vbscript control 3) Scheduling





相关问题
Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Programmatically detect Windows cluster configuration?

Does anyone know how to programatically detect that a Windows server is part of a cluster? Further, is it possible to detect that the server is the active or passive node? [Edit] And detect it from ...

get file icon for Outlook appointment (.msg)

I ve read Get File Icon used by Shell and the other similar posts - and already use SHFileInfo to get the associated icon for any given extension, and that works great. However, Outlook uses ".msg" ...

Identifying idle state on a windows machine

I know about the GetLastInputInfo method but that would only give me the duration since last user input - keyboard or mouse. If a user input was last received 10 minutes ago, that wouldn t mean the ...

Terminating a thread gracefully not using TerminateThread()

My application creates a thread and that runs in the background all the time. I can only terminate the thread manually, not from within the thread callback function. At the moment I am using ...

热门标签