Solved

How do i get a Kixtart scrip to determine an OS?

Posted on 2009-06-29
2
5,751 Views
Last Modified: 2013-12-23
Hey, im very new to kixtart and was wondering, if there is there anyway i can get my kixtart login script to check what version of windows  the pc is running, or check its role and then carry on or quit thr script based on the answer?

I have a kixtart login script and i need it to only run on PCs with windows xp, vista or 7 (eventually) on. and NOT to run on 2003 or 2008.
Basically it needs to run on workstations but not servers so idealy i would like the script to quit before it does anything if its run because a user is logging onto a server.

i know the @PRODUCTTYPE macro can help with this, but i dont know how to impliment it to do what i need it to do. Any help is greatly appreciated.
0
Comment
Question by:DEALOGIC
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 500 total points
ID: 24738569
The script below will check the OS type at the beginning, and leave the script immediately if the OS isn't a known workstation type.
Couldn't find anything for Windows 7, but you can just run the script on it and it should tell you the product type, then just add another line to the check.
You can just add your own script at the end.
? "Product type: @PRODUCTTYPE"
If (
    (InStr(@PRODUCTTYPE, "Windows 2000 Professional") = 0) AND
    (InStr(@PRODUCTTYPE, "Windows XP") = 0) AND
    (InStr(@PRODUCTTYPE, "Windows Vista") = 0)
   )
  ? "Server or unsupported OS found, leaving the script."
  Exit
EndIf
? "Workstation installation found."

Open in new window

0
 

Author Comment

by:DEALOGIC
ID: 24743220
Thanks for your help!
0

Featured Post

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

Question has a verified solution.

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

Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

635 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