Solved

Powershell - 32bit and 64bit OS

Posted on 2010-08-25
2
811 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 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for PowerShell.
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 …
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

624 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