Forum Discussion
Fix a broken $Profie location
- 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.
so these settings should all be enabled
However, when I look at the files to settins: everying in Documents , Pictures etc is added to OneDrive inlcuding Power shell
Now I appear to be miss PSReadline so I guess this not available in new location![]()
PowerShell 7.4.2
Cannot load PSReadline module. Console is running without PSReadline.
Loading personal and system profiles took 2319ms.
$Profile
\PowerShell\Microsoft.PowerShell_profile.ps1
Update: I have installed PSReadline module but in Win 7 session but this is located in C:\Users\daniel\Documents\PowerShell\Modules and so not the OneDrive location . Weirdly, $envPSModulePath looks fine with the OneDirve\Dcouments\PowerShellMdoules incuded in the first entry.
- Apr 30, 2024No problem, glad it's fixed and nice profile prompt 👍
- Daniel WesterdaleApr 30, 2024Brass Contributor
Looks like your last instruction was pure gold!
I corrected the spelling mistake in some of the entries in
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell FoldersRebooted and finally.....
At last
.Thanks very much for your advice.
- Apr 29, 2024All the paths should be pointing to your homefolder (c:\users\daniel) if that's your user. Copy/Paste or move the Documents folder contents there...
- Daniel WesterdaleApr 29, 2024Brass Contributor
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, 2024What is the value of the Personal Key in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders ? For me it's C:\Users\HarmVeenstra\OneDrive - NEXXT\Documents
- Daniel WesterdaleApr 29, 2024Brass ContributorThat works fine but I don't understand why PSReadline is installed in C:\Users\daniel\Documents\PowerShell\Modules\PSReadLine . I amnot sure this is bad thing though .
ALso $Profle is still broken - Apr 29, 2024Ah, more granular now 🙂 Install-Module -Name PSReadLine doesn't work?