Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

request for help

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 07-10-2008   #1 (permalink)
bfoster68
Guest


 

request for help

Below is a script that I am developing to pull all the computer objects out
of the Computers OU loop thru them executing a wmi query to pull the Model of
the computer. If i do this manually it works so I must have some logic issue
lurking here that I just dont get. I am rather new a powershell.....scripting
in general so be kind :-)

Bill


Add-PSSnapin Quest.ActiveRoles.ADManagement

$comparray=get-QADComputer -SizeLimit 0 -SearchRoot
'ad.computername.com/sys/computers' | format-table name

# $comparray=Get-Content c:\computers.txt

foreach ($computer in $comparray){

$computer
Get-WMIObject Win32_ComputerSystem -computername $computer

}

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Request for someone new! Nostralls Vista General 13 07-19-2008 06:00 PM
Permission Request David Crisp Vista General 1 04-07-2007 05:36 AM
Request 2 deebs Vista General 2 10-05-2006 08:07 PM
Another Driver Request =?Utf-8?B?QmlsbCBTZW1wZg==?= Vista hardware & devices 0 07-19-2006 06:16 AM


Update your Vista Drivers Update Your Drivers Now!!

Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008