Pnputil.exe is not recognized as an internal or external command

When I ran the command using the propmt command to install the driver:

cd C:\Windows\System32
pnputil.exe -i -a "C:\Users\Desktop\Drivers\IPEnabled_001.inf"

It works great.

But if i execute the command in Installanywhere tool 
It showing the error message:
pnputil.exe is not recognized as an internal or external command

So, could you tell us why it shows an error message and how does this error occur? Thanks in advance.

Also try an alternative way to install the inf driver

+4
source share
1 answer

pnputil.exeIt is on a 64-bit version of Windows, available only as a 64-bit application, which means %SystemRoot%\System32\pnputil.exe(x64) but not %SystemRoot%\SysWOW64\pnputil.exe(x86).

cd C:\Windows\System32 64- Windows , Windows cmd.exe. 64- %SystemRoot%\System32\cmd.exe, 32- %SystemRoot%\SysWOW64\cmd.exe. Windows File File Redirector, %SystemRoot%\System32 %SystemRoot%\SysWOW64 Windows x64 x86.

pnputil.exe, %SystemRoot%\System32, Windows, Windows.

if exist %SystemRoot%\System32\pnputil.exe (
    set "SystemPath=%SystemRoot%\System32"
) else if exist %SystemRoot%\Sysnative\pnputil.exe (
    set "SystemPath=%SystemRoot%\Sysnative"
) else (
    echo ERROR: Cannot find pnputil.exe to install the driver.
    echo/
    pause
    goto :EOF
)
%SystemPath%\pnputil.exe -i -a "%USERPROFILE%\Desktop\Drivers\IPEnabled_001.inf"

IF 32- 32- Windows 64- 64- Windows.

IF 32- 64- Windows. Sysnative - x86 Windows x64. Sysnative x64. Sysnative . if exist %SystemRoot%\Sysnative , . , , , if exist %SystemRoot%\Sysnative\*, true 32- cmd.exe 64- Windows.

ELSE , , Windows XP, pnputil.exe.

pnputil.exe . Microsoft DPInst. 32- (dpinst32.exe) 64- (dpinst64.exe). .

, , , Intelยฎ, .

, :

  • VISTA32
  • Vista64
  • WIN7-x86
  • WIN7-x64
  • XPx86
  • XPx64

, :

  • VISTA
    • x86
    • 64
  • WIN7
    • x86
    • 64
  • XP
    • x86
    • 64

, , , , , , , Windows, .

, dpinst32.exe dpinst64.exe , , .

, : Windows x86 Windows x64.

  • WIN-32
    • dpinst32.exe
    • *.
    • * .
    • *.
    • *. SYS
  • WIN-64
    • dpinst64.exe
    • *.
    • * .
    • *.
    • *. SYS

32- WIN-32 32- Windows 64- WIN-64 64- Windows , 32 - 64- cmd.exe .

set "WINARCH=64"
if "%ProgramFiles(x86)%" == "" set "WINARCH=32"
cd WIN-%WINARCH%
dpinst%WINARCH%.exe

ProgramFiles(x86) Windows x64, Windows, . WOW64. , 64- () AMD 32- Windows x86.

dpinst32.exe dpinst64.exe - , , .

0

Source: https://habr.com/ru/post/1542484/


All Articles