PowerTip: Use PowerShell Tab Expansion to Navigate Registry

Summary: Use the Windows PowerShell tab expansion feature to quickly navigate the Windows registry.  How can I use Windows PowerShell to explore settings in the Windows registry?  Use a cmdlet like Get-Item, Get-ItemProperty, or Get-ItemPropertyValue, specify the drive (such as HKCU),             and then press the Tab key to navigate the registry, for example: Get-ItemProperty… Read more

New PowerShell 5 Feature Provids Better Registry Support

Summary: Ed Wilson, Microsoft Scripting Guy, talks about a new feature in Windows PowerShell 5.0 that providers better registry support. Microsoft Scripting Guy, Ed Wilson, is here. The Windows PowerShell registry drive has always been somewhat of a love-hate relationship with me. I mean, it makes such great sense to be able to work with… Read more

Use PowerShell to Move User Files and Update Registry

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to move user files and update the registry.  Hey, Scripting Guy! I need to move a bunch of user files from their local computer to a network share so we can back up the user's data prior to migrating their desktops. I know there… Read more

PowerTip: Use PowerShell to Read Registry Key Property Value

Summary: Use Windows PowerShell to read a registry key property value.  How can I use Windows PowerShell to read a registry key property value so I can find the version of a particular software package?  Use the Get-ItemProperty cmdlet, for example: Get-ItemProperty -Path HKCU:\Software\ScriptingGuys\Scripts -Name version… Read more

Update or Add Registry Key Value with PowerShell

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to update or add a registry key value.  Hey, Scripting Guy! I am having a problem trying to update the registry. I am using the New-ItemProperty cmdlet, but it fails if the registry key does not exist. I added the –Force parameter, but it… Read more

PowerTip: Use PowerShell to Display Registry Keys

Summary: Learn how to use Windows PowerShell to display registry keys.  How can I use Windows PowerShell to provide a list of registry keys that I can filter, instead of using Regedit to search?  Use the Get-ItemProperty cmdlet and point it to a specific registry hive. The following command looks for            software… Read more

Use PowerShell DSC to Configure the Registry

Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell and Desired State Configuration to configure the registry. Microsoft Scripting Guy, Ed Wilson, is here. I thought I would piggy-back a bit on the excellent posts that Windows PowerShell MVP, Richard Siddaway, wrote this week about working with the registry with Windows PowerShell. If… Read more

Registry Cmdlets: Complete the Registry CDXML Module

Summary: Richard Siddaway shows how to complete the registry CDXML module. Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. This is the final post in a series. To catch up, read: Registry Cmdlets: Working with the Registry Registry Cmdlets: First Steps with CDXML Registry Cmdlets: Advanced CDXML… Read more

Registry Cmdlets: Advanced CDXML

Summary: Richard Siddaway shows some advanced features in CDXML. Honorary Scripting Guy, Richard Siddaway, here today filling in for my good friend, The Scripting Guy. This is the third post in a series. To catch up, read: Registry Cmdlets: Working with the Registry Registry Cmdlets: First Steps with CDXML Yesterday, you saw that you can… Read more

PowerTip: Use PowerShell to Find Parameters for CIM Class Method

Summary: Learn how to discover the parameters for a method in a CIM class.  How can I find the parameters of a CIM class method, such as GetStringValue in the StdRegprov class?  Use Get-CimClass to get the class: $class = Get-CimClass -ClassName StdRegProv To view the methods: $class.CimClassMethods To view the parameters of a particular method: $class.CimClassMethods[“GetStringValue”].Parameters You will see the… Read more