Give administrator privileges to existing powershell
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Industries in Orbit Looping
--
Chapters
00:00 Give Administrator Privileges To Existing Powershell
00:27 Accepted Answer Score 13
01:07 Thank you
--
Full question
https://superuser.com/questions/1255775/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#powershell #visualstudiocode
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Industries in Orbit Looping
--
Chapters
00:00 Give Administrator Privileges To Existing Powershell
00:27 Accepted Answer Score 13
01:07 Thank you
--
Full question
https://superuser.com/questions/1255775/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#powershell #visualstudiocode
#avk47
ACCEPTED ANSWER
Score 13
Since my suggestion(comment) has worked for the OP, I'm posting this as an answer
Launch the VSCode as an administrator, so that the integrated powershell also gets the admin privileges as you expected.
Instead every time you right-click and "Run as administrator", navigate to the installation folder of the VSCode program, and do as the following demonstration shows.
Note: The files you create this way within VSCode are then also owned by the administrator. This probably isn't an issue in most of the cases. But there are scenarios where this, at least, creates a higher effort for you when handling those files.