New Question

Revision history [back]

click to hide/show revision 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.

After some experiments I discovered that this happens in this situation: - situation:

  • Windows server 2019 with all updates (the VM that I created many months ago works as expected, but not after installing all updates) - 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.

After some experiments I discovered that this happens in this situation:

  • Windows server 2019 with all updates and "sysprepped" (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.