Title: Script to determine a machine's site
Dean, let me guess: the name + pw of the local administrator of your unjoined workstation and the target domain's local admin account + pw are the same, and you're logged on to the client as local admin...
 
I get "DsGetSiteName failed: Status = 5 0x5 ERROR_ACCESS_DENIED" without sufficient permissions... - or maybe I've just locked down my policies different from yours
 
/Guido


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Wells
Sent: Freitag, 3. Februar 2006 22:44
To: Send - AD mailing list
Subject: RE: [ActiveDir] Script to determine a machine's site

Indeed it does, that's what I ran it on ...

--
Dean Wells
MSEtechnology
* Email: dwells@msetechnology.com

http://msetechnology.com

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grillenmeier, Guido
Sent: Friday, February 03, 2006 4:32 PM
To: [email protected]; Send - AD mailing list
Subject: RE: [ActiveDir] Script to determine a machine's site

hmm - this won't work with non-domain joined clients though...


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Wells
Sent: Freitag, 3. Februar 2006 21:10
To: Send - AD mailing list
Subject: RE: [ActiveDir] Script to determine a machine's site

Does this suffice -
 
nltest /dsgetsite /server:<domain FQDN>
 
Haven't tried anything of this kind myself under Wimpy so I'm uncertain of its suitability.

--
Dean Wells
MSEtechnology
* Email: dwells@msetechnology.com

http://msetechnology.com

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Friday, February 03, 2006 10:52 AM
To: [email protected]
Subject: [ActiveDir] Script to determine a machine's site

Does anyone have a script which can:

 - Interrogate the local machine for its IP address and mask
 - Determine the subnet which the machine resides in
 - Determine the site that corresponds to the that subnet

And all this must be possible on a machine which is not joined to a domain.
Ideally, the script should work when WinPE is running, too, as the machine is being built.


Any ideas?

neil

PLEASE READ: The information contained in this email is confidential and
intended for the named recipient(s) only. If you are not an intended
recipient of this email please notify the sender immediately and delete your
copy from your system. You must not copy, distribute or take any further
action in reliance on it. Email is not a secure method of communication and
Nomura International plc ('NIplc') will not, to the extent permitted by law,
accept responsibility or liability for (a) the accuracy or completeness of,
or (b) the presence of any virus, worm or similar malicious or disabling
code in, this message or any attachment(s) to it. If verification of this
email is sought then please request a hard copy. Unless otherwise stated
this email: (1) is not, and should not be treated or relied upon as,
investment research; (2) contains views or opinions that are solely those of
the author and do not necessarily represent those of NIplc; (3) is intended
for informational purposes only and is not a recommendation, solicitation or
offer to buy or sell securities or related financial instruments. NIplc
does not provide investment services to private customers. Authorised and
regulated by the Financial Services Authority. Registered in England
no. 1550505 VAT No. 447 2492 35. Registered Office: 1 St Martin's-le-Grand,
London, EC1A 4NP. A member of the Nomura group of companies.

Reply via email to