How to emulate the sudo command in Linux environment in Windows PowerShell

204344873-f4379643-deaf-4864-b3e3-8d18a4

The day before yesterday, I saw Dark Execution Thread share an article on re-executing .NET command-line programs as an administrator. I found that it is really easy to execute programs as a system administrator in Windows. In this article today, I plan to share an article I wrote The PowerShell script allows you to execute any program as a system administrator at any time through PowerShell on Windows, and can simulate the common sudo command in Linux.

continue reading

This article is transferred from http://blog.miniasp.com/post/2022/11/29/Windows-PowerShell-Simulate-sudo-in-Linux
This site is only for collection, and the copyright belongs to the original author.