trying to run a VBscript to do a autologin script for a user and it does not launch. I have disable firewall, UAC, and any antivirus from the system. I notice that the fog client logs keeps saying “SnapinClient The system cannot find the file specified”. I can launch the script in windows 7 and it work with no problems. I also created a batch file that creates a file in the c:\ drive and this manged to work with no problems. I would appreciate any ideas in resolving this matter. Below I have placed the code for the script and the client logs.
Thanks,
Kleber
[B]Script Code:[/B]
[B][/B]
'Global Vars
const HKLM = &H80000002
const COMPUTER = “.”
'Vars
dim objReg, objShell
dim strPath, strDefaultUserName, strDefaultPassword, strAutoAdminLogon, strDefaultDomainName, strAutoLogonCount, strForceAutoLogon
dim intGrade
'Assign Vars
strPath = “SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”
strDefaultUserName = “DefaultUserName”
strDefaultPassword = “DefaultPassword”
strAutoAdminLogon = “AutoAdminLogon”
strDefaultDomainName = “DefaultDomainName”
strAutoLogonCount = “AutoLogonCount”
strForceAutoLogon = “ForceAutoLogon”
set objReg = GetObject(“winmgmts:\” & COMPUTER & “\root\default:StdRegProv”)
set objShell = WScript.CreateObject(“WScript.Shell”)
objReg.SetStringValue HKLM, strPath, strDefaultUserName, "username 'replace username with your username you want to use
objReg.SetStringValue HKLM, strPath, strDefaultPassword, “password” 'replace password with your password you want to use
objReg.SetStringValue HKLM, strPath, strAutoAdminLogon, “1”
objReg.SetStringValue HKLM, strPath, strDefaultDomainName, “domain” 'replace domain with your domain
objReg.SetStringValue HKLM, strPath, strForceAutoLogon, “0”
objReg.DeleteValue HKLM, strPath, strAutoLogonCount
[B]Client log file below:[/B]
[B][/B]
7/30/2014 4:21 PM FOG::SnapinClient Attempting to connect to fog server…
7/30/2014 4:21 PM FOG::SnapinClient Module is active…
7/30/2014 4:21 PM FOG::SnapinClient Snapin Found:
7/30/2014 4:21 PM FOG::SnapinClient ID: 82
7/30/2014 4:21 PM FOG::SnapinClient RunWith: %windir%\syswow64\cscript.exe
7/30/2014 4:21 PM FOG::SnapinClient RunWithArgs: /B
7/30/2014 4:21 PM FOG::SnapinClient Name: Autologin_Student
7/30/2014 4:21 PM FOG::SnapinClient Created: 2014-07-30 16:28:39
7/30/2014 4:21 PM FOG::SnapinClient Args:
7/30/2014 4:21 PM FOG::SnapinClient Reboot: No
7/30/2014 4:21 PM FOG::SnapinClient Starting FOG Snapin Download
7/30/2014 4:21 PM FOG::SnapinClient Download complete.
7/30/2014 4:21 PM FOG::SnapinClient Starting FOG Snapin Installation.
7/30/2014 4:21 PM FOG::SnapinClient The system cannot find the file specified
7/30/2014 4:21 PM FOG::SnapinClient at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at FOG.SnapinClient.startWatching()
7/30/2014 4:21 PM FOG::SnapinClient Attempting to connect to fog server…
7/30/2014 4:21 PM FOG::SnapinClient Module is active…
7/30/2014 4:21 PM FOG::SnapinClient No Tasks found for: 00:50:56:C0:00:01|00:50:56:C0:00:08|9C:8E:99:F5:D4:5A
7/30/2014 4:21 PM FOG::GUIWatcher Message found, attempting to notify GUI!
7/30/2014 4:22 PM FOG::GUIWatcher Dispatch OK!