Is it possible to unregister shell extension DLL's from a command script? Whenever I run "rundll32 /u path\to\whatever.dll" command lines from a script, I always get the error:

The module "path\to\whatever.dll" was loaded but the call to DllUnregisterServer failed with error code 0x8002801c.
I've tried running the script from an elevated command prompt window, and I've tried specifying the full \syswow64 and \system32 paths to rundll32.exe. I'm not going to modify registry permissions to get this to work.

I have several shell extensions that I would like to automate the unregistration of, because doing it manually is a hassle.