Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Remove Local Admin via powershell

$
0
0

Hey guys,

So just looking for the closer, I ran a powershell to pull all local administrators, I exported the txt documents, edited it, now I want to remove local admin from all the users in that document,

So I know from an earlier post I had that I'll be using

Get-Content c:\users\administrator.domain\desktop\localadmin.txt

to pull up my text document, but how do I execute the command to remove from local admin


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>