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

Update desktop-init.ps1

parent 2cb5d45a
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,10 @@ $ip = [int]$env:computername.split('-')[2];
#$adapter[1] | Set-DnsClientServerAddress -ServerAddresses '147.251.4.33';
$user = [ADSI]'WinNT://./Administrator';
$user.SetPassword('administrator_password');
$user.UserFlags=2;
NET USER pv176 pv176_password /add;
NET LOCALGROUP Administrators pv176 /add;
NET USER admin /delete;
NET USER Admin administrator_password /add;
PowerCfg -SetActive '8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c';
shutdown -r -t 0 -f;
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