Question : Win2k PDC - Logon script to identify Win2k Server, Win2k Pro and WinXP machines

Hi, I need to write a short logon script for a Win2k Domain to allow the following:

If OS = Win2k Server then
execute action 1
if OS = Win2k Pro then
execute action 2
if OS = WinXP then
execute action 3

How do I identify W2k SERVER, PRO and XP using a logon script ? %OS% does not seem to identy flavours of OS...

Many thanks,

Answer : Win2k PDC - Logon script to identify Win2k Server, Win2k Pro and WinXP machines

I use the VER script similar to above, and to detect a server,

IF exist  %windir%\system32\dsa.msc SET ISSERVER=TRUE

then branching your 2000 script with

IF "%ISSERVER%"=="TRUE" ( do server thing ) ELSE (do non server thing)

dsa.msc is a server only file - you can choose from many, but some are only installed with specific options - dsa is one that is always (AFAIK) installed

A.
 
Random Solutions  
 
programming4us programming4us