Tip: Windows PowerShell and OneDrive

If your Windows PowerShell profile is inside your OneDrive folder and you don’t like that, this is what you have to do:

  • open the Registry Editor
  • navigate to HKEY_CURRENT_USER, SOFTWARE, Microsoft, Windows, CurrentVersion, Explorer, User Shell Folders
  • change the Personal key’s value

2017-04-16 13_51_21-Registry Editor.png

In this example, the old value of the Personal folder was C:\Users\ngeor\OneDrive\Documents. This is what Windows PowerShell uses to determine where the profile should live. Changing this to the non-OneDrive old school “My Documents” folder (C:\Users\ngeor\Documents in my case) works for PowerShell too.

Of course, the impact is that all applications will now think that the OneDrive location is not the default, so be aware of that.

References:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s