This is the built-in help made by Microsoft for the command 'Pop-Location', in PowerShell version 2 - as retrieved from
Windows version 'Microsoft® Windows Vista™ Ultimate ' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Changes the current location to the location most recently pushed onto the stack. You can pop the location from the default stack or from a stack that you create by using the Push-Location cmdlet.
Pop-Location [-PassThru] [-StackName <string>] [-UseTransaction] [<CommonParameters>]
The Pop-Location cmdlet changes the current location to the location most recently pushed onto the stack by using the Push-Location cmdlet. You c
an pop a location from the default stack or from a stack that you create by using a Push-Location command.
<
Online version: http://go.microsoft.com/fwlink/?LinkID=113369
about_Providers
Push-Location
Set-Location
Get-Location
<
-------------------------- EXAMPLE 1 --------------------------
C:\PS>pop-location
Description
-----------
This command changes your location to the location most recently added to the current stack.
-------------------------- EXAMPLE 2 --------------------------
C:\PS>pop-location -stackname Stack2
Description
-----------
This command changes your location to the location most recently added to the Stack2 stack.
-------------------------- EXAMPLE 3 --------------------------
C:\PS>pushd HKLM:\Software\Microsoft\PowerShell
pushd Cert:\LocalMachine\TrustedPublisher
popd
popd
PS C:\> push-location HKLM:\Software\Microsoft\PowerShell
PS HKLM:\Software\Microsoft\PowerShell> push-location Cert:\LocalMachine\TrustedPublisher
PS cert:\LocalMachine\TrustedPublisher> popd
PS HKLM:\Software\Microsoft\PowerShell> popd
PS C:\ps-test>
Description
-----------
These commands use the Push-Location and Pop-Location cmdlets to move between locations supported by different Windows PowerShell providers. The
commands use the "pushd" alias for Push-Location and the "popd" alias for Pop-Location.
The first command pushes the current file system location onto the stack and moves to the HKLM drive supported by the Windows PowerShell Registry
provider. The second command pushes the registry location onto the stack and moves to a location supported by the Windows PowerShell certificate
provider.
The last two commands pop those locations off the stack. The first "popd" command returns to the Registry: drive, and the second command returns
to the file system drive.