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.


we trying better understand customer views on social support experience, participation in interview project appreciated if have time.
helping make community forums great place.





Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

some help on Event 540

WMI Repository 4GB limit - Win 2003 Ent Question

Event ID 1302 (error 1307) DFS replication service encountered an error while writing to the debug log file