?
Solved

Powershell - 32bit and 64bit OS

Posted on 2010-08-25
2
Medium Priority
?
812 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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:kabaam
ID: 33534964
cool, I may be able to test this with 64bit next week.  thanks,
0

Featured Post

Introducing the WatchGuard 420 Access Point

WatchGuard's newest access point includes an 802.11ac Wave 2 chipset, providing the fastest speeds for VoIP, video and music streaming, and large data file transfers. Additionally, enjoy the benefits of strong security as the 3rd radio delivers dedicated WIPS protection!

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Previously, on our Nano Server Deployment series, we've created a new nano server image and deployed it on a physical server in part 2. Now we will go through configuration.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
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…

718 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