Home > Script Error > Script Error 80041021

Script Error 80041021

No, create an account now. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. What to do with my pre-teen daughter who has been out of control since a severe accident? Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... http://internetmairie.com/script-error/script-error-fix.html

Yes, my password is: Forgot your password? So running it remotely might possibly make that work. Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. You'll be able to ask questions about Vista or chat with the community and help others. http://www.computerperformance.co.uk/Logon/code/code_80041021.htm

Close Box Join Tek-Tips Today! Generated Thu, 27 Oct 2016 11:48:45 GMT by s_wx1206 (squid/3.5.20) ERROR The requested URL could not be retrieved The following error was encountered while trying to retrieve the URL: Connection Codes beginning 08007... In my example the fault was in a WMI script, the cause was a syntax error with Set objWMI = GetObject("winmgmts:" Case 2 In another example, I had the reverse problem,

It still won't work. Set objFso = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists(strFolder) Then Set objFolder = objFSO.GetFolder(strFolder) Else Set objFolder = objFSO.CreateFolder(strFolder) Wscript.Echo "Folder created " & strFolder End If Set strFile = objFso.CreateTextFile(strPath, True) '-------------------------------------------- ' Are you aComputer / IT professional?Join Tek-Tips Forums! I've read this article: http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_evqo.mspx and it still won't work.

Download your free Network Device Monitor Author: Guy Thomas Copyright © 1999-2016 Computer Performance LTD All rights reserved. Solved vb script error 0x80041021 Posted on 2014-09-13 VB Script Programming 1 Verified Solution 1 Comment 1,032 Views Last Modified: 2014-09-13 hi when i run this script i got all the First off, you use strComputer Go to Solution 1 Comment LVL 20 Overall: Level 20 VB Script 12 Programming 4 Message Accepted Solution by:ltlbearand32014-09-13 Your problems are being caused because https://www.experts-exchange.com/questions/28517745/vb-script-error-0x80041021.html First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone.

My PClist array contained 10 machines.Is there a way of checking? See master list of 0800 errors. The system returned: (22) Invalid argument The remote host or network may be down. Red Flag This Post Please let us know here why this post is inappropriate.

Are illegal immigrants more likely to commit crimes? https://groups.google.com/d/topic/microsoft.public.scripting.vbscript/VmSJIjvYdJY Does the Iron Man movie ever establish a convincing motive for the main villain? For interpreting the WSH messages check Diagnose 800 errors. Please try the request again.

strComputer = "." Set objWMIService = GetObject_ ("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _ strComputer & "\root\cimv2") Set colOperatingSystems = objWMIService.ExecQuery _ ("Select * from Win32_OperatingSystem") For Each objOperatingSystem in colOperatingSystems objOperatingSystem.Win32Shutdown(1) Next Am I this contact form 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 Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft's operating systems. Privacy Policy Terms and Rules Help Connect With Us Log-in Register Contact Us Forum software by XenForo™ ©2010-2014 XenForo Ltd.

Abstract definition of convex set How is being able to break into any Linux machine through grub2 secure? Before server side scripting how were HTML forms interpreted Small Diwali gifts, from an overseas visitor in India during the festive period? Join UsClose Για να χρησιμοποιήσετε τις Συζητήσεις των Ομάδων Google, ενεργοποιήστε την JavaScript στις ρυθμίσεις του προγράμματος περιήγησής σας και, στη συνέχεια, ανανεώστε αυτήν τη σελίδα. . Ο λογαριασμός μουΑναζήτησηΧάρτεςYouTubePlayΕιδήσειςGmailDriveΗμερολόγιοGoogle+ΜετάφρασηΦωτογραφίεςΠερισσότεραΈγγραφαBloggerΕπαφέςHangoutsΑκόμη περισσότερα have a peek here Art Bunch posted Jul 9, 2016 Microsoft.net framework install...

Also, I prefer to write vbscript within notepad++ as it gives some nice intellisense capabilities for vbscript to help in this kind of instances.) Option Explicit '================================================================================================ ' I recommend adding Option Explicit to the start of your script. All rights reserved.

Join our community for more solutions or to ask questions.

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. VBScript Forum at In another case it was a missing & "{impersonationLevel=impersonate}!\\" _ Guy Recommends: WMI Monitor and It's Free! 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 Join Now For immediate help use Live now!

What game is this? I've even tried copying and pasting the code provided in the article. And I can't switch to a secure desktop. Check This Out I'm trying to invoke the shutdown method of the Win32_OperatingSystem class.

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! Art Bunch posted Jul 23, 2016 How to open .vlt files? Give something back? Please report a broken link, or an error to: current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.

The Symptoms You Get The script does not manipulate the WMI object as you had hoped, instead you get a Windows Script Host error message like this picture: The Cause of brYan, May 15, 2007, in forum: Windows Update Replies: 1 Views: 291 Shenan Stanley May 15, 2007 Multiple Computers Accessing One Music Repository...? Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. SSH makes all typed passwords visible when command is provided as an argument to the SSH command Does the Many Worlds interpretation of quantum mechanics necessarily imply every world exist?

Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. How do you launch the script?