Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Re: Determining a computer's AD site

Reply
Fix Vista Errors
Thread Tools Display Modes

Re: Determining a computer's AD site

 
 
Meinolf Weber [MVP-DS]
Guest
Posts: n/a

 
      11-20-2009



Hello JayDee,

Use:
nltest /dsgetsite

or in a script:
Set oSysInfo = CreateObject("ADSystemInfo")
MsgBox oSysInfo.SiteName

From: http://windowsitpro.com/article/arti...elongs-to.html

Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm


> What is the most accurate way to determine what site a computer is in
> by examining that computer? I've read that the "HKLM\SYSTEM
> \CurrentControlSet\Services\Netlogon\Parameters \DynamicSiteName" and
> SiteName if it exists are not 100% accurate and have noticed times
> when it didn't seem to be.
>
> thanks
>
> - JayDee
>



 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rarely issue with NetBios ABC Server Networking 7 11-17-2009 08:44 PM
Adding computers to domain Nik Active Directory 2 11-04-2009 01:17 PM
Sync On Multiple Computers Gandalf252002 ActiveSync 0 06-26-2007 05:53 PM
Fastest growing Vista game info site on the net VRG Scotty© Windows Vista Games 17 06-21-2007 08:03 AM
Re: ActiveSync 4.1 IIS FTP Site Problem Beverly Howard [Ms-MVP/MobileDev] ActiveSync 0 03-30-2006 06:28 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59