2 Replies Latest reply on Jan 8, 2019 9:09 AM by gregory.berroa

    pnputil powershell

    JamieWebster Rookie

      Hi, we are having some issues where not all the drivers are being installed during the hii provisioning process - whilst we investigate further,  we have a script that will tidy up any missing hardware drivers.   Issue we have is that the script will not work as part of a distrubuted package or as a provisioning task.  Do any powershell or provisioning ninjas out there have a clean method to get the script running as required when part of an Ivanti automated task ? or have a working method to install missing drivers ?

       

      Thanks in advance.

       

      client os

      all devices are win10 x64

       

      script

      Get-childitem  -recurse -include *.inf | foreach-object{C:\Windows\System32\PNPUtil.exe /add-driver $_.fullname /install}

       

      logs

      attached.

        • 1. Re: pnputil powershell
          Kayla.Culpepper SupportEmployee

          Hello Jamie,

           

          Thanks for posting to the Ivanti Community.

           

          Sorry that it seems no one has the answer to be able to assist you on this yet.  Did you manage to get any further information on this? Please share anything you deem useful and the community may be able to offer some help.

           

          If not then please do consider the other ways to engage with us to get assistance:

           

          https://community.ivanti.com/community/contact-support

           

          Kayla Culpepper

          Customer Service Coordinator

          Ivanti

          • 2. Re: pnputil powershell
            gregory.berroa SupportEmployee

            Hi JamieWebster,

             

            The log you attached shows the following:

             

            Tue, 11 Dec 2018 11:56:28 PowerShell output: C:\Windows\System32\PNPUtil.exe : The term 'C:\Windows\System32\PNPUtil.exe' is not recognized as the name of a

            cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

            At C:\Program Files (x86)\LANDesk\LDClient\sdmcache\SWD\5285inf\drvinstall.ps1:1 char:57

            + ... nclude *.inf | foreach-object{C:\Windows\System32\PNPUtil.exe /add-dr ...

            +                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                + CategoryInfo          : ObjectNotFound: (C:\Windows\System32\PNPUtil.exe:String) [], CommandNotFoundException

                + FullyQualifiedErrorId : CommandNotFoundException

             

            It looks like you can only call PNPUtil.exe from the command prompt:

            PnPUtil - Windows drivers | Microsoft Docs

             

            Try using a batch file instead of PowerShell and let us know!

             

            Best Regards,