Welcome › Forums › General PowerShell Q&A › How to best work around spaces in path to PowerShell directory
Relatively newbie here (some experience with PS).
With PowerShell storing it’s profile in the Documents\PowerShell or Documents\WindowsPowerShell AND
my company redirecting the Documents folder to OneDrive for Business
I end up with a spaces in my path to those folders;
C:\Users\<User>\OneDrive – <Company>\Documenten\PowerShell\
This seems to present all kinds of issues trying to run .ps1 files from that folder.
Any recommendations on how to best handle this situation ?
ahh, interesting scenario. So I think you are getting error in loading the profile during the launch of PowerShell , is it ?