PowerShell for Windows Admins:

PowerShell v2


September 8, 2011  2:46 PM

Quirks of Get-member and WMI objects



Posted by: Richard Siddaway
PowerShell v2, WMI

I have been asked about discovering the methods available on a WMI object. I’ve mentioned the GetMethodParameters method a few times but it can be difficult to find.  Normally if we want to discover the methods on an object we would do this

 

Get-WmiObject...

September 8, 2011  1:40 PM

PowerShell User Group–20 September 2011



Posted by: Richard Siddaway
PowerShell v2, User Group


When: Tuesday, Sep 20, 2011 7:30 PM (BST)


Where:

*~*~*~*~*~*~*~*~*~*

Aleksandar Nikolic presents on PowerShell remoting and the customisation of remoting end points.
Aleksandar's presentation at the PowerShell Deep Dive was excellent - don't miss this one...


September 6, 2011  11:29 AM

Test for domain membership



Posted by: Richard Siddaway
Active Directory, PowerShell v2, WMI

Quick function to determine if a given machine is in a domain or workgroup

function test-domain{             
[
				
				
  Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 6, 2011  11:11 AM

Invoke-WmiMethod–Type mismatch error



Posted by: Richard Siddaway
PowerShell v2, WMI

Sometimes when we try to use Invoke-WmiMethod with an argument list we get an error

PS> Invoke-WmiMethod -Class Win32_Share -Name Create -ArgumentList "c:\test", "Test57", 0
Invoke-WmiMethod : Type mismatch
At line:1 char:17
+...


September 5, 2011  12:45 PM

PowerShell and WMI webcast



Posted by: Richard Siddaway
PowerShell v2, WMI

 

Webcast: Get the most from PowerShell and WMI

I will be presenting the above webcast next week.

Date: Wednesday, September 7, 2011.  Thats tomorrow

Time: 12:00 PM - 1:00 PM CDT

Thats 6pm UK time

Register for the web cast at

...


September 5, 2011  12:33 PM

Find the Time Server



Posted by: Richard Siddaway
Active Directory, PowerShell v2, Registry, WMI

No its not the latest Internet game.

Active Directory synchronises the computer clock times. To know what server is being used

function get-timeserver{             
			


September 4, 2011  12:16 PM

Clearing AD logging



Posted by: Richard Siddaway
Active Directory, PowerShell v2, WMI

Last time we looked at turning on logging – for one or more criteria. The normal state of diagnostic logging is None i.e. the options are set to zero. If we have only a few options set we can use set-logsetting to revert to no logging. Alternatively we can reset all logging to a zero state

...


September 4, 2011  3:32 AM

Setting AD logging



Posted by: Richard Siddaway
Active Directory, PowerShell v2, WMI

Now that we know what the options are we can look at switching them on.

function set-logsetting{             
[
				
				
  Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 3, 2011  1:31 PM

Logging options



Posted by: Richard Siddaway
Active Directory, PowerShell v2, WMI

With 24 logging options to choose from its difficult to keep track of them. We already have the data in a ash table so lets just display it

function get-logsettingoptions{       ...


September 1, 2011  11:27 AM

PowerShell Deep Dive abstracts



Posted by: Richard Siddaway
PowerShell v2

With the Deep Dive just over 6 weeks away the programme is shaping up.Abstracts of some of the sessions can be viewed

Bookmark and Share     0 Comments     RSS Feed     Email a friend