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

Revert "Update server-init.ps1"

This reverts commit 2fcbeb35
parent 2fcbeb35
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ $ip = [int]$env:computername.split('-')[2];
$adapter = Get-NetAdapter | sort name;
$adapter[0] | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress "192.168.1.$($ip)" -PrefixLength '16' -DefaultGateway '192.168.0.1';
$adapter[0] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
$adapter[1] | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress "10.0.1.$($ip)" -PrefixLength '16';
$adapter[1] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
$user = [ADSI]'WinNT://./Administrator';
$user.SetPassword('Password.1');
NET USER pv176 Password.1 /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