Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Powershell - 32bit and 64bit OS

Posted on 2010-08-25
2
Medium Priority
?
813 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:chad
2 Comments
 
LVL 6

Accepted Solution

by:
Jesse B earned 500 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:chad
ID: 33534964
cool, I may be able to test this with 64bit next week.  thanks,
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

927 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