PowerShell for Windows Admins:

June, 2012


June 26, 2012  1:50 PM

Write-Host Wrong!



Posted by: Richard Siddaway
PowerShell

Many scripting languages require you explicitly write out to screen – VBScript was an example.

This leads to PowerShell that looks like this

Get-Service |
foreach {
  Write-Host $_.Name, $_.Status
}

This is bad on so many levels.

...

June 24, 2012  12:58 PM

Reminder–UK PowerShell Group–July 2012 meeting



Posted by: Richard Siddaway
PowerShell, User Group


When: Wednesday, Jul 4, 2012 8:30 PM (BST)


Where: Virtual

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

Jonathan Medd will be talking about using PowerShell to administer a XenDesktop environment

Notes


Richard Siddaway has invited you to attend an online meeting...


June 24, 2012  9:05 AM

WMI property names



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

A question brought it home to me that WMI property names don’t always mean what you might think they mean – this is also true of other objects but I tripped over this one with WMI so we’ll stick with that.

PS> Get-CimInstance -ClassName Win32_Desktop -Filter "Name LIKE...


June 12, 2012  12:53 PM

UK PowerShell Group–July 2012



Posted by: Richard Siddaway
PowerShell, User Group


When: Wednesday, Jul 4, 2012 8:30 PM (BST)


Where: Virtual

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

Jonathan Medd will be talking about using PowerShell to administer a XenDesktop environment

Notes


Richard Siddaway has invited you to attend an online...


June 8, 2012  12:22 PM

Working with profiles: 2 deleting profiles



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

I recently (1 June) showed how to discover the user profiles on your system. Now its time to delete them.

function remove-profile {            
 
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


June 8, 2012  7:53 AM

Cleaning up the temp folder



Posted by: Richard Siddaway
File System, PowerShell 3

 

This post

Bookmark and Share     0 Comments     RSS Feed     Email a friend


June 8, 2012  2:34 AM

PowerShell in Depth excerpts



Posted by: Richard Siddaway
Books, PowerShell 3

If you haven’t seen them already Microsoft’s ScriptingGuy has kindly published a couple of excerpts from PowerShell in Depth by Don Jones, Jeff Hicks and myself

Bookmark and Share     0 Comments     RSS Feed     Email a friend


June 2, 2012  8:19 AM

Toggling between LAN and Wireless



Posted by: Richard Siddaway
Network, PowerShell 3, Windows 8, Windows Server 8, WMI

One of the questions in the recent Scripting Games involved toggling between a wireless and LAN connection. Only one was to be up at any one time.

This can be solved using WMI but becomes hugely simpler in Windows 8/2012 as we get a bunch of cmdlets for working with network adapters.

...


June 2, 2012  7:58 AM

Using a colon with cmdlet parameters



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

Another question at Tuesdays PowerShell group revolved around using colons to link values to parameters. I’d not really thought about before. Thinking about it  later I realised that you only really see it when passing booleans to –Confirm.  If you don’t use a colon then you get...


June 2, 2012  6:34 AM

Using Windows 2012 Active Directory module in a Windows 2008 R2 domain



Posted by: Richard Siddaway
Active Directory, PowerShell 3, Windows 2008 R2, Windows Server 8

A question came up on Tuesdays UK PowerShell Group session about using the Windows 2012 Active Directory module. The recording links are here

Bookmark and Share     0 Comments     RSS Feed     Email a friend


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: