Skip to content
Snippets Groups Projects
Commit a3a5695a authored by Martin Čuchran's avatar Martin Čuchran
Browse files

Update pv176.yaml

parent a29fd701
No related branches found
No related tags found
No related merge requests found
......@@ -79,10 +79,6 @@ resources:
template: |
#ps1_sysnative
$ErrorActionPreference = 'Stop'
$user = [ADSI]'WinNT://./Administrator'
$user.SetPassword('safe_mode_administrator_password')
NET USER pv176 safe_mode_administrator_password /add
NET LOCALGROUP Administrators pv176 /add
$IP = '10.0.0.2'
$MaskBits = 8
$Gateway = '10.0.0.1'
......@@ -91,6 +87,10 @@ resources:
$adapter = Get-NetAdapter | ? {$_.Status -eq "up"}
$adapter | New-NetIPAddress -AddressFamily $IPType -IPAddress $IP -PrefixLength $MaskBits -DefaultGateway $Gateway
$adapter | Set-DnsClientServerAddress -ServerAddresses $DNS
$user = [ADSI]'WinNT://./Administrator'
$user.SetPassword('safe_mode_administrator_password')
NET USER pv176 safe_mode_administrator_password /add
NET LOCALGROUP Administrators pv176 /add
exit 1001
params:
safe_mode_administrator_password: { get_param: safe_mode_administrator_password }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment