Scripting Blog

A place to learn about PowerShell and share stories of automation

Registry Script Doesn't Work

Hey, Scripting Guy! I tried writing a script to read data from the registry, but I keep getting this error: Do you have any idea what's wrong? I'm running Windows XP Professional, Service Pack 1, and this is the code I'm using:-- LW, Omaha, NEHey, LW. The error you are getting (80041010) means that the specified class (in this case...