Solved

SCCM Local Admin Users

Posted on 2010-09-07
4
5,111 Views
Last Modified: 2013-11-21
Hi All!

I'd like to know if there's any way to collect the information on the users who are members of the local Administrators group though SCCM.

Any ideas?

Many thanks.

Cheers!
0
Comment
Question by:malkaj01
4 Comments
 
LVL 13

Expert Comment

by:Abduljalil Abou Alzahab
ID: 33616664
I think that you can collect information for users who are member of domain groups only.
0
 
LVL 22

Expert Comment

by:Adam Leinss
ID: 33617529
Here's a VBScript file I pushed to all workstations.  If a user has admin rights, it writes out a text file in the format of computername.username.txt to whatever share you specify.
 

' Variables 

Dim objFileSystem, objOutputFile

Dim strOutputFile



' Init objects

Set Shell = CreateObject("WScript.Shell")

Set oNet= WScript.CreateObject("WScript.Network")

Set filesys = CreateObject("Scripting.FileSystemObject")



' Grab computername	

	computername = Shell.ExpandEnvironmentStrings("%computername%")





' See if we can do something "Admin" like

if filesys.FolderExists("\\" & computername & "\Admin$\System32") then

' Grab username

	oUser = oNet.UserName

' Set filename to computername.username.txt

	strOutputFile="\\wksms01\logs\" & computername & "." & oUser & ".txt"

	Set objOutputFile = filesys.CreateTextFile(strOutputFile, TRUE)

	'Close file

	objOutputFile.Close

	Set objFileSystem = Nothing

end if

Open in new window

0
 
LVL 6

Author Comment

by:malkaj01
ID: 33617863
aleinss: Thanks for the script but I was interested in knowing if I could do this though the SCCM console without having to push out any scripts.
0
 
LVL 4

Accepted Solution

by:
zivko earned 500 total points
ID: 33625100
Hello,

Normally, SCCM is able to collect such data but by default it is not configured to do so.
Which data are collected by SCCM from a computer is configured using MOF files.

There is a pretty good post at "My ITForum" Web Site on the subject with a step-by-step description of the implementation.

Here is the link:
http://myitforum.com/cs2/blogs/skissinger/archive/2008/06/08/report-on-local-administrators-group-membership-updated.aspx

Hope this will help.
Regards
0

Featured Post

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now