PowerShell for Windows Admins:

May, 2012


May 30, 2012  1:03 PM

May 2012 Powershell group recording and slides

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

 

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

 

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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

Richard Siddaway Richard Siddaway Profile: Richard Siddaway

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: