Forum Discussion
Daniel Westerdale
Apr 25, 2024Brass Contributor
Fix a broken $Profie location
A couple of days ago I remove Documents from OneDrive which seems to have broken the "Oh my POSH" settings in my various terminals. PowerShell 7.4.2
PS C:\Dev> $home
C:\Users\daniel
PS C:...
- Apr 29, 2024
Ah in my case I have C:\Users\daniel\OneDrive and also through syncing with the other laptop the C:\Users\danie\OneDrive ( I originally caused issue with my bad spelling lol.)
So do I correct all the ones with the incorrect spelling given I have corrected the issue with the profile name.
Apr 29, 2024
I was just wondering since you deleted the My Documents in your OneDrive... Did you have a backup of My Desktop, My Pictures, and My Documents configured? If you right-click your My Documents folder in Windows Explorer and select properties... What folder does the Location tab specify?
Daniel Westerdale
Apr 29, 2024Brass Contributor
Good morning. No backup as yet which I will remedy shortly. I do appear to have lost the My Documents quick access although Downloads, Music, Pictures all seem ok.
You have got me thinking : open up the recycle bin as all my previous PowerShell modules are located at c:\daniel\OneDrive\Documents\WindowsPowerShell\Modules.
Could these be the next steps:
- Restore these and back up this directory
- Re-add Documents to OneDrive
- Copy files over from backed up directory
- Check / amend the $Profile
- Apr 29, 2024It seems like a plan to get things back to where they were and move on from there. But check the Known Folder Move /backup settings in the OneDrive client. Default is c:\users\username\documents\WindowsPowerShell\Modules, but with Known Folder Move/backup settings enabled in OneDrive, they are in the OneDrive folder
- Daniel WesterdaleApr 29, 2024Brass ContributorI am currently restoring Documents from the Recycle bin ... um there is quite a lot of files so it is taking a while. I have looked at the Settings/ backup and not seeing anything for the PS modules. However I do appear to be restoring lots of files from c:\users\username\documents\WindowsPowerShell\Modules so I guess that is the indicator.
- Apr 29, 2024It's not the modules listed there, but the My Documents, Pictures and Desktop. (It's all or nothing)