Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

32bit or 64bit?

Status
Not open for further replies.

Enkrypted

Technical User
Sep 18, 2002
663
US
Is there an easy way to determine which server version it is?

Enkrypted
A+
 
As it's an actual product name change, I would imagine it will state x64 or 64-bit in the product name. Either during boot, logon screen or system properties.




Steve.

"They have the internet on computers now!" - Homer Simpson
 
You can tell for sure via script. As is this script will report the OS type for the current machine. You can also inventory remote systems (provided you have rights) by putting in a remote machien name instead of the period.

Code:
'==========================================================================
'
' NAME: GetOSArchitecture.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: [URL unfurl="true"]http://www.thespidersparlor.com[/URL]
' DATE  : 1/7/2007
' COPYRIGHT (c) 2007 The Spider's Parlor
'
' COMMENT: 
'
'    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
'    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED To
'    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
'    PARTICULAR PURPOSE.
'
'    IN NO EVENT SHALL THE SPIDER'S PARLOR AND/OR ITS RESPECTIVE SUPPLIERS 
'    BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
'    DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
'    WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
'    ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
'    OF THIS CODE OR INFORMATION.
'==========================================================================
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem",,48)
For Each objItem in colItems
    report = "Computer Name: " & objItem.CSName
    report = report &  vbCrLf & "OS Architecture: " & objItem.OSArchitecture
    report = report &  vbCrLf &  "OS: " & objItem.Caption
Next

wscript.echo report


I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Oh, and by typing

winver

At the command line / run box.




Steve.

"They have the internet on computers now!" - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top