Solved

Powershell - 32bit and 64bit OS

Posted on 2010-08-25
2
799 Views
Last Modified: 2012-05-10
not much of a coding question but more of a general Powershell portability question.

I am writing some scripts and able to test them on assorted 32bit workstations.  I know there will be some issues with some portions of the code on 64 bit OSs but on average how much rework will be needed?
for the most part I am only using the following classes to poll statuses on remote workstations.

Thanks,
C
Get-WmiObject -Class Win32_NetworkAdapterConfiguration -namespace "root\CIMV2"
get-wmiobject -class "Win32_ComputerSystem" -namespace "root\CIMV2"
get-wmiobject -class "Win32_Processor" -namespace "root\CIMV2"

Get-WmiObject -class Win32_OperatingSystem
Get-WmiObject -class Win32_BIOS -namespace "root\CIMV2"
get-wmiObject Win32_logicaldisk

Open in new window

0
Comment
Question by:kabaam
2 Comments
 
LVL 6

Accepted Solution

by:
jpboyce earned 125 total points
ID: 33528542
WMI type stuff should work on 64-bit without problems.  I have a script that does similar WMI related queries to what you're doing and have run them across a range of OSes without issue (XP, 2000, 2003, 2008, 7, 32 bit and 64-bit).
0
 
LVL 11

Author Comment

by:kabaam
ID: 33534964
cool, I may be able to test this with 64bit next week.  thanks,
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
Microsoft Windows Server Update Service (WSUS) is free for everyone, but it lacks of some desirable features like send an e-mail to the administrator with the status of all computers on the WSUS server. This article is based on my PowerShell script …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 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