PowerShell for Windows Admins:

PowerShell v2


May 20, 2012  12:40 PM

Using Invoke-WmiMethod to set the DNS servers



Posted by: Richard Siddaway
Network, PowerShell 3, PowerShell v2, WMI

In the last post I showed that there was an issue with the way the SetDNSServerSearchOrder of the Win32_NetworkAdapterConfiguration class worked

This would work

$nic = Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "Index=7"

May 18, 2012  2:00 PM

TCP/IP Alternative Configurations: pt III set the alternative configuration



Posted by: Richard Siddaway
Network, PowerShell 3, PowerShell v2

 

We have seen how to set the NIC to use DHCP to get its address. This post shows how to set the alternative configuration on the NIC. If you just  want APIPA then do nothing – other wise use this script

$HKLM 
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


April 15, 2012  10:17 AM

PowerShell and WMI



Posted by: Richard Siddaway
Books, PowerShell 3, PowerShell v2, WMI

My latest book – PowerShell and WMI – has gone to the printers. Expect it soon at a book shop near you.

www.manning.com/powershellandwmi

for more details


March 26, 2012  11:38 AM

PowerShell Deep Dive 2012 Agenda



Posted by: Richard Siddaway
Deep dive, PowerShell 3, PowerShell v2

The agenda for the PowerShell Deep Dive next month has just been published on the PowerShell team blog

Bookmark and Share     0 Comments     RSS Feed     Email a friend


March 11, 2012  8:40 AM

PowerShell books–March 2012



Posted by: Richard Siddaway
Books, PowerShell 3, PowerShell v2

Back in January last year I posted about my preferred set of PowerShell books.

Bookmark and Share     0 Comments     RSS Feed     Email a friend


February 11, 2012  2:36 PM

Domain Controller Service Health



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

The correct functioning of our AD domains depends on the services that are running on our domain controllers

A quick test for the services that could affect AD

function test-dcServiceHealth 			


February 5, 2012  6:40 AM

PAM release February 2012



Posted by: Richard Siddaway
PowerShell, PowerShell v2

I have added another module to the PowerShell Admin Modules - http://psam.codeplex.com/

 

Release 0.7 adds a PAMHostsFile module with the following members

add-hostfilecontent ...


January 28, 2012  10:20 AM

Active Directory and WMI



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

A lot of the Active Directory related functionality has been removed from WMI but  there is a little bit left in the root\MicrosoftActiveDirectory namespace.

This is on a Windows 2008 R2 domain controller – I don’t know if this is available on down level versions of Windows.

...


January 24, 2012  4:34 PM

Remoting between PowerShell v3 CTP 2 and PowerShell v2



Posted by: Richard Siddaway
PowerShell 3, PowerShell v2, Windows 2008 R2, Windows 7

One of the questions on tonight’s Live Meeting concerned the compatibility between remoting on PowerShell v2 and PowerShell v3 CTP 2

The difference is that v3 uses a WSMAN 3.0 stack but v2 uses 2.0

I used two machines:

  • Windows 2008 R2 SP 1 with PowerShell...


January 18, 2012  1:18 PM

Associated Classes



Posted by: Richard Siddaway
PowerShell v2, WMI

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...


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: