Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Error when using pnputil in PowerShell script deployed by Configuration Manager

  • Thread starter Thread starter Pitufo
  • Start date Start date
  • Replies Replies 2
  • Views Views 7K

Pitufo

New Member
Messages
2
Reaction score
0
Points
1
I'm trying to install a printerdriver using CM using this PowerShell scripts

Get-ChildItem ".\UNIV_5.617.7.0_PS_x64\UNIV_5.617.7.0_PS_x64_Driver.inf" -Recurse -Filter "*inf" | ForEach-Object { PNPUtil.exe /add-driver $_.FullName /install }
Add-PrinterDriver -Name "Xerox GPD PS V5.617.7.0"

Manually running the PS script works fine, when running it via Software Center I get this error:
1635542649156.png

Anyone any ideas?
 
Issue was solved: manually it was working correctly. When putting pnputil in the package source directory also. Also the path C:\Windows\System32\pnputil was not working, solution was changing the path to C:\Windows\Sysnative\pnputil.exe
 

Forum statistics

Threads
7,165
Messages
27,971
Members
18,271
Latest member
prashantrm

Trending content

Back
Top