Jump to content
Sign in to follow this  
Shocker

Remove Driver Package with PnPutil

Recommended Posts

Hi there,

i try to remove a Driver Package on Win 8.1 (X64) with PnPutil - but it didn't work :(

RunWait(@ComSpec & ' /k pnputil.exe -f -d ' & $sINF, @Systemdir, @SW_SHOW)
;it show wrong typed or File not found cause @Systemdir is C:\Windows\SYSWOW64

RunWait(@ComSpec & ' /k pnputil.exe -f -d ' & $sINF, @WindowsDir & "\system32", @SW_SHOW)
;same error but CMD GUI (ADMIN) show C:\Windows\System32
;even if I type PnPutil with my Commands i get this error :-(

What i'm doing wrong? Thx...

 

Edit: with Filecopy or Fileinstall PnPutil.exe to @Systemdir or with devcon.exe dp_delete solved.

Edited by Shocker

Share this post


Link to post
Share on other sites

Hi all,

just for info, I had the same problem and have solved it via "psexec".

Example:

Run ('"D:\Data\PsTools\psexec.exe" -h cmd /c "pnputil.exe -e >d:\data\driver_export.txt"')

Run ('"D:\Data\PsTools\psexec.exe" \\computername -d -i -u "domain\user" -p password cmd /c "pnputil.exe -e >d:\data\driver_export.txt"')

 

Greetings,

gmmg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...