Skip to content
Snippets Groups Projects
Commit b6adbea8 authored by Martin Cuchran's avatar Martin Cuchran
Browse files

Ps1 added

parent ecfd1665
No related branches found
No related tags found
Loading
#ps1_sysnative
$ErrorActionPreference = 'Stop'
$ip = (int)%index%+2
$adapter = Get-NetAdapter
$adapter | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress '10.0.0.'+$ip -PrefixLength '8' -DefaultGateway '10.0.0.1';$adapter | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33'
$user = [ADSI]'WinNT://./Administrator'
$user.SetPassword('Password.1')
NET USER pv176 Password.1 /add
NET LOCALGROUP Administrators pv176 /add
exit 1001
\ No newline at end of file
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