A couple of useful DISM commands for WIM management for the IT Pro

As part of being an IT Engineer at my place of employment – I work with operating system deployment and management – part of this is using the Windows DISM toolset for adding packages or drivers directly into a Windows OS WIM or boot WIM.

Here are a few useful DISM commands I have gathered and use on a monthly basis with WIM management and updates.

Read more

Enabling Remote Desktop connections remotely

Enabling remote desktop remotely can be done from an elevated command prompt. This will set your Remote Desktop settings to “Allow connections from computers running any version of Remote Desktop (less secure)”


  1. Open an elevated Command Prompt (one with the permissions of the local administrator on the remote machine)
  2. Type in:  reg add "\\<servername>\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0
  3. Where <Servername> is your Remote machine host-name or IP address. Once filled out press Enter to remotely set Remote Desktop.


Reset Windows 7/8 Firewall to its default state

Note: You need the rights to be able to run an elevated Command Prompt.

Windows 7

  1. Click Start
  2. Click All Programs
  3. Click Accessories
  4. Right click Command Prompt
  5. Select Run as Administrator
  6. In the command prompt type: netsh advfirewall reset
  7. Press Enter to reset your firewall rules to their default state

Windows 8

  1. Press the Windows key to open the charm interface
  2. Type in: command
  3. Right click Command Prompt
  4. Select Run as Administrator
  5. In the command prompt type: netsh advfirewall reset
  6. Press Enter to reset your firewall rules to their default state

The network password needs to be 128 bits or 256 bits depending on your network configuration

Attempting to enter in your wireless passkey and getting “The network password needs to be 128bits or 256bits depending on your network configuration “error? This usually occurs when the networking stack has been damaged/corrupted. Follow the instructions below to repair:

  1. Click Start
  2. Click Run
  3. Type in: cmd
  4. Press Enter
  5. The windows Command Prompt should launch, type in: netsh winsock reset
  6. Press Enter
  7. Restart your computer and attempt wireless connectivity.

Plug & Play Software Enumerator No Sound Win XP

  1. Click Start
  2. Click Programs
  3. Click Accessories
  4. Click Command Prompt
  5. Type:  md temp | press Enter
  6. Now we need to change to it type: Type:  cd temp | press Enter
  7. Type:  copy %windir%infmachine.inf tempallmachine.inf (That will copy the “machine.inf to our newly created folder”)
  8. Type:  copy %windir%system32driversswenum.sys temp
  9. Typecopy %windir%system32streamci.dll temp
  10. Click Start
  11. Click My Computer/Computer
  12. Click on C:
  13. Navigate into Temp
  14. Right clickallmachine.inf
  15. Left click Open With, Notepad
  16. Click Edit
  17. Click Go To..
  18. Type in “22” > press Enter
  19. Select and delete: ExcludeFromSelect=*
  20. Click File, Save.
  21. Click Start
  22. Right click My Computer/Computer
  23. Left click Properties
  24. Click Hardware
  25. Click Device Manager
  26. Click Add Hardware (may be under ActionsAdd Hardware)
  27. Click Have Disk
  28. Browse to c:/Temp
  29. A list of devices should now appear select Plug and Play Software Enumerator and click Install

Retrieve Windows/Office Keys from Remote PC or External HDD

Using a Windows utility called ProduKey you can retrieve the product keys for Microsoft Windows and Office.

  1. First click “here” to download (the link is down the bottom, you want the ZIP file)
  2. Open the saved file and extract to a folder that is easily accessible
  3. Open ProduKey.exe and it will automatically retrieve the product keys for the local machine.
  4. To recover the keys for another Windows installation, click File, Select Source
  5. Select Load the Product Keys from External Windows Directory and click Browse to locate the Windows directory you want to retrieve the keys for.

Note: Using this utility you can also recover the keys using a software hive and remote computers on the network (you have admin access to).

Note: Below are the command prompts commands to run the tool from the windows Command Prompt.

produkey.exe /remote Server01

produkey.exe /remotefile “c:tempcomputers.txt”

produkey.exe /regfile “F:WINNTsystem32configsoftware”

produkey.exe /windir “c:winnt” /shtml “c:temppk.html”

produkey.exe /remoteall

produkey.exe /remotealldomain MyDomain

produkey.exe /iprange

produkey.exe /stab “” >> c:tempprd.txt

produkey.exe /OfficeKeys 0 /WindowsKeys 1 /shtml f:tempkeys.html


