1 | initial version |
After some experiments I discovered that this happens in this situation: - Windows server 2019 with all updates (the VM that I created many months ago works as expected, but not after installing all updates) - Powershell localscript is converting the VM to a Domain Controller
These are the commands that I run in my localscript file. First I install same deps and reboot with exit 1003:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-WindowsFeature RSAT-AD-Tools -IncludeManagementTools
exit 1003
This part of the script works as expected!
Then I create the forest and reboot again with exit 1003.
$secureSafeModePassword=(ConvertTo-SecureString "SafePass1!" -AsPlainText -Force)
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012R2" `
-DomainName "testdomain.corp" `
-DomainNetbiosName "TESTDOMAIN" `
-ForestMode "Win2012R2" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$true `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $secureSafeModePassword `
-Force:$true
exit 1003
But this time, cloudbase-init returns an error as shown in log file:
INFO cloudbaseinit.init [-] Rebooting
ERROR cloudbaseinit.init [-] reboot failed with error 'Reboot failed: ''Arresto del sistema già pianificato.'': cloudbaseinit.exception.WindowsCloudbaseInitException: Reboot failed: 'Arresto del sistema già pianificato.'
INFO cloudbaseinit.init [-] Process execution ended with exit code: 0
The Italian message says "System shutdown already planned".
Do you have any suggestion? Feel free to ask for more information, because I can reproduce this problem very easily.
Thanks.
2 | No.2 Revision |
After some experiments I discovered that this happens in this situation:
- situation:
These are the commands that I run in my localscript file. First I install same deps and reboot with exit 1003:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-WindowsFeature RSAT-AD-Tools -IncludeManagementTools
exit 1003
This part of the script works as expected!
Then I create the forest and reboot again with exit 1003.
$secureSafeModePassword=(ConvertTo-SecureString "SafePass1!" -AsPlainText -Force)
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012R2" `
-DomainName "testdomain.corp" `
-DomainNetbiosName "TESTDOMAIN" `
-ForestMode "Win2012R2" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$true `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $secureSafeModePassword `
-Force:$true
exit 1003
But this time, cloudbase-init returns an error as shown in log file:
INFO cloudbaseinit.init [-] Rebooting
ERROR cloudbaseinit.init [-] reboot failed with error 'Reboot failed: ''Arresto del sistema già pianificato.'': cloudbaseinit.exception.WindowsCloudbaseInitException: Reboot failed: 'Arresto del sistema già pianificato.'
INFO cloudbaseinit.init [-] Process execution ended with exit code: 0
The Italian message says "System shutdown already planned".
Do you have any suggestion? Feel free to ask for more information, because I can reproduce this problem very easily.
Thanks.
3 | No.3 Revision |
After some experiments I discovered that this happens in this situation:
These are the commands that I run in my localscript file. First I install same deps and reboot with exit 1003:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-WindowsFeature RSAT-AD-Tools -IncludeManagementTools
exit 1003
This part of the script works as expected!
Then I create the forest and reboot again with exit 1003.
$secureSafeModePassword=(ConvertTo-SecureString "SafePass1!" -AsPlainText -Force)
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012R2" `
-DomainName "testdomain.corp" `
-DomainNetbiosName "TESTDOMAIN" `
-ForestMode "Win2012R2" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$true `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $secureSafeModePassword `
-Force:$true
exit 1003
But this time, cloudbase-init returns an error as shown in log file:
INFO cloudbaseinit.init [-] Rebooting
ERROR cloudbaseinit.init [-] reboot failed with error 'Reboot failed: ''Arresto del sistema già pianificato.'': cloudbaseinit.exception.WindowsCloudbaseInitException: Reboot failed: 'Arresto del sistema già pianificato.'
INFO cloudbaseinit.init [-] Process execution ended with exit code: 0
The Italian message says "System shutdown already planned".
Do you have any suggestion? Feel free to ask for more information, because I can reproduce this problem very easily.
Thanks.
4 | No.4 Revision |
After some experiments I discovered that this happens in this situation:
These are the commands that I run in my localscript file. First I install same deps and reboot with exit 1003:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Install-WindowsFeature RSAT-AD-Tools -IncludeManagementTools
exit 1003
This part of the script works as expected!
Then I create the forest and reboot again with exit 1003.
$secureSafeModePassword=(ConvertTo-SecureString "SafePass1!" -AsPlainText -Force)
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2012R2" `
-DomainName "testdomain.corp" `
-DomainNetbiosName "TESTDOMAIN" `
-ForestMode "Win2012R2" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$true `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $secureSafeModePassword `
-Force:$true
Restart-Computer -Force
exit 1003
But this time, cloudbase-init returns an error as shown in log file:
INFO cloudbaseinit.init [-] Rebooting
ERROR cloudbaseinit.init [-] reboot failed with error 'Reboot failed: ''Arresto del sistema già pianificato.'': cloudbaseinit.exception.WindowsCloudbaseInitException: Reboot failed: 'Arresto del sistema già pianificato.'
INFO cloudbaseinit.init [-] Process execution ended with exit code: 0
The Italian message says "System shutdown already planned".
Do you have any suggestion? Feel free to ask for more information, because I can reproduce this problem very easily.
Thanks.