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'
|
||||
}
|
||||
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
|
||||
|
|
|
@ -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