Showing posts with label IT. Show all posts
Showing posts with label IT. Show all posts

Friday, January 18, 2008

WMI Script Error - Code: 800A01AE, Error: Class doesn't support automation

Hey Friends,

I got some problems while trying to fetch the remote system inventory using gpinventory.exe.

When I execute gpinventory.exe, I am able to get the result for most of the computers but for some of the computers, it gives the error Access denied or Could not connect. I even stopped the firewall service in the remote computers, but still getting the same error.

When I tried to manually run a script to collect the inventory in these systems, I am getting an error saying


Error: Class doesn't support automation
Code: 800A01AE
Source: Microsoft VBScript runtime error





I did some google, but couldn't find any solution.

Can any one help me in this regard?

Note: For your information, most of the system's registry permissions has been reset.

Thursday, January 17, 2008

Problem with registry permissions

Hey Guys,

I faced a peculiar problem with all the client systems after transferring an existing local user profile (using TransWiz.exe) to a domain user. When I tried to install an application it wont let me install even with domain administrator privileges.

I monitored the activity of the registry using REGMON.EXE (Sysinternal Tool) while installing the application and regmon showed loads of Access Denied messages. I couldn't change the registry permission unless I login as a local user. The only way to solve this problem is to reset the registry permissions.

I did some google and had a chat with Giri and found out some DOS commands to reset the registry permissions.

Steps to reset the entire registry permissions to defaults:

1. Download and install SubInACL

2. Create a file named reset.cmd in C:\Program Files\Windows Resource
Kits\Tools folder.

3. Edit the regreset.cmd file with the following content.

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f
subinacl /subdirectories %SystemDrive% /grant=administrators=f

subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
subinacl /subkeyreg HKEY_CURRENT_USER /grant=system=f
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=system=f
subinacl /subdirectories %SystemDrive% /grant=system=f

4. Enter into CMD prompt.

5. Enter the following commands one at a time and click Enter.

cd "C:\Program Files\Windows Resource Kits\Tools"
regreset.cmd

6. This resetting process will run for 10 to 15 mins.

Note: Its not necessary to restart your system after this process.
Execution of regreset.cmd does not require administrator privileges.

Just thought that this information might be helpful to you all.