|
Hyper-V-Server (as with Windows Server Core) does not give you access to the
GUI and that means that you cannot access Device Manager to manage and update
device drivers. Instead device driver management has to be done via the command
line.
These are my notes on how to accomplish driver management tasks
from the command line:
List device drivers
To list device drivers enter the following at the command prompt:
pnputil /e
Note: nothing will be listed if you have not manually installed any drivers from the C:\Compucon\Drivers folder yet. Please go through each driver folder and install them manually.
Update a device driver
The first task is to obtain the device driver (or updated device
driver). Sadly there is no automatic way of doing this. So you will
need to track down the device driver to use, visiting manufacturers
websites is often a good place to start.
Once you have the device driver (unzipped if it is contained in a
.zip file), use the following to install the device driver:
pnputil -i -a driver-inf
where driver-inf is the name of the .inf file
for the driver, or to install all drivers in a folder:
pnputil -i -a *.inf
Update: check the C:\Compucon\Drivers folder for existing drivers in our OPK system
Enable and disable a
device driver
Sadly there doesn't seem to be a way of enabling or disabling
devices from the command line.
The best (free) tool I have found for listing, enabling and
disabling devices is DevManView which is available here:
www.nirsoft.net/utils/device_manager_view.html
Diskpart
Here are some commands for using DISKPART in the Terminal.
- help
- list disk
- list vol
- list part
- sel disk x (where x is a disk number listed under 'list disk')
- sel vol x
- sel part x
- create part primary
- help format (or format help)
- assign (assigns a drive letter to the partition once it has been formatted)
- exit
|