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 What is the parentage of Gil-galad? Even then, this code won't work. Monday, July 30, 2012 7:04 AM Reply | Quote Answers 0 Sign in to vote Like I said: you are probably trying to query on a Null value (The error is
Mike For useful Scripting links see the Read Me First stickey! It takes just 2 minutes to sign up (and it's free!). PS. Why was Susan treated so unkindly?
Refered the links below ,but problem is not solved!! For the sake of clarity, I'm getting the error at the start of the "For Each ..." string. I have had a search on google and found that it is something to do with the syntax (in particular the last 'AND localAccount=TRUE' part of the winmgmts query) Here is 0x80041017 Invalid Query Microsoft Customer Support Microsoft Community Forums current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list.
Click Here to join Tek-Tips and talk with other members! Member Login Remember Me Forgot your password? Join our community for more solutions or to ask questions. look at this web-site I am not tied to this process.
Gotta run so please also view this link.http://www.computerperformance.co.uk/vbscript/wmi_printer.htm 0Votes Share Flag Collapse - Went around the problem by adam.chiarotto · 9 years ago In reply to Because it is telling WMI Your name or email address: Do you already have an account? I have the file in place, it is not hidden and not read only. I believe this principle applies for all Home vs Pro editions (XP/Vista/7).
Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. Windows Vista Tips Forums > Newsgroups > Windows Server > Scripting > Forums Forums Quick Links Search Forums Recent Posts Articles Members Members Quick Links Notable Members Current Visitors Recent Activity 0x80041017 Sccm Here's the code: Set service = GetObject("winmgmts:") Dim arrProcName(3) arrProcName(0) = "'taskmgr.exe'" arrProcName(1) = "'calc.exe'" arrProcName(2) = "'notepad.exe'" Sub srTest(strProc, intProc) i = 0 Do While i = 0 For Each [wmi/wmic.c:212:main()] Error: Retrieve Result Data. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More...
Unknown symbol on schematic Puzzler - which spacecraft(s) (actually) incorporated wooden structural elements? All rights reserved.Unauthorized reproduction or linking forbidden without expressed written permission. The Plague, from the movie "Hackers" RE: objWMIService.ExecQuery CIM_DataFile with LIKE fails ERROR 80041017 mrmovie (TechnicalUser) 3 Nov 06 10:08 PScottC is right on this, there is a MS article on How to defeat the elven insects using modern technology? Nt Code 0x80041017
Problems associated with booking flights inside another set of flights? Any help or pointers in the right direction would be great ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ strComputer = "." Dim FolderArray SubFolderCount = 0 SubFileCount = 0 Set FSO = CreateObject("Scripting.FileSystemObject") Privacy statement © 2016 Microsoft. Why mention town and country of equipment manufacturer?
The fact that the script runs on other machines (and even 2008 machines) kinda indicates that the script is alright. Here's the output of running it in a console: c:\test>cscript test.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. PSCGovernments and corporations need people like you and me.
Function GetPath ' Return path to the current script DIM path path = WScript.ScriptFullName ' script file name GetPath = Left(path, InstrRev(path, "\")) End Function dim strComputer dim objWMIService dim colFileList In that case, you would just declare arrWinTitle as a Variant and not as an array: Dim arrWinTitle arrWinTitle = Array("My Documents", "Control Panel") If you make that change and try Why cast an A-lister for Groot? It currently errors on Line 10 of the script giving an Invalid syntax error Line 10: Set objLocalGroup = GetObject("WinNT://" & strComputer & "/Power Users,group") I assume that if NT ADsPaths
What happens to all of the options when they expire? Join Now For immediate help use Live now! Advertisements Latest Threads How do I get the disk drive... As ever, pay close attention to the line number: Line: 4.
dfroelicher posted Jul 28, 2016 Recovery errors 1002 and 1005,... 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! Since VBScript arrays are always indexed starting at 0, you actually need to specify one less than the number of elements in the array. ' This is wrong: Dim arrWinTitle(2) Dim Art Bunch posted Jul 8, 2016 Cannot acsess my email DeVonne Colette posted Mar 5, 2016 Login,logoff,idle time tracking saran posted Nov 2, 2015 WSUS clients not connecting to...
Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free. Trick or Treating in Trutham-And-Ly Right inverse of f(x)= x² that is not sqrt(x) or -sqrt(x) Will I encounter any problems as a recognizable Jew in India? And why should I bother; you didn't take take your problem seriously enough to google for the error code and think about contributions like http://www.eggheadcafe.com/ng/microsoft.public.scripting.wsh/post21100051.asp Not laughing, ehvbs #4 Codes beginning 08005...
Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems. For general advice try my 7 Troubleshooting techniques. A better of doing this is with the Mod operator: intProcName = (intProcName + 1) Mod (UBound(strProcName) + 1) Notice also how I use the UBound function to avoid hard-coding the Give me some time to digest your post, as your use of the Array function, the Mod operator & the UBound function are all new to me (thanks for remembering that
I have searched many forums but there was no useful information about this error. Tuesday, October 31, 2006 6:07 AM (permalink) 0 Hi pradeepkumar, your (very laudable) strategy of locally restricted error handling has a flaw: If there is a problem with Set colItems For interpreting the WSH messages check Diagnose 800 errors. It can be a trust issue.
Thanks in advance! What grid should I use designing UI for the desktop app? Help you with your problem:http://www.tech-archive.net/Archive/Scripting/microsoft.public.scripting.wsh/2005-01/0342.htmlPlease post back if you have anymore problems or questions. 0Votes Share Flag Collapse - I am hoping this will... All rights reserved.