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

Update desktop-init.ps1

parent 1fd6c8f1
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,9 @@
$ErrorActionPreference = 'Stop';
$ip = [int]$env:computername.split('-')[2];
$adapter = Get-NetAdapter | sort name;
#$adapter = Get-NetAdapter | sort name;
#$adapter[1] | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress "10.0.2.$($ip)" -PrefixLength '16';
$adapter[1] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
#$adapter[1] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
$user = [ADSI]'WinNT://./Administrator';
$user.SetPassword('administrator_password');
NET USER pv176 pv176_password /add;
......
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