PowerShell for Windows Admins:

Registry


January 22, 2014  1:56 PM

When did Windows update last run



Posted by: Richard Siddaway
PowerShell, Registry

A question came up on the forum regarding when Windows Update last run and when an update was last installed.  Get-Hotfix shows the date of installation for most BUT not all patches. The registry holds values showing last successful detection and install: $props = [ordered]@{ LastDetect =...

December 14, 2012  8:26 AM

Registry oddity



Posted by: Richard Siddaway
PowerShell, Registry

Looking at modifying the registry on a virtual machine while its offline. I mount the VHDX file and can run this  to load the registry

PS> reg load HKLM\VHDSYS h:\windows\system32\config\system
The operation completed successfully.

If I perform a reg unload at...


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


March 30, 2012  8:49 AM

PowerShell in Practice offer today only



Posted by: Richard Siddaway
Active Directory, Books, Hyper-V, Network, Operating System, PowerShell, Processor, Registry, WMI

Manning have PowerShell in Practice on a half price offer today. Go to www.manning.com and use code dotd0330cc when ordering


March 19, 2012  4:33 PM

Reading registry values with CIM



Posted by: Richard Siddaway
PowerShell 3, Registry, WMI

In this post

Bookmark and Share     0 Comments     RSS Feed     Email a friend


November 11, 2011  2:48 PM

Set registry key owner



Posted by: Richard Siddaway
PowerShell v2, Registry

In chapter 7 of PowerShell and WMI I stated that I would post a .NET version of a script to set ownership of a registry key. The WMI method needs Vista or above so we need the .NET version for pre-Vista operating systems.

function 
				
								
				 

				Bookmark and Share

				   

				 0 Comments
				   

				  RSS Feed
				   

				  Email a friend

			
			
			


November 6, 2011  1:50 PM

IPv6 Link local addresses and device identifier



Posted by: Richard Siddaway
Network, PowerShell, Registry, WMI

If I run ipconfig on my system the partial results are this

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . : tiscali.co.uk
   Link-local IPv6...


September 5, 2011  12:33 PM

Find the Time Server



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

No its not the latest Internet game.

Active Directory synchronises the computer clock times. To know what server is being used

function get-timeserver{             
			


January 13, 2011  1:57 PM

Registry data types



Posted by: Richard Siddaway
PowerShell v2, Registry

 

One point I didn’t cover in my series on working with the registry was how to get the type of a registry value.


July 27, 2010  2:00 PM

Recording and slides for July 2010 UG meeting



Posted by: Richard Siddaway
PowerShell v2, Registry, User Group

This months meeting covered working with the registry.

The slides and the demo script are available from

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: