Set-location 'C:UsersmeOneDrive - Freie Universität Berlin'
Including the above in the PowerShell profile leads to “path cannot be found because it doesn’t exist” error. It does exist, and a running PowerShell executes the exact same command without issue.
I’ve tried double quotes, I’ve tried -LiteralPath
.
Using Set-location 'C:Usersmetemp'
in the profile works.