PowerShell for Windows Admins:

PowerShell


September 16, 2012  7:41 AM

Reading mounted device information from the registry



Posted by: Richard Siddaway
PowerShell, Registry

Interesting question about reading the registry.  How do you read HKLM:\SYSTEM\MountedDevices and pull out the name of the device and the associated data.

Get-Item -Path HKLM:\SYSTEM\MountedDevices

returns data of this form

  Bookmark and Share     0 Comments     RSS Feed     Email a friend

September 16, 2012  7:03 AM

Random confusion



Posted by: Richard Siddaway
PowerShell

There seems to be a bit of cofusion about how Get-Random works.

Try this

1..10 | foreach {Get-Random}

you’ll get  randomly selected 32-bit unsigned integer between 0 (zero) and Int32.MaxValue (0x7FFFFFFF, 2,147,483,647).

The –Minimum parameter sets a...


September 12, 2012  2:26 PM

PowerShell Summit 2013 dates



Posted by: Richard Siddaway
PowerShell

The dates for the summit have been announced – 22-24 April 2013 @ Microsoft campus Redmond

You can register at http://powershell.org/summit

1/7 th of the tickets have already gone – don’t miss out.


September 10, 2012  2:27 AM

PowerShell Summit Open for registration



Posted by: Richard Siddaway
PowerShell

The PowerShell summit to be held April 2013 at Microsoft’s Redmond campus is now open for early registration.  There are very good deals available for early registration.

Details and registration link here -

Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 5, 2012  12:40 PM

PowerShell Summit April 2013



Posted by: Richard Siddaway
PowerShell

A PowerShell summit is being proposed for April 2013.  It will be held on the Microsoft campus in Redmond.

Preliminary information can be found here

http://powershell.org/summit/

We’d...


September 4, 2012  12:53 PM

Finding if the user associated with a profile is logged on



Posted by: Richard Siddaway
PowerShell, WMI

A forum question asked how to find if the user to whom a profile belonged was logged on. There isn’t an easy way as there isn’t an association between the profile and the log on session.

There is a quick and dirty way  though


				
				
  Bookmark and Share     0 Comments     RSS Feed     Email a friend


September 3, 2012  2:05 PM

New PowerShell site



Posted by: Richard Siddaway
PowerShell

If you haven’t found it already I would recommend you visit powershell.org at http://powershell.org/wp/home/.

Its a new location for getting answers to your PowerShell questions.

You will...


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