• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 806
  • 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 Information TechnologyCommented:
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 Information TechnologyCommented:
What No Points.
I gave you a legitimate answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

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