Skip to content

Commit 9b8bc42

Browse files
committed
Added code to ensure DSC reboots after DJOIN
1 parent 4cf4558 commit 9b8bc42

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

DSCResources/MSFT_xOfflineDomainJoin/MSFT_xOfflineDomainJoin.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ function Join-Domain {
172172
) -join '' )
173173

174174
& djoin.exe /REQUESTODJ /LOADFILE $RequestFile
175+
176+
# Notify DSC that a reboot is required.
177+
$global:DSCMachineStatus = 1
175178

176179
Write-Verbose -Message ( @(
177180
"$($MyInvocation.MyCommand): "

0 commit comments

Comments
 (0)