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

Snapin Questions

Scheduled Pinned Locked Moved Solved
FOG Problems
4
23
3.7k
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.
  • J
    Joe Schmitt Senior Developer
    last edited by Jul 28, 2016, 9:09 PM

    Use the template feature and select batch script.

    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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

    J 2 Replies Last reply Jul 28, 2016, 9:10 PM Reply Quote 0
    • J
      Joe Gill @Joe Schmitt
      last edited by Jul 28, 2016, 9:10 PM

      @Joe-Schmitt Thanks Joe! I’ll give that a go!

      1 Reply Last reply Reply Quote 0
      • J
        Joe Gill @Joe Schmitt
        last edited by Jul 28, 2016, 9:59 PM

        @Joe-Schmitt Alright, I searched and searched and tried and tried but I cannot for the life of me figure out the how to get a script to run with elevated privileges. The command structure works, it just won’t run unless you are an admin. Any ideas are appreciated. Thanks!

        Cheers,

        Joe

        W M 2 Replies Last reply Jul 28, 2016, 10:04 PM Reply Quote 0
        • W
          Wayne Workman @Joe Gill
          last edited by Jul 28, 2016, 10:04 PM

          @Joe-Gill all snapins run as SYSTEM, which has the highest authority over the local system, more than the admin account has.

          What part of the script needs admin?

          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/

          J 1 Reply Last reply Aug 2, 2016, 5:34 PM Reply Quote 0
          • M
            Mentaloid @Joe Gill
            last edited by Jul 29, 2016, 4:11 PM

            @Joe-Gill

            W10_edu_act.cmd

            c:
            cd \windows\system32
            c:\windows\system32\cscript.exe //B c:\windows\system32\slmgr.vbs -skms kms7:1688 >> c:\SnapinLogs\W10Activate.log
            c:\windows\system32\cscript.exe //B c:\windows\system32\slmgr.vbs -ato >> c:\SnapinLogs\W10Activate.log
            

            .cmd files are handled by the fog client without any run with parms, and you wont have any local permissions issue.
            0_1469808607007_w10eduact.png

            I don’t use a KMS server, so I am unaware of if it would require domain credentials. I would think the machine would have to be domain joined though. I also was under the impression that you can set the KMS details as part of the domain policy.

            J 1 Reply Last reply Aug 2, 2016, 5:37 PM Reply Quote 0
            • J
              Joe Gill @Wayne Workman
              last edited by Aug 2, 2016, 5:34 PM

              @Wayne-Workman Interesting… It just doesn’t ever seem to run. I can run the script aside from fog using “run as admin” and it does just fine. If I run it without elevated privileges it does not seem to do the command right.

              W 1 Reply Last reply Aug 2, 2016, 5:36 PM Reply Quote 0
              • W
                Wayne Workman @Joe Gill
                last edited by Aug 2, 2016, 5:36 PM

                @Joe-Gill Have you tried putting in your key for a single host in the Product Key field, and seeing if the fog client will activate windows that way?

                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/

                J 2 Replies Last reply Aug 2, 2016, 5:38 PM Reply Quote 0
                • J
                  Joe Gill @Mentaloid
                  last edited by Aug 2, 2016, 5:37 PM

                  @Mentaloid I’m very green on a lot of this stuff so bear with me. I would think what you have right there should work just fine.

                  I’ll be working on all of this stuff a little later this week. I’ll give that a try.

                  1 Reply Last reply Reply Quote 0
                  • J
                    Joe Gill @Wayne Workman
                    last edited by Aug 2, 2016, 5:38 PM

                    @Wayne-Workman Not yet. It’s on my list. LOL!

                    1 Reply Last reply Reply Quote 0
                    • J
                      Joe Gill @Wayne Workman
                      last edited by Aug 5, 2016, 1:40 PM

                      @Wayne-Workman I have done this with the MAK key. That works fine. We just wanted to switch over to KMS. Which with our script snap-in it seems to be activating just fine now. I still need to refine it though. I think I’m going to add @Mentaloid’s suggestions to my existing script. I do believe that will finalize automation. 🙂

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

                      137

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project