Closed kmaranionjc closed 1 year ago
Current leave domain AD Status condition does not work since a variable that should contain a status value is not set.
$ADStatus = dsregcmd.exe /status foreach ($line in $ADStatus) { if ($line -match "AzureADJoined : ") { $AzureADStatus = ($line.trimstart('AzureADJoined : ')) } }
Issues
What does this solve?
Current leave domain AD Status condition does not work since a variable that should contain a status value is not set.
Is there anything particularly tricky?
How should this be tested?
Screenshots