Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Wow....

 
Logged in as: Guest
arrSession:exec spGetSession 2,5,35560
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Windows PowerShell >> Wow....
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Wow.... - 6/19/2006 7:02:02 PM   
  ginolard


Posts: 1005
Score: 21
Joined: 8/10/2005
Status: offline
I've just started playing with Powershell and....Wow!

I've not even begun writing scripts or cmdlets yet but just playing with some of the commands is exciting enough.  WMI queries are SOOOOO much easier now...

_____________________________

Author of ManagePC - http://managepc.net
AD Query Template - http://www.visualbasicscript.com/m_40609/tm.htm
Consolidated Scripting Framework - http://www.visualbasicscript.com/m_59109/tm.htm
 
 
Post #: 1
 
 RE: Wow.... - 11/1/2006 8:29:35 AM   
  SAPIENScripter


Posts: 270
Score: 2
Joined: 11/1/2006
From: SAPIEN Technologies
Status: offline
It got even better in RC2

PS E:\> $pc=[wmi]"root\cimv2:win32_computersystem.name='GODOT'"
PS E:\> $pc.totalphysicalmemory
1609805824
PS E:\> $pc.roles
LM_Workstation
LM_Server
SQLServer
Print
NT
PS E:\>

As long as you can query to a specific WMI instance, you can access all properties easily.

_____________________________

Jeffery Hicks
Windows PowerShell MVP
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com

Follow Me: http://www.twitter.com/JeffHicks

(in reply to ginolard)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Windows PowerShell >> Wow.... Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts