Jump to content
Sign in to follow this  

Service Pack

Recommended Posts


Anyone know what @OSServicePack will return if there isn't one installed? I.E. Windows XP but without SP1? I have about a billion machines here, and I'm not sure which ones, if any don't have SP1 on them yet. I'm doing a rollout prepping for an SUS server.

Thanks for any help.

Share this post

Link to post
Share on other sites

I used the following code:

Dim $msg

$msg =  "OS Type:  " & @OSTYPE & @CRLF & "OS Version:  " & @OSVersion & @CRLF & "Service Pack Version:  " & @OSServicePack 
MsgBox(0, "OS Info", $msg)

I got:


OS Version:  WIN_98

Service Pack Version:  A

Try it on some of your machines and see what you get.

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

Share this post

Link to post
Share on other sites

I got


OS Info


OS Type: WIN32_NT

OS Version: WIN_XP

Service Pack Version: Service Pack 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.