Skip to content
Snippets Groups Projects
Commit 5a8bc42c authored by Marius Raes's avatar Marius Raes
Browse files

exit etter reboot

parent 6a002856
Branches
No related tags found
No related merge requests found
#ps1_sysnative #ps1_sysnative
Start-Sleep -s 1800
echo custom-script echo custom-script
if( !(Test-Path -Path "C:\flag.txt")) { if( !(Test-Path -Path "C:\flag.txt")) {
New-Item -Path "C:\flag.txt" New-Item -Path "C:\flag.txt"
......
...@@ -19,8 +19,9 @@ if( !(Test-Path -Path "C:\flag.txt")) { ...@@ -19,8 +19,9 @@ if( !(Test-Path -Path "C:\flag.txt")) {
-DomainNetbiosName ROSE ` -DomainNetbiosName ROSE `
-SafeModeAdministratorPassword $secureSafeModePwd ` -SafeModeAdministratorPassword $secureSafeModePwd `
-InstallDns -NoRebootOnCompletion -force -InstallDns -NoRebootOnCompletion -force
exit 1001 exit 1003
}else { }else {
exit
echo "else" echo "else"
New-Item -Path "C:\log.txt" New-Item -Path "C:\log.txt"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment