The Cause of Code 80041002 Your VBScript contains a misspelled object name.Code 80041002 is an unusual Error in that a number is returned rather than 'Syntax Error' or other message. The error shown is Line: 4 Char: 1 Error: 0x80041002 Code: 80041002 Source: (Null) The allow.vbs script is - Const HKEY_CURRENT_USER = &H80000001 strComputer = "." Set objReg = GetObject("winmgmts:\\" & Suggested Solutions Title # Comments Views Activity Best way to connect the user Laptops to the new WiFi network and disconnect from old WiFi network 1 78 48d VBA code shorten Note also that the error code means SWBEM_NOTFOUND. http://www.computerperformance.co.uk/Logon/code/code_80041002.htm
thankyou. I use win xp and explorer 7 Thanks. Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We Win32_Services.
GCDude, Feb 16, 2007 #2 librav Thread Starter Joined: Feb 13, 2007 Messages: 3 Here is the entire script: Set sr = getobject("winmgmts:\\.\root\default:Systemrestore") msg = "New Restore Point successfully created." & I will start my system properly opened desktop page.but same time one error page -"windows script host" also visible.that page inside "can not find script filec:\windows/system32/rigidit.sys. Thanks for your interest. Close this window and log in.
Thought i'd come back and help a few who might have the same issue. If you have a good example of this error, then please email me, I will publish it with a credit to you: If you like this page then please share it After running it opens a black window with a crazy prompt in it appearing all over the window. https://www.experts-exchange.com/questions/26332502/Windows-Script-Host-80041002-error-when-running-a-VBS-login-script.html It is not just a string it is a variable.
My 21 yr old adult son hates me Why does typography ruin the user experience? Running Acrobat XI Pro will attempt to unisntall the previous version and I run into this same error.Thanks. You would have removed the virus off your computer. Bill Monday, July 16, 2012 2:38 PM Reply | Quote Moderator 0 Sign in to vote Hi Bill, Thank you for your suggestion, Unfortunately (\\) it doesn't work.
Anyways maybe i cant add it to my maintenance.bat but I can make a seperate vbs file and write an entry in my bat file to point it to the vbs impersonation level?? (I am administrator) I've changed the line toCODESet oReg=GetObject("winmgmts:\root\default:StdRegProv")andCODESet oReg=GetObject("winmgmts:\\.\root\default:StdRegProv")and even put in the actual computer name.... Any help would really be appreciated. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More...
Talk With Other Members Be Notified Of ResponsesTo Your Posts Keyword Search One-Click Access To YourFavorite Forums Automated SignaturesOn Your Posts Best Of All, It's Free! Or knows a way around it, I tried nearly every script I found on google none works for me.Any help appreciated. Constants aren't RE: Error 0x80041002 BKearan (IS/IT--Management) (OP) 7 Feb 08 11:34 The Script in question is supposed to run through the local registry and uninstall old versions of Java, but
It is not just a string it is a variable. I wold really like to get rid of this ...... . Are basis vectors imaginary in special relativity? RL #1 Rischip Total Posts : 519 Scores: 2 Reward points : 0 Joined: 3/26/2007 Status: offline RE: Error 0x80041002 (null) Wednesday, July 09, 2008 3:30 AM (permalink) 0 The
Search google for WMI diagnosis. Not the answer you're looking for? Loading... Bill Proposed as answer by jrv Monday, July 16, 2012 5:22 PM Monday, July 16, 2012 4:41 PM Reply | Quote Moderator 0 Sign in to vote To avoid a long