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

Ukazka

parent 63adf2c3
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
$ErrorActionPreference = 'Stop';
$ip = [int]$env:computername.split('-')[2];
#daco
#$adapter = Get-NetAdapter | sort name;
#$adapter[1] | New-NetIPAddress -AddressFamily 'IPv4' -IPAddress "10.0.1.$($ip)" -PrefixLength '16';
#$adapter[1] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
......@@ -11,4 +12,5 @@ $user.SetPassword('administrator_password');
NET USER pv176 pv176_password /add;
NET LOCALGROUP Administrators pv176 /add;
NET USER admin /delete;
exit 1001;
\ No newline at end of file
shutdown -r -t 0 -f;
exit 1001;
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