PowerShell for Windows Admins:

May, 2012


May 30, 2012  1:03 PM

May 2012 Powershell group recording and slides



Posted by: Richard Siddaway
PowerShell 3, User Group, Windows Server 8

 

The recording, slides and demo scripts from last nights session  - Powershell in Windows Server 8 part 2  - is available from

May 27, 2012  10:56 AM

May UG meeting reminder



Posted by: Richard Siddaway
PowerShell 3, User Group, Windows Server 8

Quick reminder that the UK PowerShell group session on PowerShell in Windows 2012 is on Tuesday 29 May. Details from

Bookmark and Share     0 Comments     RSS Feed     Email a friend


May 25, 2012  11:58 AM

Working with WMI methods



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

Many WMI classes have methods. Methods allow us to perform some action on the object. A recent question on the forum about using methods made me realise that there are still a lot of people following the old VBScript way of doing things.

We will experiment with the BITS service as it is...


May 23, 2012  12:46 PM

WMI providers



Posted by: Richard Siddaway
PowerShell 3, WMI

I found a class new to me - Msft_Providers and this got me interested in WMI providers.

PS> Get-CimInstance -Class Msft_Providers | select -ExpandProperty provider
Msft_ProviderSubSystem
SCM Event Provider
WmiPerfClass

 

That seems a...


May 21, 2012  1:56 PM

UK PowerShell group–next two meetings



Posted by: Richard Siddaway
PowerShell, User Group

29 May 2012

PowerShell and Windows server 2012 – new functionality pt 2

Bookmark and Share     0 Comments     RSS Feed     Email a friend


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 20, 2012  4:34 AM

TCP/IP Alternative Configurations: pt IV reset to static address



Posted by: Richard Siddaway
Network, PowerShell, WMI

At some stage we may need to reset our NIC back to having a static address

$index = 7            
            
$nic 
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


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

			
			
			


May 18, 2012  12:07 PM

Advanced PowerShell v3 book



Posted by: Richard Siddaway
Books, PowerShell 3

Three new chapters are added to the MEAP – Manning Early Access Program

Chapter 3 – Using the PowerShell help system – includes PowerShell v3 Updateable help

Chapter 5 – Working with PSsnapins and Modules

Chapter 9 – Formatting

 


May 17, 2012  1:04 PM

Scripting Games 2012 comments: #20 multiple ifs



Posted by: Richard Siddaway
PowerShell

An if statement is used to test a condition and if is true do one thing and do another if it is false. It can be written generically as

if (<condition>){ do stuff}
else {do other stuff}

Sometimes we need to test numerous alternatives. We could use multiple if...


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: