Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Get-Location

Get-Location - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Get-Location

Description
Get and display the current location

Usage
Get-Location [-psProvider string[]] [-psDrive string[]] [CommonParameters]

      Get-Location [-stack] [-stackName string[]] [CommonParameters]

Options
-psProvider 
        Output a PathInfo object representing the current working location for
        the specified provider(s).
        
   -psDrive
        Output a PathInfo object representing the current working location for
        the specified drive(s).
        
   -stack
       Output a StackInfo object representing the current stack.
        
   -stackName 
       Output StackInfo object(s) representing the specified stack(s).

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Example(s)
Display the current working location:

PS C:\>get-location

Display items on the current stack:

PS C:\>get-location -stack