DSquery computer from a workgroup machine
hello scripting guy,
i have requirement in company have query our ad existance of computer account when machine not joined domain(workgroup) , if account doenot exist, exit domain join process. copied dsquery.exe , dsquery.dll windows 7 64 bit machine's system32 folder , copied dsquery.exe.mui en-us folder in system32. after dsquery working not sure how can query machine name workgroup computer , creds feed in. eg:
dsquery computer -name testmachine -s testdc -d contoso.com -u contoso\testuser -p password#1
but parameter incorrect error. not sure format should use feed -d , -s , user account use in -u (should domain admin or normal domain account)
please !!!
arun
hi,
thanks posting.
if machine in domain, run dsquery and other need install the remote server administration tools windows 7, you can download same here:
http://www.microsoft.com/en-us/download/details.aspx?id=7887
hope helps.
regards.
Windows Server > Windows Server General Forum
Comments
Post a Comment