Jump to content

Powershell Core "Sudo" returns "Command not found" almost always


Recommended Posts

Guest Kilian Bosse
Posted

Except for a few commands that are inherently admin-only, sudo simply does not work in Powershell Core (or Powershell 5 for that matter).Details: I want to delete a write-protected folder.Remove-Item <item> returns something about insufficient rights (as expected).Sudo Remove-Item <item> returns "Command not found".I have enabled Sudo. I tested it (sudo netstat -ab behaves as expected with just netstat -ab faling as expected) and it works (for netstat and sudo -V [returns 1.0.0]). For everything else? It fails to recognize the command. I tried putting the command afterwards in quo

 

Continue reading...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...