But I'm running into "access denied" and permissions errors in some cases. I need to run this as admin, but I don't know how to alter the syntax to achieve this.
there's lots of "elevator" tools but i'm liking "sudo" clones lately on the way to making Windows more and more in parity with Linux/Mac at the command line...
i've started putting these little winget command lines into a script file per tool and then keeping them all in a "reinstall" folder for whenever i have to fire up a new fresh windows installation
once that's installed, i think you'd just need to throw gsudo in front of your pwsh
This is an example registry entry I am using:
"%FM_BIN%\SingleInstanceAccumulator.exe" -t:125 -f "-c:pwsh -noprofile -noexit -Command \"& '%FM_PS_WRAPPERS%\Image\ImgOps-A07-CropSVG.ps1' -Overwrite -FileList $files \"" "%1"
But I'm running into "access denied" and permissions errors in some cases. I need to run this as admin, but I don't know how to alter the syntax to achieve this.
Any way you can point me in the right direction?
Thanks so much for any additional help.