Networking Forums

Networking Forums > Computer Networking > Windows Networking > login or logon script that determines client OS

Reply
Thread Tools Display Modes

login or logon script that determines client OS

 
 
Roundy
Guest
Posts: n/a

 
      07-25-2005, 01:26 PM
I am running windows server 2003 Standard and have windows xp, 2000, and
windows 98 clients. On the 98 clients drives do not map using the script
that works on windows xp etc.

I need some direction on how to determine if the computer logging in is
windows 98 or xp 2000 and then run the proper drive mapping commands. That
is really all that I am doing, just mapping drives.
 
Reply With Quote
 
 
 
 
CyberDroog
Guest
Posts: n/a

 
      07-25-2005, 09:26 PM
On Mon, 25 Jul 2005 06:26:06 -0700, Roundy
<(E-Mail Removed)> wrote:

>I am running windows server 2003 Standard and have windows xp, 2000, and
>windows 98 clients. On the 98 clients drives do not map using the script
>that works on windows xp etc.
>
>I need some direction on how to determine if the computer logging in is
>windows 98 or xp 2000 and then run the proper drive mapping commands. That
>is really all that I am doing, just mapping drives.


The OS environment variable is set by default on Win2k/XP to "Windows_NT"
So you can add a test in the login script, such as:

if [%OS%]==[Windows_NT] goto WINNT
(put Win9x script commands here)
goto EXIT

:WINNT
(put Win2k/XP script commands here)
goto EXIT

:EXIT

--
ARREST, v.t. Formally to detain one accused of unusualness.

- Ambrose Bierce

 
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
Login Script AJ Wireless Networks 2 06-21-2005 04:18 PM
XP Client & logon script message Terry Windows Networking 0 01-07-2005 04:44 PM
W/98 Windows Logon, Client Logon, Client For MS Networks - What's the diff ? Al Dykes Windows Networking 1 08-05-2004 04:57 PM
xp client does not run login script on 2003 server Charles Windows Networking 5 06-18-2004 02:54 PM
Login script Brian Windows Networking 1 10-20-2003 07:34 PM



1 2 3 4 5 6 7 8 9 10 11