Solved

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

Posted on 2004-10-05
6
535 Views
Last Modified: 2012-05-05
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,
0
Comment
Question by:jamesspo
6 Comments
 
LVL 2

Expert Comment

by:etracsupport
ID: 12227907
0
 

Author Comment

by:jamesspo
ID: 12230017
Hi, this works well for win2k PCs but not for XP. Whist I can use "errorlevel 9" for XP, it does not give a definitive answer for XP PCs. Could you help me understand how I can use VER in a batch file to reliably identify XP PC's with this script ?
0
 
LVL 2

Assisted Solution

by:etracsupport
etracsupport earned 50 total points
ID: 12230732
try to replace os with version

post your script, part of it lol
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 6

Accepted Solution

by:
ampcats earned 50 total points
ID: 12232356
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.
 
0
 

Author Comment

by:jamesspo
ID: 12236231
Hi. Thank you both very much. I've ended up using a hybrid of both. The absolute detection of XP is not 100% certain, unless I use both methods. There are no Win95/98/ME PCs on the network, so a failure of gettype to detect XP is OK, and I use the %ISSERVER% test to make sure that all machines that end up in the gettype errorleve 9 are not servers.

Hope you are happy with a point spilt.

Best regards,

James
0
 

Expert Comment

by:IT-Subscriptions
ID: 21875564
dsa.msc is NOT in w2k8 server
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
policy routing to fw2 18 68
Unauthorized Network Devices Appearing on Home Network 20 111
Wired Network vs Wireless 12 58
Dns issues 4 38
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question