Hi,

I have a network which consists of desktop PC's, Workstations, a Server
and some Laptops.

Each platform has Win XP Pro SP2 deployed on it.

The Server contains the data and files for all users and each user has
a roaming profile.

If a user logs onto the network at a desktop they need to have their
data uploaded from the Server. When they logoff the Server is updated.
Same story for Workstations and Laptops.

However, the startup and startmenu needs to be different and depends on
the platform that the user is logging onto. For instance, when a user
logs onto a Laptop the software for the Mobile Office Card (3G) needs
to initialise. When the user logs onto a Workstation they need to have
the software compilers in the Applications Menu and no MOC
initialisation as the workstations have no MOC. When they are on a
Desktop they need the entertainment software and not the compilers and
MOC and so on.

How do I create a logon script that recognises the platform that the
user is logging onto and then puts the right applications at their
disposal?

Re: Single logon script per user, multiple computers by maximillianx

maximillianx
Wed Jul 12 10:52:37 CDT 2006

What is the difference platform-wise between the workstation and the
desktops?

You could perform a query in the registry that would find the battery
class - this seems to be a pretty accurate way to find out if the computer
is a laptop or not...

I realize this is the VBScript newsgroup, but I have an AutoIt function that
does this (sorry!) - maybe you can translate it over to VBScript.

Func HasBattery()
Dim $Rootkey = "HKLM\SYSTEM\CurrentControlSet\Enum\ACPI"
Dim $Key, $SubKey, $i, $i2

For $i = 1 To 1000
$Key = RegEnumKey($RootKey, $i)
If $Key = "" Then ExitLoop
For $i2 = 1 To 1000
$SubKey = RegEnumKey($RootKey & "\" & $Key, $i2)
If $SubKey = "" Then ExitLoop
$Class = RegRead($RootKey & "\" & $Key & "\" & $SubKey, "Class")
If $Class = "Battery" Then
Return 1
ExitLoop(2)
EndIf
Next
Next
Return 0
EndFunc

Rob


"Marcus" <marcus.naraidoo@blueyonder.co.uk> wrote in message
news:1152717961.724697.68550@h48g2000cwc.googlegroups.com...
> Hi,
>
> I have a network which consists of desktop PC's, Workstations, a Server
> and some Laptops.
>
> Each platform has Win XP Pro SP2 deployed on it.
>
> The Server contains the data and files for all users and each user has
> a roaming profile.
>
> If a user logs onto the network at a desktop they need to have their
> data uploaded from the Server. When they logoff the Server is updated.
> Same story for Workstations and Laptops.
>
> However, the startup and startmenu needs to be different and depends on
> the platform that the user is logging onto. For instance, when a user
> logs onto a Laptop the software for the Mobile Office Card (3G) needs
> to initialise. When the user logs onto a Workstation they need to have
> the software compilers in the Applications Menu and no MOC
> initialisation as the workstations have no MOC. When they are on a
> Desktop they need the entertainment software and not the compilers and
> MOC and so on.
>
> How do I create a logon script that recognises the platform that the
> user is logging onto and then puts the right applications at their
> disposal?
>