r/PowerShell • u/stumper66 • 18d ago
Question PowerShell 7.7 - All users profile script location
Starting with PowerShell 7.7 it is now a windows app and if you install it with Add-AppxPackage, then it will live in "C:\Program Files\WindowsApps\Microsoft.PowerShell_7.7.0.0_x64__8wekyb3d8bbwe"
On previous versions I had profile.ps1 live in "C:\Program Files\PowerShell\7"
However not only do I suspect the bin directory will change with each new version, it is now read-only for everything except system, you can't put any files in there without hacking it with system privileges.
Where do they expect us to put all user scripts now?
82
Upvotes
View all comments
Show parent comment
11
u/warren_stupidity 18d ago
Use a gpo that sticks a standard profile in the CurrentUserAllHossts or CurrentUserCurrentHost directory for each user.
But holy shit, they are getting even further away from being able to remove psh5.1 from systems. That bug list is magnificent. Let's just release this mess that breaks a whole lot of stuff, and all we have is concepts of a plan for fixing the mess we are making.