Page 2 of 2 <12
Topic Options
#7948 - 2001-11-09 09:31 AM Re: Windows 2000 OS identifier
Mark Pietersz Offline
Getting the hang of it

Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
Would the @PRODUCTTYPE macro help you out ?
_________________________
Mark Pietersz

Top
#7949 - 2001-11-09 11:09 AM Re: Windows 2000 OS identifier
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Hi Mark,

Thanks for the info but the whole idea here has progressed into who can come up with unique ideas to test the version of the operating system from a DOS prompt without KiXtart.

Les,
Works on 2000 at home, I'll let you know about XP when I get in to work.

How is that AD junk pile going?

Top
#7950 - 2001-11-09 04:12 PM Re: Windows 2000 OS identifier
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Eh DOC,
Sorry you raised that topic... Now I'll pull this thread way off topic... oh well, I think it was done anyway...

To answer your question, not so well. I couldn't get KiX to run from the GPO, so ended up hacking it into \NetLogon. That worked for Wintendo but not Win2k. Then I somehow ended up corrupting the GPO. Unlinked it and created a new GPO and, Voila! Win2k now runs the script in the GPO folder (you know, the one with the weird path). Next step, delete the hacked \NetLogon one and see if Wintendo picks up the one from the GPO.

Did I ever mention I hate Wintendo? Will it even work with AD and the GPO? Guess what I'll be doing this weekend!

I'm getting "the look" when I get home. To top it off, where the server is, my cell phone is out of range so she can't check up on me... This is going to cost me at least a dozen long stem roses... and I'm doing this pro bono.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#7951 - 2001-11-10 01:23 AM Re: Windows 2000 OS identifier
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Getting "the look"

LOL

Feeling sorry for you guy. Been there, and somehow keep going there even though I don't meant to.

Sorry, but your code does not work in DOS for finding XP.

Glad to hear AD is starting to work for you. We should be going in a few months.

Top
#7952 - 2001-11-10 06:27 AM Re: Windows 2000 OS identifier
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
DOC,
Well... I don't have XP installed anywhere to test... still waiting for SP1 to come out

So... what does VER report on XP? Just replace "XP" with some unique portion that VER reports. Maybe "5.1" would do it.

Forget the clinic this weekend... the HoneyDo list is priority one.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#7953 - 2001-11-21 07:27 PM Re: Windows 2000 OS identifier
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
It appears that the first check for Windows XP sets the ERRORLEVEL to 0 so any other checks are invalid. Here is the latest code I am able to get to work on every OS I have tried it on.

code:
@ECHO OFF
IF NOT "%OS%" == "Windows_NT" GOTO WIN9X
VER|FIND /I "XP" >NUL && IF %ERRORLEVEL% EQU 0 GOTO XP
IF not "%ALLUSERSPROFILE%" == "" GOTO WIN2K
IF "%OS%" == "Windows_NT" GOTO NT4
GOTO END
:XP
ECHO Found Windows XP
REM Or what ever command you want to run.
GOTO END
:WIN2K
ECHO Found Windows 2000
REM Or what ever command you want to run.
GOTO END
:NT4
ECHO Found Windows NT 4
REM Or what ever command you want to run.
GOTO END
:WIN9X
ECHO Found Windows 9x
REM Or what ever command you want to run.
GOTO END
:END


Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 918 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.127 seconds in which 0.087 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org