• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

problem with running basic snapins

Scheduled Pinned Locked Moved Unsolved
FOG Problems
2
2
665
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    cerebron
    last edited by cerebron Jan 14, 2017, 3:59 PM Jan 14, 2017, 9:55 PM

    Server
    • FOG Version: 1.3.0 SVN Revision: 6050
    • OS: Debian 8
    Client
    • Service Version: 0.11.7
    • OS: Windows 7 SP1
    Description

    Hellow. I’m using FOG since 2014 and still have a problem with creating snapins. In my enviroment, my windows machines all works with single user, no domain, and user have admin rights. Its student@1. We are using them in classes and security is not and don’t care about security. So, i have some tasks that i need to execute after image deployment, throught snapins.
    For example, i need to add login and password for single host in credentials store on single computer.
    I’ve made a cmd-file with “cmdkey /add:HOSTADDRESS /user:LOGIN /pass:PASSWORD” inside it. When i run this file localy from target computer, it works fine and adds credentials. But, when i make a snapin, it does nothing.

    0_1484431170780_snapin.PNG

    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     15.01.2017 0:11 Client-Info Client Version: 0.11.7
     15.01.2017 0:11 Client-Info Client OS:      Windows
     15.01.2017 0:11 Client-Info Server Version: 1.3.0
     15.01.2017 0:11 Middleware::Response Success
     15.01.2017 0:11 SnapinClient Snapin Found:
     15.01.2017 0:11 SnapinClient     ID: 3652
     15.01.2017 0:11 SnapinClient     Name: addwebacc
     15.01.2017 0:11 SnapinClient     Created: 2017-01-15 00:10:38
     15.01.2017 0:11 SnapinClient     Action: 
     15.01.2017 0:11 SnapinClient     Pack: False
     15.01.2017 0:11 SnapinClient     Hide: False
     15.01.2017 0:11 SnapinClient     Server: 
     15.01.2017 0:11 SnapinClient     TimeOut: 0
     15.01.2017 0:11 SnapinClient     RunWith: cmd.exe
     15.01.2017 0:11 SnapinClient     RunWithArgs: /c
     15.01.2017 0:11 SnapinClient     Args: 
     15.01.2017 0:11 SnapinClient     File: webaccount.cmd
     15.01.2017 0:11 Middleware::Communication Download: http://fogserver/fog/service/snapins.file.php?mac=50:E5:49:23:24:34||00:00:00:00:00:00:00:E0&taskid=3652
     15.01.2017 0:11 SnapinClient C:\Program Files (x86)\FOG\tmp\webaccount.cmd
     15.01.2017 0:11 Bus {
      "self": true,
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"Installing addwebacc\",\r\n  \"message\": \"Please do not shutdown until this is completed\"\r\n}"
    }
     15.01.2017 0:11 Bus Emmiting message on channel: Notification
     15.01.2017 0:11 SnapinClient Starting snapin...
     15.01.2017 0:11 SnapinClient Snapin finished
     15.01.2017 0:11 SnapinClient Return Code: 0
     15.01.2017 0:11 Bus {
      "self": true,
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"addwebacc Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\"\r\n}"
    }
     15.01.2017 0:11 Bus Emmiting message on channel: Notification
     15.01.2017 0:11 Middleware::Communication URL: http://fogserver/fog/service/snapins.checkin.php?taskid=3652&exitcode=0&mac=50:E5:49:23:24:34||00:00:00:00:00:00:00:E0&newService&json
    

    I have the same issue with creating shortcuts on desktop with either vbs or ps scripts. Scripts works perfectly and creates shortcut. It creates a shortcut on network share. When i ran them localy, everything works as intended, but when i run them throgh snapins, it creates the shortcut, but after clicking on it, nothing happens. I just cannot enter that folder.
    I’ve checked properties of the shortcut and they are the same as the normal one. Security permissions also looks the same.
    And i can go on on this. Almost all snapins that make simple staff, have the same issue. For example, i have 2 or 3 different scripts that changes desktop wallpaper. All of them works perfectly when ran manually from the machine, but changes nothing when ran through snapins.
    On the other hand, vbs-script to turn on WoL, work fine. Windows and Office activation scripts also works fine.

    Can somebody help me, please?

    Server
    • FOG Version:
    • OS:
    Client
    • Service Version:
    • OS:
    Description
    Server
    • FOG Version: 1.3.0
    • OS: Debian 8
    Client
    • Service Version: 11.7
    • OS: Windows 7
    Description

    Hellow. I’m using FOG since 2014 and still have a problem with creating snapins. In my enviroment, my windows machines all works with single user, no domain, and user have admin rights. Its student@1. We are using them in classes and security is not and don’t care about security. So, i have some tasks that i need to execute after image deployment, throught snapins.
    For example, i need to add login and password for single host in credentials store on single computer.
    I’ve made a cmd-file with “cmdkey /add:HOSTADDRESS /user:LOGIN /pass:PASSWORD” inside it. When i run this file localy from target computer, it works fine and adds credentials. But, when i make a snapin, it does nothing.

    0_1484429923571_snapin.PNG

    ------------------------------------------------------------------------------
    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     15.01.2017 0:11 Client-Info Client Version: 0.11.7
     15.01.2017 0:11 Client-Info Client OS:      Windows
     15.01.2017 0:11 Client-Info Server Version: 1.3.0
     15.01.2017 0:11 Middleware::Response Success
     15.01.2017 0:11 SnapinClient Snapin Found:
     15.01.2017 0:11 SnapinClient     ID: 3652
     15.01.2017 0:11 SnapinClient     Name: addwebacc
     15.01.2017 0:11 SnapinClient     Created: 2017-01-15 00:10:38
     15.01.2017 0:11 SnapinClient     Action: 
     15.01.2017 0:11 SnapinClient     Pack: False
     15.01.2017 0:11 SnapinClient     Hide: False
     15.01.2017 0:11 SnapinClient     Server: 
     15.01.2017 0:11 SnapinClient     TimeOut: 0
     15.01.2017 0:11 SnapinClient     RunWith: cmd.exe
     15.01.2017 0:11 SnapinClient     RunWithArgs: /c
     15.01.2017 0:11 SnapinClient     Args: 
     15.01.2017 0:11 SnapinClient     File: webaccount.cmd
     15.01.2017 0:11 Middleware::Communication Download: http://fogserver/fog/service/snapins.file.php?mac=50:E5:49:23:24:34||00:00:00:00:00:00:00:E0&taskid=3652
     15.01.2017 0:11 SnapinClient C:\Program Files (x86)\FOG\tmp\webaccount.cmd
     15.01.2017 0:11 Bus {
      "self": true,
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"Installing addwebacc\",\r\n  \"message\": \"Please do not shutdown until this is completed\"\r\n}"
    }
     15.01.2017 0:11 Bus Emmiting message on channel: Notification
     15.01.2017 0:11 SnapinClient Starting snapin...
     15.01.2017 0:11 SnapinClient Snapin finished
     15.01.2017 0:11 SnapinClient Return Code: 0
     15.01.2017 0:11 Bus {
      "self": true,
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"addwebacc Installed\",\r\n  \"message\": \"Installation has finished and is now ready for use\"\r\n}"
    }
     15.01.2017 0:11 Bus Emmiting message on channel: Notification
     15.01.2017 0:11 Middleware::Communication URL: http://fogserver/fog/service/snapins.checkin.php?taskid=3652&exitcode=0&mac=50:E5:49:23:24:34||00:00:00:00:00:00:00:E0&newService&json
    

    I have the same issue with creating shortcuts on desktop with either vbs or ps scripts. Scripts works perfectly and creates shortcut. It creates a shortcut on network share. When i ran them localy, everything works as intended, but when i run them throgh snapins, it creates the shortcut, but after clicking on it, nothing happens. I just cannot enter that folder.
    I’ve checked properties of the shortcut and they are the same as the normal one. Security permissions also looks the same.
    And i can go on on this. Almost all snapins that make simple staff, have the same issue. For example, i have 2 or 3 different scripts that changes desktop wallpaper. All of them works perfectly when ran manually from the machine, but changes nothing when ran through snapins.
    On the other hand, vbs-script to turn on WoL, work fine. Windows and Office activation scripts also works fine.

    Can somebody help me, please?

    W 1 Reply Last reply Jan 14, 2017, 10:30 PM Reply Quote 0
    • W
      Wayne Workman @cerebron
      last edited by Jan 14, 2017, 10:30 PM

      @cerebron said in problem with running basic snapins:

      but when i run them throgh snapins, it creates the shortcut, but after clicking on it, nothing happens. I just cannot enter that folder.

      Right click on it, go to the security tab, click advanced. There should be a place to take ownership of the file. Do this and see if it lets you into the shortcut or not. If it does, you’ll also have to have the script set permissions on the files it places.

      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      1 / 1
      • First post
        1/2
        Last post

      163

      Online

      12.0k

      Users

      17.3k

      Topics

      155.2k

      Posts
      Copyright © 2012-2024 FOG Project