• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 802
  • Last Modified:

AUTO-LOGON ENABLED ON COMPUTERS

Hello Experts,

   What's the best way to run a scan on my network to find out which machines have Auto Logon enabled on them?  

   I have SCCM 2007 (Config Manager Report Viewer) can I view this through that utility? If so, where do I need to drill down to to see this option?  Thanks for your help.
0
itsmevic
Asked:
itsmevic
  • 2
1 Solution
 
MikeIT ManagerCommented:
AFAIK that's a local settings which probably will not show up in any network report.
0
 
yo_beeDirector of ITCommented:
You would need to read every computer registy for this value.

HKEY_LOCAL_MACHINE
\SOFTWARE\
Microsoft\
Windows NT\
CurrentVersion\
Winlogon\



AutoAdminLogon = 1

const HKEY_CURRENT_USER = &H80000001
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut
 
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
 strComputer & "\root\default:StdRegProv")
 
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon"
strValueName = "HistoryBufferSize"
oReg.GetDWORDValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
StdOut.WriteLine "Current History Buffer Size: " & dwValue 
 
 
strKeyPath = "SOFTWARE\Microsoft\Windows Script Host\Settings"
strValueName = "AutoAdminLogon"
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
If strvalue = 1 then
StdOut.WriteLine "Current WSH Auto Logon Value is enabled"
end if

Open in new window


Now you will need to leverage WMI to connect to the remote computer and gather this.
You would want to modify the Strcomputer value to match a netbios computer name.
If you have a list computer  name you can loop through the list with a ForEach statement ot gather the info.

If you like I can work one up for you.
0
 
yo_beeDirector of ITCommented:
What No Points.
I gave you a legitimate answer.
0

Featured Post

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now