How to fix Telecom T-Stick/Vodafone Vodem Initializing issues

Make sure you have credit on your Vodem/T-Stick. This is the common cause of why the modems will not load webpages.

  1. Disconnect the T-Stick/Vodem
  2. Click Start
  3. Click Programs/All Programs
  4. Click Accessories
  5. Click Command Prompt
  6. Type:  set devmgr_show_nonpresent_devices=1 (this will reveal hidden device drivers in device manager) > Press Enter
  7. Now we need to load Device Manager, click Start
  8. Right click Computer/My Computer
  9. Click the hardware tab
  10. Click Device Manager
  11. Click View
  12. Click Show Hidden Devices
  13. Device Manager will now display a list of devices that look transparent
  14. Go through the list, clicking “+” next to each one, mainly in the Network Adapters and Universal Serial Bus controllers sub-section.
  15. Look for anything related to ZTE/Vodafone/Telecom T-Stick
  16. Now right click the devices that indicate they are for the device and select Uninstall, click Ok to confirm
  17. Once you have removed the devices relating to the mobile broadband device, close Device Manager.
  18. Reconnect the T-Stick/Vodem and your computer should recognise it as a new device and install. It should now be up and running.  If not repeat step 14.

How to create a mapped Network drive in Windows 7

Follow the instructions to create a mapped network drive in Windows 7 without windows indexing like a local folder?

  1. Create a new folder for your network shares (ie c:Shared)
  2. Go into the folder you created and make a new folder  (ie c:SharedMovies)
  3. Now you need to link the library into the folder you create in the second step  (ie c:SharedMovies) by going into Documents and up the top click “Includes: 2 locations” and click Add and add the folder.
  4. Now go back to your original folder you created  (ie c:Shared) and delete the folder you made in the second step (ie c:SharedMovies)
  5. Now we make a link to link the folder to the remote folder and to do that we need the Command Prompt, click Start, Run type: cmd and press Enter
  6. Type in: mklink /d c:Shared remotemachinefolder and press Enter
  7. Now your Documents folder should include your remote folder mapped through the c:Shared folder you created earlier like it is a normal folder.

c000021a Fatal System Error

“The Session Manager Initialization system process terminated unexpectedly with a status of 0xc000026c”

Caused by a recently Windows Update

First you need to access the recovery console. Following the instructions below

  1. Boot with your original Windows XP CD. You need one which will allow you to get into the Recovery Console.
  2. Once booted, choose to use the Recovery Console
  3. Choose which Windows installation you need to log into. if there’s only one on that machine, it will be “1?.
  4. Type in the Administrator password.
  5. Change to the update folder by typing cd WINDOWS$NtUninstallKB925902$spuninst
  6. Run this command in the folder: batch spuninst.txt (If the command ran correctly, you should see a spuninst.tag file, using the “dir” command)
  7. Restart the Computer

At this point the computer should boot properly and you should install SP3 and other patches to prevent this problem from happening again.

If the spuninst.tag file doesn’t exist, you may have received a bunch of errors instead. There are a few reasons why this could happen, one of which is if your windows isn’t really installed on the c: drive, even if the Recovery Console always names it that way. To remove the patch manually type in these command in the Command Prompt (By going back using the Windows CD instructions above)

DEL “c:windows$hf_mig$kb925902mf3216.dll”
DEL “c:windows$hf_mig$kb925902gdi32.dll”
DEL “c:windows$hf_mig$kb925902user32.dll”
DEL “c:windows$hf_mig$kb925902win32k.sys”
DEL “c:windowssystem32dllcachegdi32.dll”
DEL “c:windowssystem32dllcachemf3216.dll”
DEL “c:windowssystem32dllcacheuser32.dll”
DEL “c:windowssystem32dllcachewin32k.sys”
COPY “c:windows$NtUninstallKB925902$gdi32.dll” “c:windowssystem32gdi32.dll”
COPY “c:windows$NtUninstallKB925902$mf3216.dll” “c:windowssystem32mf3216.dll”
COPY “c:windows$NtUninstallKB925902$user32.dll” “c:windowssystem32user32.dll”
COPY “c:windows$NtUninstallKB925902$win32k.sys” “c:windowssystem32win32k.sys”
COPY “c:windows$NtUninstallKB925902$spuninstspuninst.txt” “c:windows$NtUninstallKB925902$spuninstspuninst.tag”

Sources taken from TechForLunch