I have these two commands that both work if run locally on the machine but when I try to create a fixlet with them using run command as “current user” it either fails or says complete but didn’t change the local admin group. i’ve tried with ps1 and bat files. I’ve looked at other posts in the forum and haven’t gotten any working info from those
First Try
$luser = “domain” + $env:username
Remove-LocalGroupMember -Group Administrators -Member $luser
Second Try
net localgroup administrators %username% /delete