• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Kleber
    3. Posts
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 40
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Kleber

    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      @Wayne-Workman Thanks for taking the time to help me with this. Currently, I can not even get a simple batch file to deploy to the computer. I will make a test script to log the vb script to see what the log outputs. I am also going to remove the part of the script that elevates the command, I usually do this because windows might throw a UAC prompt. I will get back to you on the results, hopefully sometime next week.

      Thanks for all your help!

      posted in FOG Problems
      K
      Kleber
    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      @Wayne-Workman
      The old client ran the script fine and it also runs under the system account. Maybe there is a bug with the new client.

      posted in FOG Problems
      K
      Kleber
    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      @Wayne-Workman

      I went ahead and removed the fog client 0.11.5 and installed the legacy client on the computer and the script worked flawlessly. I am not sure why this is happening.

      posted in FOG Problems
      K
      Kleber
    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      @Wayne-Workman

      Hi, I believe that VB script doesn’t have a try/catch, if you know of a way please point me in the right direction.

      posted in FOG Problems
      K
      Kleber
    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      @Wayne-Workman
      Hi I tried doing it directly and it will not work.

      posted in FOG Problems
      K
      Kleber
    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      @Wayne-Workman

      These scripts worked on Fog 1.2 not sure what changed

      posted in FOG Problems
      K
      Kleber
    • RE: Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      Batch Script:
      ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

      NET USE /USER:Domain\Servername \servername\deployment Password
      cscript \Server\deployment\Autologin\Autologin_Student.vbs

      :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      VB Script:
      :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
      'Option Explicit

      '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 WshShell = WScript.CreateObject("WScript.Shell")
      	If WScript.Arguments.length =0 Then
      	Set ObjShell = CreateObject("Shell.Application")
      	ObjShell.ShellExecute "wscript.exe", """" & _
      	WScript.ScriptFullName & """" &_
      	" RunAsAdministrator", , "runas", 1
      	Else		
      		
      		set objReg = GetObject("winmgmts:\\" & COMPUTER & "\root\default:StdRegProv")
      		set objShell = WScript.CreateObject("WScript.Shell")
      
      		objReg.SetStringValue HKLM, strPath, strDefaultUserName, "student" '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, "ET" 'replace domain with your domain
      		objReg.SetStringValue HKLM, strPath, strForceAutoLogon, "0"
      		objReg.DeleteValue HKLM, strPath, strAutoLogonCount
      
      	End If
      
      posted in FOG Problems
      K
      Kleber
    • Fog Snapin not working 1.3.0-RC-8 Client 0.11.5

      I am having trouble getting snapins to successfully deploy to a windows 7 host computer. I have tried to push a Batch file and a VBS file, with no success. I played with the settings to no avail, the computer reboots when I choose the reboot setting in the snapin options. Can anyone please help in troubleshooting. I made sure that the Scripts actually work on the windows 7 machine, it just doesn’t work when deployed from FOG.

      Client LOG:

      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       8/12/2016 6:59 PM Client-Info Client Version: 0.11.5
       8/12/2016 6:59 PM Client-Info Client OS:      Windows
       8/12/2016 6:59 PM Client-Info Server Version: 1.3.0-RC-8
       8/12/2016 6:59 PM Middleware::Response Success
       8/12/2016 6:59 PM SnapinClient Snapin Found:
       8/12/2016 6:59 PM SnapinClient     ID: 13
       8/12/2016 6:59 PM SnapinClient     Name: Autologin_Student VB
       8/12/2016 6:59 PM SnapinClient     Created: 2016-08-12 18:58:44
       8/12/2016 6:59 PM SnapinClient     Action: 
       8/12/2016 6:59 PM SnapinClient     Pack: False
       8/12/2016 6:59 PM SnapinClient     Hide: False
       8/12/2016 6:59 PM SnapinClient     Server: http://10.9.3.244/fog
       8/12/2016 6:59 PM SnapinClient     TimeOut: 0
       8/12/2016 6:59 PM SnapinClient     RunWith: cscript.exe
       8/12/2016 6:59 PM SnapinClient     RunWithArgs: 
       8/12/2016 6:59 PM SnapinClient     Args: 
       8/12/2016 6:59 PM SnapinClient     File: Autologin_Student.vbs
       8/12/2016 6:59 PM Middleware::Communication Download: http://10.9.3.244/fog/service/snapins.file.php?mac=2C:41:38:AC:68:19|00:50:56:C0:00:01|00:50:56:C0:00:08&taskid=13
       8/12/2016 6:59 PM SnapinClient C:\Program Files (x86)\FOG\tmp\Autologin_Student.vbs
       8/12/2016 6:59 PM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Installing Autologin_Student VB\",\r\n  \"message\": \"Please do not shutdown until this is completed\"\r\n}"
      }
       8/12/2016 6:59 PM Bus Emmiting message on channel: Notification
       8/12/2016 6:59 PM SnapinClient Starting snapin...
       8/12/2016 6:59 PM SnapinClient Snapin finished
       8/12/2016 6:59 PM SnapinClient Return Code: 0
       8/12/2016 6:59 PM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Autologin_Student VB Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\"\r\n}"
      }
       8/12/2016 6:59 PM Bus Emmiting message on channel: Notification
       8/12/2016 6:59 PM Middleware::Communication URL: http://10.9.3.244/fog/service/snapins.checkin.php?taskid=13&exitcode=0&mac=2C:41:38:AC:68:19|00:50:56:C0:00:01|00:50:56:C0:00:08&newService&json
      

      Mod edited to use code box.

      posted in FOG Problems
      K
      Kleber
    • RE: Fog 1.1.2: VBScript Fail

      I tested to push a snapin on a computer that I know used t I work with fog 0.32 and I get the same error messages. I also tested a snapin pushing a SFX file and also an MSI, all gave the same error. The only file I can successfully push is BAT/CMD file. I am no expert but it seems that any snapin that requires the “Snapin Run With” give the error “the system cannot find the file specified”. Could it be a bug ?

      posted in FOG Problems
      K
      Kleber
    • RE: Fog 1.1.2: VBScript Fail

      [quote=“Junkhacker, post: 34473, member: 21583”]what arguments did you set up on the snapin profile?
      i believe vbs scripts require that you specify the executable to use, and 32bit/64 bit systems need to have different ones specified
      [URL='http://www.fogproject.org/wiki/index.php/Supported_Snapin’s_and_Command_Line_Switches’]http://www.fogproject.org/wiki/index.php/Supported_Snapin’s_and_Command_Line_Switches[/URL][/quote]

      SnapinClient RunWith: %windir%\syswow64\cscript.exe
      SnapinClient RunWith: %windir%\system32\cscript.exe
      SnapinClient RunWith: c:\windows\syswow64\cscript.exe
      SnapinClient RunWith: c:\windows\system32\cscript.exe

      posted in FOG Problems
      K
      Kleber
    • RE: Fog 1.1.2: VBScript Fail

      [quote=“SuP3R_Ch1cKeN, post: 34479, member: 4306”]I would try adding this to the “Snapin Run With”[CODE]%SystemRoot%\SysWOW64\cscript.exe[/CODE]

      This works better then “C:\Windows\System32\cscript.exe” incase the systemroot is something other than C:\ and if I recall right this runs the cscript in 32-bit mode and will execute on both 64-bit and 32-bit systems properly.[/quote]

      [INDENT]I tried running the script with %systemroot%\Syswow64\Cscript.exe under the “Snaping Run With”. The script did not run, below see the results of the log file:

      [CODE]7/30/2014 7:17 PM FOG::SnapinClient Attempting to connect to fog server…
      7/30/2014 7:17 PM FOG::SnapinClient Module is active…
      7/30/2014 7:17 PM FOG::SnapinClient Snapin Found:
      7/30/2014 7:17 PM FOG::SnapinClient ID: 84
      7/30/2014 7:17 PM FOG::SnapinClient RunWith: %systemroot%\system32\cscript.exe
      7/30/2014 7:17 PM FOG::SnapinClient RunWithArgs:
      7/30/2014 7:17 PM FOG::SnapinClient Name: Student Autologin
      7/30/2014 7:17 PM FOG::SnapinClient Created: 2014-07-30 19:27:55
      7/30/2014 7:17 PM FOG::SnapinClient Args:
      7/30/2014 7:17 PM FOG::SnapinClient Reboot: No
      7/30/2014 7:17 PM FOG::SnapinClient Starting FOG Snapin Download
      7/30/2014 7:17 PM FOG::SnapinClient Download complete.
      7/30/2014 7:17 PM FOG::SnapinClient Starting FOG Snapin Installation.
      7/30/2014 7:17 PM FOG::SnapinClient The system cannot find the file specified
      7/30/2014 7:17 PM FOG::SnapinClient at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
      at FOG.SnapinClient.startWatching()
      7/30/2014 7:17 PM FOG::SnapinClient Attempting to connect to fog server…
      7/30/2014 7:17 PM FOG::SnapinClient Module is active…
      7/30/2014 7:17 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 7:17 PM FOG::GUIWatcher Message found, attempting to notify GUI!
      7/30/2014 7:17 PM FOG::GUIWatcher Dispatch Failed!
      7/30/2014 7:17 PM FOG::GUIWatcher Message found, attempting to notify GUI!
      7/30/2014 7:17 PM FOG::GUIWatcher Dispatch Failed!
      7/30/2014 7:17 PM FOG::GUIWatcher Message found, attempting to notify GUI!
      7/30/2014 7:17 PM FOG::GUIWatcher Dispatch Failed!
      7/30/2014 7:17 PM FOG::GUIWatcher Message found, attempting to notify GUI!
      7/30/2014 7:17 PM FOG::GUIWatcher Dispatch Failed!
      7/30/2014 7:17 PM FOG::GUIWatcher Message found, attempting to notify GUI!
      7/30/2014 7:17 PM FOG::GUIWatcher Dispatch Failed!
      7/30/2014 7:17 PM FOG::GUIWatcher Message found, attempting to notify GUI!
      7/30/2014 7:17 PM FOG::GUIWatcher Dispatch Failed!
      7/30/2014 7:17 PM FOG::GUIWatcher Message found, attemp[/CODE][/INDENT]
      [SIZE=11px] [/SIZE]

      posted in FOG Problems
      K
      Kleber
    • RE: FOG Client On Multiple Subnets

      I would look into port trunking the port on the switch where the fog server is connected. This way the server could communicate to all client computers in your subnets.

      posted in FOG Problems
      K
      Kleber
    • RE: Fog snapins and windows system variables

      I get the same error trying to deploy a VBScript. I wonder is the fog client is unable to determine where MSIexec is located, or in my case Cscript.exe

      posted in FOG Problems
      K
      Kleber
    • RE: Fog 1.1.2: VBScript Fail

      I have tried the following :

      SnapinClient RunWith: %windir%\syswow64\cscript.exe
      SnapinClient RunWith: %windir%\system32\cscript.exe
      SnapinClient RunWith: c:\windows\syswow64\cscript.exe
      SnapinClient RunWith: c:\windows\system32\cscript.exe

      I will try the code below and let you guys know how it goes:

      %SystemRoot%\SysWOW64\cscript.exe

      posted in FOG Problems
      K
      Kleber
    • Fog 1.1.2: VBScript Fail

      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!

      posted in FOG Problems
      K
      Kleber
    • RE: FOG multicast tasks screen status percentage incorrect

      When I Multicast I See that the Status Percentage makes no sense. Does anyone know how to fix this?

      posted in FOG Problems
      K
      Kleber
    • FOG multicast tasks screen status percentage incorrect

      [ATTACH=full]379[/ATTACH]

      [url=“/_imported_xf_attachments/0/379_Percentage Error.jpg?:”]Percentage Error.jpg[/url]

      posted in FOG Problems
      K
      Kleber
    • 1
    • 2
    • 2 / 2