Got a weird one. Up until this week, I had no issu...
# _general
n
Got a weird one. Up until this week, I had no issues with this script. Anyone ever see access is denied errors when launching Terminal as a different user? The account I'm launching it as has full control over the settings file, so that shouldn't be an issue.
j
I have had this happen when the Windows Apps get updated, they change the permissions so you can't launch directly from the windows apps folder. You have to use a different exe location, or reset the permissions on that windows apps folder, like I do for my Teams launching.
n
I checked the perms, and they should be good on the app. I can try it again.
Yeah, still busted. This is driving me nuts, and furthers my hatred for Store apps. Could always just use PS directly, but I actually like Terminal
Even using the Portable Terminal has the same issue
Yeah, I've been at this for hours and can't correct it. Coincidence or not, I also can no longer update my KeePass passwords via the poshkeepass module in PS7. Works in PS5 still.
j
Maybe drop the path, and just do start-process with wt. You can do direct calls from that.
n
Tried them all - using WT in any form throws the error. If I could suppress the error maybe it wouldn't be a big deal.
I just can't figure out why it's having issues accessing the JSON for the profiles, seeing as how ProcMon shows no issues there, and perms are correct.
I'm ready to throw my keyboard through the monitor here. I can get around all of this if setting Terminal to Windows Console Host. But after launch PS5 a few times, it reverts back to Let Windows Decide and then starts using Terminal, literally preventing me from launching a straight up PS5 executable outside of Terminal
image.png
I swear I'm not going crazy, but I had to re-add the perms to %AppData% and then the error went away. Like I said, I swear I triple-checked this.......
On the poshkeepass front, I can either change Terminal to use PS5.1, or I think I can rewrite the script to use this module: https://fatherjack.github.io/articles/SecretManagement Tested a few things with it, and I think it'll work. I'll probably rewrite the script for this new method so that I can never run PS5 ever again (RIP, you the OG)