C:\> Dism /mount-wim /wimfile:C:\temp\install.wim /index:1 /mountdir:c:\mount
C:\> Dism /Add-Driver /Image:”c:\mount” /Driver:”C:\temp\x64″ /Recurse
C:\> dism /unmount-wim /Mountdir:c:\mount /commit
C:\> Dism /mount-wim /wimfile:C:\temp\install.wim /index:1 /mountdir:c:\mount
C:\> Dism /Add-Driver /Image:”c:\mount” /Driver:”C:\temp\x64″ /Recurse
C:\> dism /unmount-wim /Mountdir:c:\mount /commit
If you need to add drivers to a Windows install USB then do this:
1. Copy the install.wim file from the USB stick to your local drive.
(optional, to speed up the process)
2. Run the following command to mount the Windows image file.
Assumes that you put the file in C:\temp and have created a C:\mount folder
Dism /mount-wim /wimfile:C:\temp\install.wim /index:1 /mountdir:c:\mount
3. Add the drivers to the image.
Assumes that the drivers are located in c:\temp\x64
Dism /Add-Driver /Image:"c:\mount" /Driver:"C:\temp\x64" /Recurse
4. Unmount the Windows image file
dism /unmount-wim /Mountdir:c:\mount /commit
5. Copy the install.wim file back to the USB stick
TL;DR – Run regedit as an admin, search for “FlipFlopWheel” and replace the 0’s with 1’s, unplug and reinsert the mouse.
Step-By-Step.
Something along these lines,
On your Windows PC
On your Mac
Open an elevated command prompt.
Run diskpart
<C:> diskpart DISKPART> list disk
Note the disk number that corresponds to your USB drive, it should be obvious going by size.
select disk X where X is the number from above
select disk X list partition select partition 0 delete partition select partition 1 delete partition create partition primary exit
Exit Command Prompt (type exit or just close the window)
In Windows, go to Computer and try to open the disk. It will ask you to format it.
Format it with the default settings and give it a name if you want.
It should now a single, unified partitioned drive.
Windows update will not download updates – stuck at 0% downloading
1) Stop the Windows Update service.
You might have to disable the service then restart your computer to be able to get it to stop.
You might also have to stop the Application Experience service.
2) After that, delete everything within the C:\Windows\SoftwareDistribution folder, but not the folder itself.
3) Start the Application Experience service and enable Windows Update service.
4) Check for updates and try to download them. It should work now.
Thanks,
Malcolm.
Installing windows features using a WIM file.
1) use DISM to check which image in the file to use.
DISM /get-wiminfo /wimfile:D:\sources\install.wim
2) start powershell
powershell
3) Install feature
install-windowsfeature xps-viewer -source wim:D:\sources\install.wim:2
(assuming image 2, which is server standard with GUI)
Thanks,
Malcolm
New-SmbShare –Name fso –Path c:\fso
Thanks,
Malcolm.
get-windowsfeature | where {$_.Name -like "*AD*"}
https://support.apple.com/en-us/HT204095
Itunes,apple