{"id":15851,"date":"2011-01-20T00:01:00","date_gmt":"2011-01-20T00:01:00","guid":{"rendered":"https:\/\/blogs.technet.microsoft.com\/heyscriptingguy\/2011\/01\/20\/accelerate-the-powershell-console-with-custom-drives\/"},"modified":"2011-01-20T00:01:00","modified_gmt":"2011-01-20T00:01:00","slug":"accelerate-the-powershell-console-with-custom-drives","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/scripting\/accelerate-the-powershell-console-with-custom-drives\/","title":{"rendered":"Accelerate the PowerShell Console with Custom Drives"},"content":{"rendered":"<p>&nbsp;&nbsp;<\/p>\n<p><b>Summary:<\/b> Microsoft Scripting Guy Ed Wilson teaches how to accelerate work in the Windows PowerShell console with PSDrives.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><img decoding=\"async\" height=\"34\" width=\"34\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/q-for-powertip.jpg\" align=\"left\" alt=\"Hey, Scripting Guy! Question\" border=\"0\" title=\"Hey, Scripting Guy! Question\" \/><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>Hey, Scripting Guy! I noticed in one of your screen shots that you were running the script from a rather deeply nested path of <b>c:\\data\\ScriptingGuys\\2011\\HSG-1-3-11<\/b>. I remember thinking what a silly path for a PowerShell kind of guy to use. About the only thing that you could have done to make matters worse on yourself would have been to have put a space in Scripting Guys, and maybe chuck the entire thing in your documents folder in your profile. What gives? Is there not a better way to handle paths in Windows PowerShell? Am I limited to chucking everything into a bin folder that I add to my path, or have an unwieldy long path to deal with?<\/p>\n<p>&#8212; MC<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><span style=\"font-size: 10pt\"><img decoding=\"async\" height=\"34\" width=\"34\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/29\/2019\/02\/a-for-powertip.jpg\" align=\"left\" alt=\"Hey, Scripting Guy! Answer\" border=\"0\" title=\"Hey, Scripting Guy! Answer\" \/><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span>Hello MC, Microsoft Scripting Guy Ed Wilson here. You know, one of the fun things about traveling with Dr. Scripto is that he is world famous. When I was doing the fashion photographer thing, and we were having our photo shoot, dozens of people came up to watch the proceedings. During our tour of the Castillo De San Marcosk, Carl &ldquo;Fritz&rdquo; Bertoch, a Visitor Use Assistant for the U.S. Department of the Interior, came up and wanted his picture taken. Being the laid back person that he is, Dr. Scripto was more than happy to oblige.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/8228.HSG-1-20-11-1.JPG\" border=\"0\" \/>&nbsp;<\/p>\n<p>MC, just like having your picture taken with Dr. Scripto, sometimes all it takes is to ask. The reason I have such a convoluted path is that it helps with backups (all my data is in a data folder) and it also helps with organizing all the materials for a weeks&rsquo; worth of Hey, Scripting Guy! posts (documents, scripts, figures, and various notes). I have written a script that I use to create all my folders for each year. <\/p>\n<p>Dealing with scripts and convoluted paths is not too terribly difficult in Windows 7 because I can drag-and-drop a script to the Windows PowerShell console and run the script unless the Windows PowerShell console is elevated (running with Admin rights). If I have to edit a script, I can drag-and-drop the script onto the Windows PowerShell ISE and that will populate a window so I can run and edit as needed. <\/p>\n<p>When I was working on my Windows PowerShell 2.0 Best Practices book, I used a PS drive to shorten paths and to make it easier to access the scripts for that project. To create a PS drive, I use the <b>New-PSDrive<\/b> cmdlet. When using the <b>New-PSDrive<\/b> cmdlet, I have to specify at least three things: the provider name, the root location for the new drive, and a name for the drive. For now, I will use the <b>FileSystem<\/b> provider because that provider will allow me to access my hard drive. One of the cool things about the <b>New-PSDrive<\/b> cmdlet is that I can create a &ldquo;PowerShell drive&rdquo; that has a root on a file share, a registry hive, a certificate store, or some other location. It all depends on what providers are installed on the system. The command to create a PS Drive named HSG that has the root of <b>C:\\data\\ScriptingGuys\\2011<\/b> using the <b>filesystem<\/b> provider appears here. <\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">New-PSDrive -PSProvider filesystem -Root C:\\data\\ScriptingGuys\\2011 -Name HSG <\/span><\/p>\n<p>&nbsp;<\/p>\n<p>When this command is finished, it returns an instance of the <b>PSDriveInfo<\/b> class. This is seen here.<\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; New-PSDrive -PSProvider filesystem -Root C:\\data\\ScriptingGuys\\2010 -Name HSG10 | Get-Member<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\"><span>&nbsp;&nbsp; <\/span>TypeName: System.Management.Automation.PSDriveInfo<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>MemberType<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Definition<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;-<span>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span>&#8212;&#8212;&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">CompareTo<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Method<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>int CompareTo(System.Management.Automation.PSDriveInfo drive), in&#8230;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Equals<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Method<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>bool Equals(System.Object obj), bool Equals(System.Management.Aut&#8230;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">GetHashCode<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Method<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>int GetHashCode()<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">GetType<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Method<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>type GetType()<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">ToString<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Method<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>string ToString()<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Credential<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Property<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.Management.Automation.PSCredential Credential {get;}<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">CurrentLocation Property<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.String CurrentLocation {get;set;}<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Description<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Property<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.String Description {get;set;}<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Property<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.String Name {get;}<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Provider<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Property<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.Management.Automation.ProviderInfo Provider {get;}<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Root<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Property<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>System.String Root {get;}<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Free<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ScriptProperty System.Object Free {get=## Ensure that this is a FileSystem drive&#8230;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Used<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ScriptProperty System.Object Used {get=## Ensure that this is a FileSystem drive&#8230;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Because the object returns, the properties display to the Windows PowerShell console every time that a new PS Drive is created. Most of the time, I like seeing the<b> PSDriveInfo<\/b> object because it provides confirmation that the command succeeded. This is shown in the following figure.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/7178.HSG-1-20-11-2.JPG\" border=\"0\" \/> <\/p>\n<p>&nbsp;<\/p>\n<p>If I decide, such as I did when I was working on my book, to add the <b>PSDrive<\/b> to my Windows PowerShell profile, I do not want the distraction of a bunch of text cluttering my screen. Therefore, I pipeline the <b>PSDriveInfo<\/b> object to the <b>Out-Null<\/b> cmdlet and discard the <b>PSDriveInfo <\/b>object. Pipelining return objects to the <b>Out-Null<\/b> cmdlet does not affect the operation of the command. The command to do this appears here. <\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">New-PSDrive -PSProvider filesystem -Root C:\\data\\ScriptingGuys\\2011 -Name HSG | Out-Null<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>At this point, MC, you are probably asking yourself, &ldquo;This is all nice to know stuff, but how do I use the newly created PS Drive?&rdquo; It is as easy to use a PS Drive as it is to use any other drive on your system. In fact, within the Windows PowerShell environment the C and D drives on my computer show up as PS Drives. I use the <b>Get-PSDrive<\/b> cmdlet to obtain information about PS Drives. The output appearing here shows this technique. <\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; Get-PSDrive | sort provider<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Used (GB)<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Free (GB) Provider<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Root<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>CurrentLoc<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ation<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212; &#8212;&#8212;&#8211;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Alias<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Env<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Environment<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">HSG<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>88.38 FileSystem<span>&nbsp;&nbsp;&nbsp; <\/span>C:\\data\\ScriptingGuys\\2011<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">D<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;<\/span>FileSystem<span>&nbsp;&nbsp;&nbsp; <\/span>D:\\<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">C<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>59.13<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>88.38 FileSystem<span>&nbsp;&nbsp;&nbsp; <\/span>C:\\<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Function<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Function<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">HKLM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Registry<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>HKEY_LOCAL_MACHINE<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">HKCU<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Registry<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>HKEY_CURRENT_USER<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Variable<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Variable<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">cert<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Certificate<span>&nbsp;&nbsp; <\/span>\\<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">WSMan<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>WSMan<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>As seen in the following figure I can use the same commands with my new HSG PS Drive that I use with the C or the D drive. <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/msdnshared.blob.core.windows.net\/media\/TNBlogsFS\/prod.evol.blogs.technet.com\/CommunityServer.Blogs.Components.WeblogFiles\/00\/00\/00\/76\/18\/0272.HSG-1-20-11-3.JPG\" border=\"0\" \/>&nbsp;<\/p>\n<p>The <i>cd <\/i>command is an alias for the <b>Set-Location<\/b> Windows PowerShell cmdlet, and <i>dir <\/i>is an alias for the <b>Get-ChildItem<\/b> cmdlet. Navigating PS Drives is such a fundamental task, that there are three aliases (by default) for these cmdlets. I use the <b>Get-Alias<\/b> cmdlet and the <i>definition <\/i>parameter to find aliases for cmdlets I use a lot. Here is the command and the associated output.<\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS HSG:\\&gt; Get-Alias -Definition Get-ChildItem<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">CommandType<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span>Definition<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;&#8212;&#8212;&#8211;<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>dir<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Get-ChildItem<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>gci<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Get-ChildItem<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>ls<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Get-ChildItem<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS HSG:\\&gt; Get-Alias -Definition Set-Location<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">CommandType<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Definition<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;&#8212;&#8212;&#8211;<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<\/span>cd<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Set-Location<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>chdir<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Set-Location<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>sl<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Set-Location<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS HSG:\\&gt;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Of course, I do not have to set my location to the HSG PS Drive to obtain a directory listing. I can do it from the C drive as shown here. <\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; dir hsg:<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\"><span>&nbsp;&nbsp;&nbsp; <\/span>Directory: C:\\data\\ScriptingGuys\\2011<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Mode<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>LastWriteTime<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Length Name<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212; &#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">d&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>1\/14\/2011<span>&nbsp;&nbsp; <\/span>2:55 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>HSG_1_10_11<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">d&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>1\/14\/2011<span>&nbsp;&nbsp; <\/span>2:55 PM<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>HSG_1_17_11<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&lt;output truncated&gt;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt;<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>Two other neglected cmdlets are <b>Push-Location<\/b> and <b>Pop-Location<\/b>. <b>Push-Location<\/b> stores the current location, and <b>Pop-Location<\/b> returns to the stored location. When I have to change to a particular location to do some work, I frequently like to push my current location onto the stack, do my work, and then pop back to my previous location. This appears here where I use the aliases <i>pushd<\/i> and <i>popd<\/i>. When confronted with an alias I may not understand, I use the <b>Get-Alias<\/b> cmdlet to look up the definition (that is also illustrated).<\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; pushd<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; sl hsg:<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS HSG:\\&gt; popd<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; Get-Alias pushd<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">CommandType<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Definition<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;&#8212;&#8212;&#8211;<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>pushd<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Push-Location<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; Get-Alias popd<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">CommandType<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Name<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Definition<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&#8212;&#8212;&#8212;&#8211;<span>&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;-<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>&#8212;&#8212;&#8212;-<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">Alias<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>popd<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <\/span>Pop-Location<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">&nbsp;<\/span><\/p>\n<p style=\"margin-left: 0.5in\"><span style=\"font-family: courier new,courier\">PS C:\\&gt; <\/span><\/p>\n<p>&nbsp;<\/p>\n<p>MC, that is all there is to using the <b>New-PSDrive<\/b> cmdlet. Stay tuned tomorrow when I answer more burning PowerShell&nbsp;questions on Quick Hits Friday.<\/p>\n<p>I invite you to follow me on <a target=\"_blank\" href=\"http:\/\/bit.ly\/scriptingguystwitter\">Twitter<\/a> or <a href=\"http:\/\/bit.ly\/scriptingguysfacebook\">Facebook<\/a>. If you have any questions, send email to me at <a target=\"_blank\" href=\"mailto:scripter@microsoft.com\">scripter@microsoft.com<\/a> or post them on the <a target=\"_blank\" href=\"http:\/\/bit.ly\/scriptingforum\">Official Scripting Guys Forum<\/a>. See you tomorrow. Until then, peace.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Ed Wilson, Microsoft Scripting Guy<\/strong>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp; Summary: Microsoft Scripting Guy Ed Wilson teaches how to accelerate work in the Windows PowerShell console with PSDrives. &nbsp; Hey, Scripting Guy! I noticed in one of your screen shots that you were running the script from a rather deeply nested path of c:\\data\\ScriptingGuys\\2011\\HSG-1-3-11. I remember thinking what a silly path for a PowerShell [&hellip;]<\/p>\n","protected":false},"author":595,"featured_media":87096,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[51,3,4,45],"class_list":["post-15851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-scripting","tag-getting-started","tag-scripting-guy","tag-scripting-techniques","tag-windows-powershell"],"acf":[],"blog_post_summary":"<p>&nbsp;&nbsp; Summary: Microsoft Scripting Guy Ed Wilson teaches how to accelerate work in the Windows PowerShell console with PSDrives. &nbsp; Hey, Scripting Guy! I noticed in one of your screen shots that you were running the script from a rather deeply nested path of c:\\data\\ScriptingGuys\\2011\\HSG-1-3-11. I remember thinking what a silly path for a PowerShell [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/15851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/users\/595"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/comments?post=15851"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/posts\/15851\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media\/87096"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/media?parent=15851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/categories?post=15851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/scripting\/wp-json\/wp\/v2\/tags?post=15851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}