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

Update server-init.ps1

parent 9205bb6a
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
$ErrorActionPreference = 'Stop';
$ip = [int]$env:computername.split('-')[2];
$adapter = Get-NetAdapter | sort name;
$adapter[1] | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress "10.0.1.$($ip)" -PrefixLength '16';
#$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('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