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

    FOG Snapins and LGPO

    Scheduled Pinned Locked Moved
    General Problems
    2
    2
    276
    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.
    • D
      ddo
      last edited by

      Does anyone have a solution for updating the LGPO on a workstation via a snapin? I currently have a snapin pack with the LGPO.exe, the lgpo file, and a batch script to execute the lgpo.exe. However, the fog client runs as the user SYSTEM.

      I looked into runas but that seems to require user input in the terminal. There was a solution where I could change the admin password to blank and use runas to bypass that step but I want to avoid that.

      1. Is there a solution that I can create to push the snapin and run the .exe with admin privileges?
      2. Is there a recommendation as to how I could update LGOP using FOG?
      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @ddo Fortunately I have just tried doing something like that using the Windows task planer and it worked:

        schtasks /create /tn "MyTask" /sc once /st 23:00 /tr "C:\path\to\program.exe parameters" /ru "domain\username"
        schtasks /run /tn "MyTask"
        schtasks /delete /tn "MyTask" /f
        

        Though you might need to come up with some more scripting to find out the user being logged on to the machine at the moment. Should be possible to do but I haven’t figured it out myself yet.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

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

        229

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project