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

    failed to import module

    Scheduled Pinned Locked Moved Solved
    Windows Problems
    4
    8
    795
    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.
    • K
      kalafina
      last edited by

      Hello,Everyone.I want to set 1st boot device via powershell module provided by oem dell. It need import module first. I can execute the script and change the boot device successfully on the client computers. While I deployed the script ,it failed. The log showed that the architecture dismatches.

      Run the command on the client computer
      1.png

      the Snapin file
      4.png

      the log after deploying the snapin
      3.png

      when deploying the snapin,import-module thought current architeture is x86,the importing module need amd64.Actually,the CPU is a x64 cpu i5-7500 and it can execute the command successfully locally.

      Tom ElliottT JJ FullmerJ K 3 Replies Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott @kalafina
        last edited by

        @kalafina Not saying we can’t necessarily help, but is this related to FOG or just a general question you’re looking for somebody to answer?

        This doesn’t feel very much like an issue FOG is/isn’t doing.

        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

        K 1 Reply Last reply Reply Quote 0
        • K
          kalafina @Tom Elliott
          last edited by Sebastian Roth

          @Tom-Elliott Thank you for your reply.Because the script can execute successfully locally.the architeture mismatch error only occur while deploying the snapin. So,I thought it could be the mechanism of the fog snapin.

          1 Reply Last reply Reply Quote 0
          • JJ FullmerJ
            JJ Fullmer Testers @kalafina
            last edited by

            @kalafina The fog client runs snapins as the system user. It looks like it also may be running the 32 bit version of powershell but he module is specifying 64 bit in the manifest or something like that. What does your snapin definition look like in the gui ?

            Have you tried the FogApi powershell module? It's pretty cool IMHO
            https://github.com/darksidemilk/FogApi
            https://fogapi.readthedocs.io/en/latest/
            https://www.powershellgallery.com/packages/FogApi
            https://forums.fogproject.org/topic/12026/powershell-api-module

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @kalafina The fog-client is a 32 bit application as far as I know. So you might get around by installing the 32-bit Dell Command | PowerShell Provider v2.7.0 found here: https://www.dell.com/support/kbdoc/en-us/000177240/dell-command-powershell-provider?lwp=rt

              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

              JJ FullmerJ 1 Reply Last reply Reply Quote 1
              • JJ FullmerJ
                JJ Fullmer Testers @Sebastian Roth
                last edited by

                @Sebastian-Roth said in failed to import module:

                @kalafina The fog-client is a 32 bit application as far as I know. So you might get around by installing the 32-bit Dell Command | PowerShell Provider v2.7.0 found here: https://www.dell.com/support/kbdoc/en-us/000177240/dell-command-powershell-provider?lwp=rt

                If switching to the 32 bit module doesn’t work like @Sebastian-Roth suggests, you could also try changing to the alternate version of powershell in the snapinrun with path "%SYSTEMROOT%\SYSWOW64\windowspowershell\v1.0\powershell.exe"

                49673479-3874-4513-a09e-b5bb1fbd0e14-image.png

                Have you tried the FogApi powershell module? It's pretty cool IMHO
                https://github.com/darksidemilk/FogApi
                https://fogapi.readthedocs.io/en/latest/
                https://www.powershellgallery.com/packages/FogApi
                https://forums.fogproject.org/topic/12026/powershell-api-module

                1 Reply Last reply Reply Quote 1
                • K
                  kalafina @kalafina
                  last edited by

                  @kalafina Thanks you all. it was solved by using 32bit dellbiosprovider.

                  1 Reply Last reply Reply Quote 1
                  • [[undefined-on, S Sebastian Roth, ]]
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @kalafina Thanks for the update.

                    Nevertheless I opened an issue on github to look into making the fog-client a 64 bit application at some point.

                    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

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

                    147

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project