Solved

Powershell - 32bit and 64bit OS

Posted on 2010-08-25
2
794 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
Comment Utility
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
Comment Utility
cool, I may be able to test this with 64bit next week.  thanks,
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now