Join Computer to domain - wmic
Log In or Register to download the BES file, and more.

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

ID26947
StatusBeta - Preliminary testing ready for more
TitleJoin Computer to domain - wmic
DomainBESC
CategoryAccounts
Download Size0
SourceHCL Lab Services
Source Release Date5/20/2019 12:00:00 AM
KeywordsJoin, Domain, WMIC
Is TaskTrue
Added by on 9/12/2022 7:24:33 AM
Last Modified by on 9/12/2022 7:24:33 AM
Counters 927 Views / 7 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

isWindows (Relevance 1172)
Used in 1158 fixlets and 540 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 77 fixlets and 6 analyses   * Results in a true/false
Show indented relevance
version of client >= "9.0"
Used in 33 fixlets and 17 analyses   * Results in a true/false
Show indented relevance
if exists property "in proxy agent context" then not in proxy agent context else true
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists netbios domainnames of local computers of active directories

Actions

Action 1 (default)

Action Link Join  the computer to a domain
Script Type BigFix Action Script
action uses wow64 redirection false
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"
Success Criteria

This action will be considered successful when all lines of the action script have completed successfully.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!