Fixed a RFM bug on Windows Server 2016
This commit is contained in:
parent
2ba063b93b
commit
054f978316
|
@ -120,7 +120,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
Rename-Computer -NewName 'LON-DC1' -Force
|
||||
|
||||
# We explicitly suspend the workflow as Restart-Computer with the -Wait parameter does not survive local reboots.
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
|
||||
# Reboot the computer into the Directory Services Restore Mode.
|
||||
bcdedit.exe /set safeboot dsrepair
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
|
||||
# Re-encrypt the DB with the new boot key.
|
||||
|
@ -167,7 +167,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
|
||||
# Disable DSRM and do one last reboot.
|
||||
bcdedit.exe /deletevalue safeboot
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
}
|
||||
|
||||
|
@ -292,4 +292,4 @@ This recovery procedure is NOT SUPPORTED by Microsoft. Use at your own risk in s
|
|||
## RELATED LINKS
|
||||
|
||||
[Get-BootKey](Get-BootKey.md)
|
||||
[Get-ADDBDomainController](Get-ADDBDomainController.md)
|
||||
[Get-ADDBDomainController](Get-ADDBDomainController.md)
|
||||
|
|
|
@ -25,7 +25,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
Rename-Computer -NewName '{DCName}' -Force
|
||||
|
||||
# We explicitly suspend the workflow as Restart-Computer with the -Wait parameter does not survive local reboots.
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
|
||||
# Reboot the computer into the Directory Services Restore Mode.
|
||||
bcdedit.exe /set safeboot dsrepair
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
|
||||
# Re-encrypt the DB with the new boot key.
|
||||
|
@ -72,7 +72,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
|
||||
# Disable DSRM and do one last reboot.
|
||||
bcdedit.exe /deletevalue safeboot
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
}
|
||||
|
||||
|
@ -101,4 +101,4 @@ schtasks.exe /Change /TN '\Microsoft\Windows\PowerShell\ScheduledJobs\DSInternal
|
|||
# Start the workflow task and let the magic happen.
|
||||
Write-Host 'The {DCName} domain controller will now be restored from media. Up to 3 reboots will follow.'
|
||||
pause
|
||||
$initTask.RunAsTask()
|
||||
$initTask.RunAsTask()
|
||||
|
|
|
@ -4831,7 +4831,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
Rename-Computer -NewName 'LON-DC1' -Force
|
||||
|
||||
# We explicitly suspend the workflow as Restart-Computer with the -Wait parameter does not survive local reboots.
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
}
|
||||
|
||||
|
@ -4846,7 +4846,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
|
||||
# Reboot the computer into the Directory Services Restore Mode.
|
||||
bcdedit.exe /set safeboot dsrepair
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
|
||||
# Re-encrypt the DB with the new boot key.
|
||||
|
@ -4878,7 +4878,7 @@ $initTask = Register-ScheduledJob -Name DSInternals-RFM-Initializer -ScriptBlock
|
|||
|
||||
# Disable DSRM and do one last reboot.
|
||||
bcdedit.exe /deletevalue safeboot
|
||||
Restart-Computer -Force -Delay 5
|
||||
shutdown.exe /r /t 5
|
||||
Suspend-Workflow -Label 'Waiting for reboot'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue