Windows Logon Script

D

Dale K

In windows 2003 server does anyone know how to write a vb logon script that
will return the level of the operating system. I know have client machines
that are xp, vista, and windows 7 and need to know the difference so I can do
different things for each type of OS.

Thanks!

Dale
 
M

Meinolf Weber [MVP-DS]

Hello Dale,

Check out:
http://www.computerperformance.co.uk/vbscr...erating_System_

http://www.computerperformance.co.uk/ezine/ezine52.htm

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


> In windows 2003 server does anyone know how to write a vb logon script
> that will return the level of the operating system. I know have
> client machines that are xp, vista, and windows 7 and need to know the
> difference so I can do different things for each type of OS.
>
> Thanks!
>
> Dale
>
 
R

Richard Mueller [MVP]

"Dale K" wrote in message
news:98D9725D-D47B-43B5-B0DE-3FB6705EF6AE@microsoft.com...
> In windows 2003 server does anyone know how to write a vb logon script
> that
> will return the level of the operating system. I know have client
> machines
> that are xp, vista, and windows 7 and need to know the difference so I can
> do
> different things for each type of OS.
>
> Thanks!
>
> Dale


Also, you might be able to use the operatingSystem attribute of the AD
computer object. This avoids the need to connect to the computer with WMI.
For example:
=========
' Bind to local computer object in AD
Set objSysInfo = CreateObject("ADSystemInfo")
Set objComputer = GetObject("LDAP://" & objSysInfo.ComputerName)

' Retrieve operating system.
strOS = objComputer.operatingSystem
Wscript.Echo strOS
========
another attribute of the computer object is operatingSystemVersion.

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--
 
Back
Top Bottom