If, like me, you want to administrate your Windows 2003 servers from your Vista workstation, you may find that you recieve an “MMC could not create snap in” error when you open one of the admin tools, it also manifests as corrupted graphics within some MMC Add-ins.
It appears that the dlls are not registered correctly, there’s a KB article from Microsoft that contains a script to reregister the dlls. It’s a simple fix:
- Copy and paste the following script into a text document, save it as RegisterAdminPack.cmd
-
@echo off
-
REM RegisterAdminPak.cmd
-
REM (c) 2006 Microsoft Corporation. All rights reserved.
-
set filelist=adprop.dll azroles.dll azroleui.dll ccfg95.dll
-
set filelist=%filelist% certadm.dll certmmc.dll certpdef.dll certtmpl.dll
-
set filelist=%filelist% certxds.dll cladmwiz.dll clcfgsrv.dll clnetrex.dll
-
set filelist=%filelist% cluadmex.dll cluadmmc.dll cmproxy.dll cmroute.dll
-
set filelist=%filelist% cmutoa.dll cnet16.dll debugex.dll dfscore.dll
-
set filelist=%filelist% dfsgui.dll dhcpsnap.dll dnsmgr.dll domadmin.dll
-
set filelist=%filelist% dsadmin.dll dsuiwiz.dll imadmui.dll lrwizdll.dll
-
set filelist=%filelist% mprsnap.dll msclus.dll mstsmhst.dll mstsmmc.dll
-
set filelist=%filelist% nntpadm.dll nntpapi.dll nntpsnap.dll ntdsbsrv.dll
-
set filelist=%filelist% ntfrsapi.dll rasuser.dll rigpsnap.dll rsadmin.dll
-
set filelist=%filelist% rscommon.dll rsconn.dll rsengps.dll rsjob.dll
-
set filelist=%filelist% rsservps.dll rsshell.dll rssubps.dll rtrfiltr.dll
-
set filelist=%filelist% schmmgmt.dll tapisnap.dll tsuserex.dll vsstskex.dll
-
set filelist=%filelist% w95inf16.dll w95inf32.dll winsevnt.dll winsmon.dll
-
set filelist=%filelist% winsrpc.dll winssnap.dll ws03res.dll
-
-
for %%i in (%filelist%) do (
-
echo Registering %%i …
-
regsvr32 /s %%i
-
)
-
echo.
-
Echo Command Completed
- Run a command prompt under admin privileges (Start menu > All Programs > Accessories > Right click Command Prompt and select “Run as administrator”)
- Navigate to where you saved RegisterAdminPack.cmd, and run it.
Simple as that. Some people find that the admin tool shortcuts aren’t installed under administrative tools, that didn’t happen to me, but you can either reinstall the tools or manually create the shortcuts by opening a new MMC window (Start > Run > mmc) and then adding the relevant snap-in. You can then save your console and create a shortcut wherever you desire.