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

    Snapin Questions

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    23
    3.5k
    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 Gill
      last edited by

      Thu Jul 28, 2016 12:18 pm
      Running Version 1.3.0-RC-4
      SVN Revision: 5941
      Client-Info Version: 0.11.4

      I noticed that when I deploy a single snapin as a deployment task that the active task never clears. I do have the client installed on all of my hosts.

      Below is a the FOG.log file from one of the hosts where the active single snapin deployment task hangs.

      Please let me know which other log files you might be interested in. Thanks!

      -----------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       7/28/2016 8:37 AM Client-Info Client Version: 0.11.4
       7/28/2016 8:37 AM Client-Info Client OS:      Windows
       7/28/2016 8:37 AM Client-Info Server Version: 1.3.0-RC-4
       7/28/2016 8:37 AM Middleware::Response Success
       7/28/2016 8:37 AM SnapinClient Snapin Found:
       7/28/2016 8:37 AM SnapinClient     ID: 578
       7/28/2016 8:37 AM SnapinClient     Name: Windows KMS Activation
       7/28/2016 8:37 AM SnapinClient     Created: 2016-07-28 08:37:06
       7/28/2016 8:37 AM SnapinClient     Action: 
       7/28/2016 8:37 AM SnapinClient     Pack: False
       7/28/2016 8:37 AM SnapinClient     Hide: False
       7/28/2016 8:37 AM SnapinClient     Server: http://172.16.1.22/fog
       7/28/2016 8:37 AM SnapinClient     TimeOut: 0
       7/28/2016 8:37 AM SnapinClient     RunWith: cmd.exe
       7/28/2016 8:37 AM SnapinClient     RunWithArgs: 
       7/28/2016 8:37 AM SnapinClient     Args: 
       7/28/2016 8:37 AM SnapinClient     File: activation_script_cmd
       7/28/2016 8:37 AM Middleware::Communication Download: http://172.16.1.22/fog/service/snapins.file.php?mac=00:24:E8:28:B7:0C||00:00:00:00:00:00:00:E0&taskid=578
       7/28/2016 8:37 AM SnapinClient C:\Program Files (x86)\FOG\tmp\activation_script_cmd
       7/28/2016 8:37 AM Bus {
        "self": true,
        "channel": "Notification",
        "data": "{\r\n  \"title\": \"Installing Windows KMS Activation\",\r\n  \"message\": \"Please do not shutdown until this is completed\"\r\n}"
      }
       7/28/2016 8:37 AM Bus Emmiting message on channel: Notification
       7/28/2016 8:37 AM SnapinClient Starting snapin...
       7/28/2016 9:24 AM Bus Emmiting message on channel: Power
      

      Cheers,

      Joe

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by Wayne Workman

        it’s probably waiting for input.

        Do you have to do anything to manually run it?

        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 Reply Quote 0
        • J
          Joe Gill @Wayne Workman
          last edited by

          @Wayne-Workman No. All I do to run it is select run as administrator and away it goes. Now I did discover that my syntax was bad. Now I’ve got that straightend up.

          I saved the file as a cmd file. It does refer to a vbscript program though. Either way Command prompt will run it just fine.

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @Joe Gill
            last edited by Wayne Workman

            @Joe-Gill Does it in any way/shape/form access a share?

            Can you give us a copy of the script, please remove sensitive keys and such.

            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
            • J
              Joe Gill @Wayne Workman
              last edited by

              @Wayne-Workman This is the script…

              cscript C:\Windows\System32\slmgr.vbs /skms kms7:1688
              
              

              KMS7 is just a DNS name for the “server”. And no you don’t have to do anything except put in admin credentials to run as admin.

              1 Reply Last reply Reply Quote 0
              • J
                Joe Schmitt Senior Developer
                last edited by

                If you select a batch script template you will notice you are missing the /c parameter.

                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 1 Reply Last reply Reply Quote 1
                • J
                  Joe Gill @Joe Schmitt
                  last edited by

                  @Joe-Schmitt What does the /c parameter do?

                  1 Reply Last reply Reply Quote 0
                  • J
                    Joe Schmitt Senior Developer
                    last edited by

                    http://ss64.com/nt/cmd.html

                    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 1 Reply Last reply Reply Quote 0
                    • J
                      Joe Gill @Joe Schmitt
                      last edited by

                      @Joe-Schmitt Thanks! I’ll check it out. I’m still trying to learn this stuff.

                      1 Reply Last reply Reply Quote 0
                      • J
                        Joe Schmitt Senior Developer
                        last edited by

                        It could also be because of the messed up filetype not existing. Cmd is weird sometimes.

                        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 1 Reply Last reply Reply Quote 0
                        • J
                          Joe Gill @Joe Schmitt
                          last edited by

                          @Joe-Schmitt Any ideas of what to try? Will powershell handle that any better?

                          1 Reply Last reply Reply Quote 0
                          • J
                            Joe Schmitt Senior Developer
                            last edited by

                            I would try the /c as I suggested.

                            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 1 Reply Last reply Reply Quote 0
                            • J
                              Joe Gill @Joe Schmitt
                              last edited by

                              @Joe-Schmitt No problem. I would add that to the end of the script or just leave it in the parameters within FOG?

                              1 Reply Last reply Reply Quote 0
                              • J
                                Joe Schmitt Senior Developer
                                last edited by

                                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 Reply Quote 0
                                • J
                                  Joe Gill @Joe Schmitt
                                  last edited by

                                  @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

                                    @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

                                    Wayne WorkmanW M 2 Replies Last reply Reply Quote 0
                                    • Wayne WorkmanW
                                      Wayne Workman @Joe Gill
                                      last edited by

                                      @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 Reply Quote 0
                                      • M
                                        Mentaloid @Joe Gill
                                        last edited by

                                        @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 Reply Quote 0
                                        • J
                                          Joe Gill @Wayne Workman
                                          last edited by

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

                                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                                          • Wayne WorkmanW
                                            Wayne Workman @Joe Gill
                                            last edited by

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

                                            157

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project