true Korea Standard Time {CMP_INSTANCE_USER_ID1} Administrator {HOSTNAME} 1 cmd /c net user {CMP_INSTANCE_USER_ID1} {CMP_INSTANCE_USER_PWD1} /add /passwordreq:yes /active:yes 2 cmd /c net localgroup Administrators {CMP_INSTANCE_USER_ID1} /add 3 cmd /c net localgroup Users {CMP_INSTANCE_USER_ID1} /del 4 cmd /c net user {CMP_INSTANCE_USER_ID2} {CMP_INSTANCE_USER_PWD2} /add /passwordreq:yes /active:yes 5 cmd /c net localgroup Administrators {CMP_INSTANCE_USER_ID2} /add 6 cmd /c powershell -ep ByPass -WindowStyle Normal (New-Object System.Net.WebClient).DownloadFile('http://{CMP_INT_REPO_IP}/files/saltstack/Salt-Minion-3001.1-Py3-AMD64-Setup.exe', 'C:\Windows\Temp\Salt-Minion-3001.1-Py3-AMD64-Setup.exe') 7 cmd /c powershell Start-Process "C:\Windows\Temp\Salt-Minion-3001.1-Py3-AMD64-Setup.exe" -ArgumentList '/S /master={CMP_SS_MASTER_LIST} /minion-name={HOSTNAME}' -Wait -NoNewWindow -PassThru 8 cmd /c powershell Add-Content -Path C:\salt\conf\minion -Value 'winrepo_source_dir: salt://sw/win/sls-ng' 9 cmd /c powershell Restart-Service -Name salt-minion