text
stringlengths
0
4.23k
pktmon help
Show help text for specific command.
pnpunattend
Audits a computer for device drivers, and perform unattended driver installations, or search for drivers without installing and, optionally, report the results to the command line. Use this command to specify the installation of specific drivers for specific hardware devices.
Prerequisites
Preliminary preparation is required for older versions of the Windows operating system. Prior to using this command, you must complete the following tasks:
Create a directory for the drivers you want to install. For example, create a folder at C:\Drivers\Video for video adapter drivers.
Download and extract the driver package for your device. Copy the contents of the subfolder that contains the INF file for your version of the operating system and any subfolders to the video folder that you created. For example, copy the video driver files to C:\Drivers\Video.
Add a system environment path variable to the folder you created in step 1.For example, C:\Drivers\Video.
Create the following registry key, and then for the DriverPaths key you create, set the Value Data to 1.
For Windows® 7 navigate the registry path: HKEY_LOCAL_Machine\Software\Microsoft\Windows NT\CurrentVersion\, and then create the keys: UnattendSettings\PnPUnattend\DriverPaths\
Syntax
PnPUnattend.exe auditsystem [/help] [/?] [/h] [/s] [/l]
Parameters
Parameter
Description
auditsystem
Specifies online driver install.Required, except when this command is run with either the /help or /? parameters.
/s
Optional. Specifies to search for drivers without installing.
/l
Optional. Specifies to display the log information for this command in the command prompt.
/? | /help
Optional. Displays help for this command at the command prompt.
Required, except when this command is run with either the /help or /? parameters.
/? | /help
Examples
To command shows how to use the PNPUnattend.exe to audit a computer for possible driver updates, and then report the findings to the command prompt, type:
pnpunattend auditsystem /s /l
pnputil
Pnputil.exe is a command line utility that you can use to manage the driver store. You can use this command to add driver packages, remove driver packages, and list driver packages that are in the store.
Syntax
pnputil.exe [-f | -i] [ -? | -a | -d | -e ] <INF name>
Parameters
Parameter
Description
-a
Specifies to add the identified INF file.
-d
Specifies to delete the identified INF file.
-e
Specifies to enumerate all third-party INF files.
-f
Specifies to force the deletion of the identified INF file. Can't be used in conjunction with the –i parameter.
-i
Specifies to install the identified INF file. Can't be used in conjunction with the -f parameter.
/?
Displays help at the command prompt.
Examples
To add an INF file, named USBCAM.INF, type:
pnputil.exe -a a:\usbcam\USBCAM.INF
To add all INF files, located in c:\drivers, type:
pnputil.exe -a c:\drivers\*.inf
To add and install the USBCAM.INF driver, type:
pnputil.exe -i -a a:\usbcam\USBCAM.INF
To enumerate all third-party drivers, type:
pnputil.exe –e
To delete the INF file and driver named oem0.inf, type:
pnputil.exe -d oem0.inf
popd
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
The popd command changes the current directory to the directory that was most recently stored by the pushd command.
Every time you use the pushd command, a single directory is stored for your use. However, you can store multiple directories by using the pushd command multiple times. The directories are stored sequentially in a virtual stack, so if you use the pushd command once, the directory in which you use the command is placed at the bottom of the stack. If you use the command again, the second directory is placed on top of the first one. The process repeats every time you use the pushd command.
If you use the popd command, the directory on the top of the stack is removed and the current directory is changed to that directory. If you use the popd command again, the next directory on the stack is removed. If command extensions are enabled, the popd command removes any drive-letter assignments created by the pushd command.