Yes, that should work. But if you need to see the absolute path, this is all you need:
(Get-Item .).FullName
More Related Contents:
- For PowerShell cmdlets, can I always pass a script block to a string parameter?
- Set Value of Nested Object Property by Name in PowerShell
- PowerShell says “execution of scripts is disabled on this system.”
- Create objects with custom properties containing derived filesystem path information and export them to a CSV – calculated properties
- Using a Variable (PowerShell) inside of a command
- Changing PowerShell’s default output encoding to UTF-8
- PowerShell outputting array items when interpolating within double quotes
- PSCustomObject to Hashtable
- Using Get-ChildItem -Exclude or -Include returns nothing
- What’s the difference between single quote and double quote to define a string in powershell
- Catching FULL exception message
- Powershell call msbuild with nested quotation marks
- Redirection of standard and error output appending to the same log file
- Convert Unix time with PowerShell
- How can I get the file system location of a PowerShell script?
- How do I include a locally defined function when using PowerShell’s Invoke-Command for remoting?
- How to use the curl command in PowerShell?
- Ignoring an errorlevel != 0 in Windows PowerShell (ISE)
- DateTime subtraction not working in PowerShell – assignment vs. equality operator
- Loading Assemblies from NuGet Packages
- How can I run a PowerShell script with white spaces in the path from the command line?
- How to speed up Powershell Get-Childitem over UNC
- How can I start Powershell script as noprofile in Visual Studio Code
- Output file doesn’t match Write-Host
- How to execute a PowerShell function several times in parallel?
- How to send CTRL or ALT + any other key?
- notcontains not working for User objects pulled from AD Groups
- How to run powershell command in batch file
- Is there a PowerShell equivalent of `paste` (i.e., horizontal file concatenation)? [duplicate]
- Getting “Can’t find the drive. The drive called ‘IIS’ does not exist.”