add domain joined check (#1577)

This commit is contained in:
Carrie Roberts
2021-07-30 16:57:50 -06:00
committed by GitHub
parent 484a04c7ac
commit fe4485d818
+7
View File
@@ -12,6 +12,13 @@ atomic_tests:
If the testing domain doesn't have any service principal name configured, there is no output
supported_platforms:
- windows
dependencies:
- description: |
Computer must be domain joined
prereq_command: |
if((Get-CIMInstance -Class Win32_ComputerSystem).PartOfDomain) {exit 0} else {exit 1}
get_prereq_command: |
Write-Host Joining this computer to a domain must be done manually
executor:
command: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12