Join Computer to domain - wmic
1 Votes |
Description
Important Notes
-
You must enter a password in order to take an action
-
Because of the way secure parameters work, you cannot use this task in a baseline, target an action dynamically by property (e.g., automatic groups), use add additional actions.
Property Details
26947 | |
Beta - Preliminary testing ready for more | |
Join Computer to domain - wmic | |
BESC | |
Accounts | |
0 | |
HCL Lab Services | |
5/20/2019 12:00:00 AM | |
Join, Domain, WMIC | |
True | |
JasonWalker on 9/12/2022 7:24:33 AM | |
JasonWalker on 9/12/2022 7:24:33 AM | |
1020 Views / 8 Downloads | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Actions
Action 1 (default)
Action Link
Join the computer to a domain
Script Type
BigFix Action Script
action uses wow64 redirection falseSuccess Criteria
waithidden wmic.exe computersystem where name!=null call joindomainorworkgroup {if parameter "ou" of action as trimmed string != "" then "AccountOU=%22" & parameter "ou" of action & "%22" else ""} fjoinoptions=3 name="{parameter "domainname" of action}" username="{parameter "userd" of action}" Password="{parameter "passwordd" of action}"
continue if {exit code of action = 0}
action requires restart "Join_Domain"
This action will be considered successful when all lines of the action script have completed successfully.
Sharing
Social Media: |