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

    Install snapin packs with elevated command prompt.

    General
    2
    4
    502
    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

      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
      • x23piracy
        x23piracy @YG2018 last edited by x23piracy

        @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
        • Y
          YG2018 @x23piracy last edited by

          @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!

          x23piracy 1 Reply Last reply Reply Quote 0
          • x23piracy
            x23piracy last edited by x23piracy

            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 Reply Quote 0
            • 1 / 1
            • First post
              Last post

            180
            Online

            10.4k
            Users

            16.4k
            Topics

            150.6k
            Posts

            Copyright © 2012-2023 FOG Project