Weekly Tip 37

Remove Administrative Users from SCCM

import-module “C:\Program Files (x86)\ConfigMgr\bin\ConfigurationManager.psd1”

cd <site code>:

$users = (Get-CMAdministrativeUser | Where-Object -FilterScript {$_.logonname -like “<user/group name”}).LogonName

ForEach ($user in $users) {

Remove-CMAdministrativeUser -name $user -force

write-host “removed $user” }

Be sure to put in your site code on line 2, and give line 4 a user or group name to remove. This is set up with a “like”, so if there’s a naming scheme, you can remove batch users at one time.

Share:

Facebook
Twitter
LinkedIn
Picture of Matt Tinney

Matt Tinney

Professional IT executive & business leader having decades of experience with Microsoft technologies delivering modern-day cloud & security solutions.

Contact Us

=
On Key

More Posts

WME Cybersecurity Briefings No. 024
Cyber Security

WME Security Briefing 28 August 2024

GhostWrite Vulnerability in T-Head CPUs Exposes Devices to Unrestricted Access Overview A critical architectural flaw in T-Head’s XuanTie C910 and C920 RISC-V CPUs was uncovered by recent research from the CISPA Helmholtz Center for Information Security. Dubbed GhostWrite, the vulnerability

Click Here to Read Full Article »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.

=