1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Windows Logon Script

Discussion in 'Windows Home Server' started by Dale K, Sep 16, 2009.

  1. Dale K

    Dale K Guest

    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
     
  2. "Dale K" <DaleK@discussions.microsoft.com> wrote in message
    news:98D9725D-D47B-43B5-B0DE-3FB6705EF6AE@microsoft.com...<!--coloro:blue--><span style="color:blue <!--/coloro-->
    > 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<!--colorc--><!--/colorc-->

    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 -
    --
     

Share This Page