Intune Initial Scripts Backup
This commit is contained in:
5
dump/Add-to-Local-Admins-Group.ps1
Normal file
5
dump/Add-to-Local-Admins-Group.ps1
Normal file
@@ -0,0 +1,5 @@
|
||||
$Acct = "ccx/sccm"
|
||||
$Ws = "l201131"
|
||||
|
||||
Invoke-Command $Ws { Param($Acct,$Ws) ([ADSI]"WinNT://$Ws/administrators,group").psbase.Invoke("Add",([ADSI]"WinNT://$Acct").path)} -ArgumentList $Acct,$Ws
|
||||
|
||||
Reference in New Issue
Block a user