Software package to injest drivers into PC's driverstore
-
6 februarie 2012 16:20
I want to run a pnputil -a <driver>.inf to injest some old Brother drivers via a software distribution. If I run the command via DOS as admin then all is fine. However when using software distribution I get a 'Failed (bad environment)' error. Note I have not specified an O/S for this deployment so can't imagine any conflict here.
Am I able to run the pnputil command or do I need to call up DOS first to successfully deploy? eg cmd /K: pnputil -a <driver>.inf?
Thanks
- Mutat de Michael W [MSFT] 9 martie 2012 16:32 task sequences handled by OSD (From:Configuration Manager Software Distribution)
Toate mesajele
-
6 februarie 2012 17:20
So you can run the command locally but not via SCCM. Run the advertisment as an optional one and then change it to look like this
====
pnputil -a <driver>.inf
pause
-------
then you click the box to allow interaction, run it and see what the error states. It might need to be run as a user and not as the System Account.
http://www.sccm-tools.com http://sms-hints-tricks.blogspot.com- Propus ca răspuns de Sabrina ShenModerator 8 februarie 2012 07:25
- Marcat ca răspuns de Michael W [MSFT] 10 februarie 2012 23:35
- Anulare marcare ca răspuns de Bagowarrior 3 martie 2012 00:26
- Anulare propunere ca răspuns de Bagowarrior 3 martie 2012 00:26
-
3 martie 2012 00:28
I get the following when run (within a batch file using command pnputil -a <driver>.inf)
'pnputil.exe' is not recognized as an internal or external command,operable program or batch file
I've run this as a user and as an admin
Note if I run the batch file from the cache folder manually it works.
-
3 martie 2012 00:53
I get the following when run (within a batch file using command pnputil -a <driver>.inf)
'pnputil.exe' is not recognized as an internal or external command,operable program or batch file
I've run this as a user and as an admin
Note if I run the batch file from the cache folder manually it works.
How about if you run
"%windir%\system32\pnputil.exe" -a <patchtodriver>\driver.inf
inside your batch file
My Microsoft Core Infrastructure & Systems Management blog - blog.danovich.com.au
- Propus ca răspuns de danovich_ 3 martie 2012 00:53
- Anulare propunere ca răspuns de Eric MattoonMicrosoft Employee 5 martie 2012 16:29
-
3 martie 2012 01:12
Same error
C:\WINDOWS\SysWOW64\CCM\Cache\UAT00045.7.System>"C:\WINDOWS\system32\pnputil.exe
" -a c:\Pentax\pj3.inf
'"C:\WINDOWS\system32\pnputil.exe"' is not recognized as an internal or external
command,
operable program or batch file. -
3 martie 2012 01:20That's strange. This is Windows 7 yeah? How about if you copy the pnputil.exe into your package source and use that instead?
My Microsoft Core Infrastructure & Systems Management blog - blog.danovich.com.au
-
3 martie 2012 01:26He he. I've tried that also and yep Windows 7. I'm baffled so far
-
3 martie 2012 01:26Anything to do with 64-bit File System redirection?
-
4 martie 2012 23:47
He he. I've tried that also and yep Windows 7. I'm baffled so far
What was the error msg when you put the exe in your package source?My Microsoft Core Infrastructure & Systems Management blog - blog.danovich.com.au
-
6 martie 2012 03:18
Try using a task sequence.
1. Create a "run command line" step.
cmd.exe /c md c:\temp\installdir
(You can add a condition to not run this step if the c:\temp\installdir directory already exists.)
2. Create a "run command line" step.
xcopy.exe ".\*.*" "c:\temp\installdir" /D /E /C /I /Q /H /R /Y /S
Check the "package" box and select the package that contains the source files.
3. Create a "run command line" step.
Set your install command "pnputil -a <driver>.inf
Set the working directory to c:\temp\installdir
You can specify the local administrator account on the final step, if that's determined to be the issue.
Nicholas Jones, MCITP® | Core Infrastructure Consultant | Sparkhound | https://www.mcpvirtualbusinesscard.com/VBCServer/nicholas.jones/profile
- Editat de Nicholas JonesMicrosoft Employee 6 martie 2012 03:18