Adding New Virtual Drives

You do not need to use drive letters to access information provided by PowerShell providers. For example, you should use this to list the HKEY_CLASSES_ROOT you have in your registry:

Dir Registry::HKEY_CLASSES_ROOT

By pre-pending the path with the provider name that PowerShell should use, you no longer need drive letters. Or, you could add new drive letters to locations not covered by existing drive letters:

New-PSDrive HKCR Registry Registry::HKEY_CLASSES_ROOT
Dir HKCR:

Twitter This Tip! ReTweet this Tip!


Posted Mar 29 2010, 08:00 AM by ps1

Comments

Twitter Trackbacks for Adding New Virtual Drives - Power Tips - PowerShell.com [powershell.com] on Topsy.com wrote Twitter Trackbacks for Adding New Virtual Drives - Power Tips - PowerShell.com [powershell.com] on Topsy.com
on 03-29-2010 10:27 AM

Pingback from  Twitter Trackbacks for                 Adding New Virtual Drives - Power Tips - PowerShell.com         [powershell.com]        on Topsy.com

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.