nt29
Fri Dec 07 06:58:01 PST 2007
thanks a lot richard
good days
--
nt
"Richard Mueller [MVP]" wrote:
>
> "nicolas29" <nt29@community.nospam> wrote in message
> news:C09A1375-F02A-478E-9155-02C09139431A@microsoft.com...
> > hello
> > i have two questions
> >
> > 1) can i with a vbs script (in a logon) determine on which site (AD) i m
> > connected ?
> > 2) can i with a vbs script (in a logon) determine if i am on a TSE
> > precision i want a script who works with TSE 2000)
>
> Use the ADSystemInfo object to find the site:
> ============
> Set objSysInfo = CreateObject("ADSystemInfo")
> strSite = objSysInfo.SiteName
> Wscript.Echo "Site: " & strSite
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab -
http://www.rlmueller.net
> --
>
>
>