PowerShell for Windows Admins:

January, 2012


January 18, 2012  1:54 PM

WMI associations through CIM cmdlets

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

The CIM cmdlets that introduced in PowerShell v3 give us a different API for working with WMI. We can still work with associations just in a slightly different way. NOTE – this done on a different machine to the previous one so the adapters are different We get the instances of a WMI class...

January 18, 2012  1:29 PM

Running a function

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Most of my scripts end up being functions because I will eventually combine them into modules My recent script

function get-logedonuser {                        

			
		


January 18, 2012  1:18 PM

Associated Classes

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

If I run Get-WmiObject -Class Win32_NetworkAdapter I get a list of the Network Adapters in my system plus some information about the adapter.  What I don’t get is the IP addressing and other configuration information because it is stored on the Win32_NetworkAdapterConfiguration...


January 17, 2012  3:00 PM

Get the logged on users

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Do you know which users are logged on to your systems? Want to find out?

function get-logedonuser {            
param 
				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
		


January 16, 2012  2:43 PM

CIM sessions

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

When we last looked at the CIM cmdlets we saw that by default they use WSMAN to access remote computers but this only works if the remote computer is running PowerShell v3 with version 3.0 of the WSMAN stack. We can force the CIM cmdlets to use DCOM by configuring a CIM session. These are...


January 15, 2012  3:43 PM

Boot partition

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Do you know which disk partition your system boots from? Its easy to find out

function get-bootpartition {            
[
				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
		


January 14, 2012  12:44 PM

CIM cmdlets and remote machines

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

To access a remote machine using WMI we use Get-WmiObject -Class Win32_ComputerSystem -ComputerName webr201 This is replicated using the CIM cmdlets Get-CimInstance -ClassName Win32_ComputerSystem -ComputerName webr201 No lets repeat with another server Get-WmiObject  -Class...


January 12, 2012  3:25 PM

Friday 13th

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Tomorrow is Friday 13th and Manning are offering $13 off any purchase at manning.com.

This would be a good time to get a copy of PowerShell in Practice or PowerShell and WMI

use code “fri1312” at checkout


January 9, 2012  2:15 PM

CIM instances

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

We are use to using Get-WmiObject to retrieve information from WMI. if you have been following this blog for any length of time you will have see lots of examples of that particular cmdlet. The CIM equivalent is Get-CIMInstance. It might appear that Get-CIMClass would be used but that is used to...


January 6, 2012  2:39 PM

WMI and CIM

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

Do you know the difference between WMI and CIM? CIM is the Common Information Model - http://www.dmtf.org/standards/cim “CIM provides a common definition of management information for systems,...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: