true
Korea Standard Time
{CMP_INSTANCE_USER_ID1}
Administrator
{HOSTNAME}
1
cmd /c netsh interface ipv4 set address name="이더넷" static {IP_ADDRESS} {NETMASK} {GATEWAY} 1
2
cmd /c netsh interface ipv4 add dns name="이더넷" {DNS_IP}
3
cmd /c timeout 30 > NUL
4
cmd /c net user {CMP_INSTANCE_USER_ID1} {CMP_INSTANCE_USER_PWD1} /add /passwordreq:yes /active:yes
5
cmd /c net localgroup Administrators {CMP_INSTANCE_USER_ID1} /add
6
cmd /c net localgroup Users {CMP_INSTANCE_USER_ID1} /del
7
cmd /c net user {CMP_INSTANCE_USER_ID2} {CMP_INSTANCE_USER_PWD2} /add /passwordreq:yes /active:yes
8
cmd /c net localgroup Administrators {CMP_INSTANCE_USER_ID2} /add
9
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')
10
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
11
cmd /c powershell Add-Content -Path C:\salt\conf\minion -Value 'winrepo_source_dir: salt://sw/win/sls-ng'
12
cmd /c powershell Restart-Service -Name salt-minion