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.



Contact Us

On Key

More Posts

WME Cybersecurity Briefings No. 004
Cyber Security

WME Security Briefing 11 April 2024

Mispadu Trojan Exploits Windows Vulnerability to Target Financial Data Overview The Mispadu banking trojan has intensified its operations as it’s exploiting an already patched Windows SmartScreen flaw. Since its initial identification in 2019, Mispadu has primarily preyed on

Read More »
WME Cybersecurity Briefings No. 003
Cyber Security

WME Security Briefing 29 March 2024

Russian hackers escalating their cyber warfare, deploying TinyTurla-NG to breach European NGOs. Cisco Talos reveals a targeted attack against organizations advocating democracy and supporting Ukraine. With their sophisticated methods, these cyber attackers are bypassing antivirus defenses

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.