#93662 - 2002-09-15 11:25 PM
Scripting the night away.... kixtart and smsls.bat
|
DrWize
Fresh Scripter
Registered: 2002-09-15
Posts: 11
Loc: Sweden
|
Were running an multi Windows OS system.. Now Im interested in running a special script only on Windows NT and Windows 2000 and Windows XP Pro machines... Problem: We are also running Terminal Clients in this network and I dont want it to be disturbed. Also I want to leave out the old Windows 9X/ME clients (If I got a log on these that would also be nice (containing ComputerName/IP/MACadress), If i can write it to a textfile on the network that would be nice too...
I thougt there would be an option for it in kixtart, but I just cant seem to find the right command. Is this an old feature or am I just to tired reading it ?
Is @ProductType the way to go =??= And could someone please help me with an simple setup ?? ----- if @ProductType = "Windows NT Workstation"|"Windows NT Server"|"Windows NT Domain Controller"|"Windows 2000 Professional"|"Windows 2000 Server"|"Windows 2000 Domain Controller"|"Windows XP Professional" ; then run THISSCIPT else continue end
As you can I dont have a total grasp of kixing the file away.. ;-d
Tanks for the help in Advance..
_________________________
_ _________________ _
Computers make very fast, very accurate mistakes
|
|
Top
|
|
|
|
#93666 - 2002-09-16 02:58 PM
Re: Scripting the night away.... kixtart and smsls.bat
|
DrWize
Fresh Scripter
Registered: 2002-09-15
Posts: 11
Loc: Sweden
|
Well actually Im here .. Stayed up late list night ;-d, now Im back.
Problem is that Im running SMS (Systems Management Server) in my workplace. And ofcourse the wonderful kixscript..
So Now that m$ told me to modify my logonscript accordning to their plan.. I was thinking of putting the SMSclients on ONLY the NT/2K/XP Klients and servers..
We do also run some other systems, but the primary concern here is NT/2K/XP.
So the logon script contains this smsls.bat ..
But the last time sms killed of some older win98 machines which I dont tend to repeat. So my main concern is still to check what OS its run. The other stuff is just bonus ;-d
if @ProductType = "Windows NT Workstation"|"Windows NT Server"|"Windows NT Domain Controller"|"Windows 2000 Professional"|"Windows 2000 Server"|"Windows 2000 Domain Controller"|"Windows XP Professional"
(Is that line correct ?)
then smsls.bat else
_________________________
_ _________________ _
Computers make very fast, very accurate mistakes
|
|
Top
|
|
|
|
#93668 - 2002-09-16 03:28 PM
Re: Scripting the night away.... kixtart and smsls.bat
|
DrWize
Fresh Scripter
Registered: 2002-09-15
Posts: 11
Loc: Sweden
|
Kyllä !! OKi, now I see what you mean .. Was so set to use the PRODUCTTYPE var.. ;-d
Gonna go check out @INWIN asap ;-d
_________________________
_ _________________ _
Computers make very fast, very accurate mistakes
|
|
Top
|
|
|
|
#93669 - 2002-09-16 04:07 PM
Re: Scripting the night away.... kixtart and smsls.bat
|
DrWize
Fresh Scripter
Registered: 2002-09-15
Posts: 11
Loc: Sweden
|
if @INWIN = 1 goto SMSCLIENT if @INWIN <> 1 goto CONTINUE
;Det som skall köras på en NT/2k/XP maskin ;Clients that will receive the SMS client
:SMSCLIENT if exist("smsls.kix")
:CONTINUE ;Rest of the logon script
--- Am I looking the right way here ??
_________________________
_ _________________ _
Computers make very fast, very accurate mistakes
|
|
Top
|
|
|
|
#93671 - 2002-09-16 04:10 PM
Re: Scripting the night away.... kixtart and smsls.bat
|
DrWize
Fresh Scripter
Registered: 2002-09-15
Posts: 11
Loc: Sweden
|
if @INWIN = 1 goto SMSCLIENT if @INWIN <> 1 goto CONTINUE ;Unsure about the <> 1 var. ;Det som skall köras på en NT/2k/XP maskin ;Clients that will receive the SMS client
:SMSCLIENT if exist("@LDRIVE\smsls.bat")
;Is it better to speciffy a complete path ?
:CONTINUE ;Rest of the logon script
_________________________
_ _________________ _
Computers make very fast, very accurate mistakes
|
|
Top
|
|
|
|
#93672 - 2002-09-16 04:11 PM
Re: Scripting the night away.... kixtart and smsls.bat
|
DrWize
Fresh Scripter
Registered: 2002-09-15
Posts: 11
Loc: Sweden
|
if @inwin=1 if exist(@LDRIVE\"smsls.kix") call "@LDRIVE\smsls.kix" endif
_________________________
_ _________________ _
Computers make very fast, very accurate mistakes
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
1 registered
(Allen)
and 1607 anonymous users online.
|
|
|