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

Install snapin packs with elevated command prompt.

Scheduled Pinned Locked Moved
General
2
4
770
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.
  • Y
    YG2018
    last edited by Aug 28, 2018, 4:24 PM

    I’ve created a simple bat file to remove applications from our PC’s. The problem that I’m running in to is that the bat file needs to be ran in an elevated command prompt. Is there any way to deploy a snapin with an elevated command prompt?

    1 Reply Last reply Reply Quote 0
    • X
      x23piracy
      last edited by x23piracy Aug 28, 2018, 1:18 PM Aug 28, 2018, 7:15 PM

      I am wondering, the snapin should be run under system privilegues and therefore it should have admin rights.

      Could it be possible that you just habe a path problem, how does your batch look like, can you paste it?

      You can use a bat to exe coverter and set the admin manifest, system should it let be run then under admin rights.

      ║▌║█║▌│║▌║▌█

      Y 1 Reply Last reply Aug 28, 2018, 7:58 PM Reply Quote 0
      • Y
        YG2018 @x23piracy
        last edited by Aug 28, 2018, 7:58 PM

        @x23piracy Thanks for getting back to me. It’s possible it could be a path issue as well…
        Bat file (uninstall.bat) —> MsiExec.exe /X{A1E58BXX-ECXX-XX19-XXEA-B85CA4F1A2XX} /qn /norestart
        To upload this file as a snapin, I zipped the file and named the folder uninstall. Then I created a snapin pack with the snapin argument /c “[FOG_SNAPIN_PATH]\uninstall.bat”.
        If you have a better method of uploading the snapin, please share.
        Thanks for all of your help!

        X 1 Reply Last reply Aug 29, 2018, 8:45 PM Reply Quote 0
        • X
          x23piracy @YG2018
          last edited by x23piracy Aug 29, 2018, 2:47 PM Aug 29, 2018, 8:45 PM

          @YG2018 no need for a snapin pack if your snapin only consists on a batch file, just create a normal snapin from bat (cmd), if your below post is a paste of the contents of your bat file then your are missing a space " " 😉

          @YG2018 said in Install snapin packs with elevated command prompt.:

          Bat file (uninstall.bat) —> MsiExec.exe /X{A1E58BXX-ECXX-XX19-XXEA-B85CA4F1A2XX} /qn /norestart

          It should look like:

          msiexec.exe /x {A1E58BXX-ECXX-XX19-XXEA-B85CA4F1A2XX} /qn /norestart
          

          Regards X23

          ║▌║█║▌│║▌║▌█

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

          154

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project