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

snapins error (net helpmsg 1 incorrect function)

Scheduled Pinned Locked Moved Solved
General
4
9
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.
  • R
    robza
    last edited by Feb 8, 2016, 11:55 AM

    Hello,
    my config:
    fedora 22 64bit
    fog Version: 6237
    I have problems with installing snapin.
    Snapin on fog server is cmd file and it is simple unattended office 2016 installation.
    Here is syntax:

    \\upow-8.intranet\public\Office2016_PL_32B\setup.exe /adminfile \\upow-8.intranet\public\Office2016_PL_32B\Unattended.msp
    

    When I start this script on pc from command line installation starts properly.
    But when snapin is started by fog service I got error

    ---------------------------------SnapinClient---------------------------------
    ------------------------------------------------------------------------------
     08.02.2016 12:50 Client-Info Version: 0.9.11
     08.02.2016 12:50 SnapinClient Running...
     08.02.2016 12:50 Middleware::Communication URL: http://fog-server/fog/service/servicemodule-active.php?moduleid=snapinclient&mac=F8:32:E4:A0:94:89||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
     08.02.2016 12:50 Middleware::Communication Response: Success
     08.02.2016 12:50 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?mac=F8:32:E4:A0:94:89||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
     08.02.2016 12:50 Middleware::Communication Response: Success
     08.02.2016 12:50 SnapinClient Snapin Found:
     08.02.2016 12:50 SnapinClient     ID: 548
     08.02.2016 12:50 SnapinClient     RunWith: c:\windows\system32\cmd.exe
     08.02.2016 12:50 SnapinClient     RunWithArgs: /C
     08.02.2016 12:50 SnapinClient     Name: Office 2016_32_PL_cmd
     08.02.2016 12:50 SnapinClient     File: office2016_pl_32.cmd
     08.02.2016 12:50 SnapinClient     Created: 2016-02-08 12:41:27
     08.02.2016 12:50 SnapinClient     Args: 
     08.02.2016 12:50 SnapinClient     Reboot: 0
     08.02.2016 12:50 Middleware::Communication URL: http://fog-server/fog/service/snapins.file.php?mac=F8:32:E4:A0:94:89||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&taskid=548
     08.02.2016 12:50 Bus {
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"Office 2016_32_PL_cmd\",\r\n  \"message\": \"FOG is installing Office 2016_32_PL_cmd\",\r\n  \"duration\": 10\r\n}"
    }
     08.02.2016 12:50 Bus Emmiting message on channel: Notification
     08.02.2016 12:50 SnapinClient Starting snapin...
     08.02.2016 12:50 SnapinClient Snapin finished
     08.02.2016 12:50 SnapinClient Return Code: 1
     08.02.2016 12:50 Bus {
      "channel": "Notification",
      "data": "{\r\n  \"title\": \"Finished Office 2016_32_PL_cmd\",\r\n  \"message\": \"Office 2016_32_PL_cmd finished installing\",\r\n  \"duration\": 10\r\n}"
    }
     08.02.2016 12:50 Bus Emmiting message on channel: Notification
     08.02.2016 12:50 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?taskid=548&exitcode=1&mac=F8:32:E4:A0:94:89||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
     08.02.2016 12:50 Middleware::Communication URL: http://fog-server/fog/service/snapins.checkin.php?mac=F8:32:E4:A0:94:89||00:00:00:00:00:00:00:E0|00:00:00:00:00:00:00:E0&newService=1
     08.02.2016 12:50 Middleware::Communication Response: No snapins
    

    Error code is 1 - net helpmsg - incorrect function
    Any help appreciated.
    Regards

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 8, 2016, 3:19 PM

      I could be wrong, happens a lot 😄 but I believe running executables via command line through UNC path’s is not a very much liked scenario.

      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.

      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

      R 1 Reply Last reply Feb 9, 2016, 1:03 PM Reply Quote 0
      • R
        robza @Tom Elliott
        last edited by Feb 9, 2016, 1:03 PM

        @Tom-Elliott is something wrong with running executables via cmd through UNC path?
        Or you know different way to simply start unattended office installation?
        Regards

        I W 2 Replies Last reply Feb 9, 2016, 3:21 PM Reply Quote 0
        • I
          ITSolutions Testers @robza
          last edited by Feb 9, 2016, 3:21 PM

          @robza Running commands via UNC is not a great scenario, what I usually do is map a drive with net use and use that drive then delete the mapping.

          Net use z: \\upow-8.intranet\public\Office2016_PL_32B\
          z:\setup.exe /adminfile z:\Unattended.msp
          net use z: /delete 
          

          This would be a better and more reliable way to set this up. I always use Z: because it usually doesn’t conflict with other common mappings such as U or H for home/user drives.

          R 1 Reply Last reply Feb 10, 2016, 12:36 PM Reply Quote 0
          • W
            Wayne Workman @robza
            last edited by Feb 9, 2016, 4:11 PM

            @robza xcopy supports UNC paths with usernames and passwords. Another option would be to xcopy the things you need first, and then execute those things locally, and delete when done.

            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/

            R 1 Reply Last reply Feb 10, 2016, 1:02 PM Reply Quote 0
            • R
              robza @ITSolutions
              last edited by Feb 10, 2016, 12:36 PM

              @ITSolutions when I tried run this script

              Net use z: \\upow-8.intranet\public\Office2016_PL_32B\
              z:\setup.exe /adminfile z:\Unattended.msp
              net use z: /delete 
              

              as fog snapin received code 2. Net helpmsg 2 is “The system cannot find the file specified.”
              Regards

              1 Reply Last reply Reply Quote 0
              • R
                robza @Wayne Workman
                last edited by Feb 10, 2016, 1:02 PM

                @Wayne-Workman using xcopy I’m getting Return code: 1 incorrect function.

                xcopy /E /H \\upow-8\public\Office2016_PL_32B\* c:\temp\
                cd c:\temp\
                setup.exe /adminfile Unattended.msp
                

                When script is started from cmd works like a charm.
                Regards

                W 1 Reply Last reply Feb 10, 2016, 2:42 PM Reply Quote 0
                • W
                  Wayne Workman @robza
                  last edited by Feb 10, 2016, 2:42 PM

                  @robza

                  xcopy "\\upow-8\public\Office2016_PL_32B\*.*" "c:\temp" /y /d /e /c /i /f /h /k /v /s

                  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/

                  R 1 Reply Last reply Feb 11, 2016, 12:51 PM Reply Quote 0
                  • R
                    robza @Wayne Workman
                    last edited by Feb 11, 2016, 12:51 PM

                    @Wayne-Workman thank you for support.
                    Works like a charm.
                    Regards

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    1 / 1
                    • First post
                      2/9
                      Last post

                    210

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.3k

                    Posts
                    Copyright © 2012-2024 FOG Project