Error Number 2147217405
Join INTELLIGENT WORK FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / IT professional?Join Tek-Tips Forums! 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! Join Us! *Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail. Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! 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 Tek-Tips HomeForumsProgrammersLanguagesVBScript Forum Error -2147217405 with no description? thread329-1352858 Forum Search FAQs Links MVPs Error -2147217405 with no description? Error -2147217405 with no description? Vachaun22 (Programmer) (OP) 3 Apr 07 14:57 I'm getting error number -2147217405 after this line of code is executed:CODESet oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _ strComputer & "\root\default:StdRegProv")However, there is another VBScript file I have that uses this exact line of code to do exactly what I'm trying to do, yet it succeeds.Any suggestions? RE: Error -2147217405 with no description? PHV (MIS) 3 Apr 07 14:58 What is the value of strComputer at the time of the error ? Hope This Helps, PH.Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 RE: Error -2147217405 with no description? Vachaun22 (Programmer) (OP) 3 Apr 07 16:04 The value of strComputer is set to
Microsoft Tech Companion App Microsoft Technical Communities Microsoft Virtual Academy Script Center Server and Tools Blogs TechNet Blogs TechNet Flash Newsletter TechNet Gallery TechNet Library TechNet Magazine TechNet Subscriptions TechNet Video TechNet Wiki Windows Sysinternals Virtual Labs Solutions Networking Cloud and Datacenter Security Virtualization Downloads Updates Service Packs Security Bulletins Windows Update Trials Windows Server 2012 R2 System Center 2012 R2 Microsoft SQL Server 2014 SP1 Windows 8.1 Enterprise See all trials » Related Sites Microsoft Download http://www.tek-tips.com/viewthread.cfm?qid=1352858 Center TechNet Evaluation Center Drivers Windows Sysinternals TechNet Gallery Training Training Expert-led, virtual classes Training Catalog Class Locator Microsoft Virtual Academy Free Windows Server 2012 courses Free Windows 8 courses SQL Server training Microsoft Official Courses On-Demand Certifications Certification overview MCSA: Windows 10 Windows Server Certification (MCSE) Private Cloud Certification (MCSE) SQL Server Certification (MCSE) Other https://technet.microsoft.com/en-us/library/bb932151.aspx resources TechNet Events Second shot for certification Born To Learn blog Find technical communities in your area Support Support options For business For developers For IT professionals For technical support Support offerings More support Microsoft Premier Online TechNet Forums MSDN Forums Security Bulletins & Advisories Not an IT pro? Microsoft Customer Support Microsoft Community Forums United States (English) Sign in Microsoft System Center Home 2012 Previous Versions Library Forums Gallery We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second. Configuration Manager 2007 Documentation Library Troubleshooting Configuration Manager 2007 Troubleshooting the Configuration Manager Console Troubleshooting the Configuration Manager Console How to Verify WMI Permissions How to Verify WMI Permissions How to Verify WMI Permissions Troubleshooting Configuration Manager Console Issues How to Enable Verbose Logging for the Console How to Verify Namespace and Server Connectivity How to Verify WMI Permissions TOC Collapse the table of content Expand the table of content This documentation is archived and is not being maint
Reward points : 0 Joined: 12/4/2006 Status: offline Error code 2147217405 Thursday, May 17, 2007 2:42 PM (permalink) 0 I have a script that checks the local clients Ip address and install a http://www.visualbasicscript.com/Error-code-2147217405-m47175.aspx printer based on the range the client IP address. On several clients I am http://www.tech-archive.net/Archive/SMS/microsoft.public.sms.admin/2006-04/msg00061.html getting error 2147217405 when I try to run this script via SMS. Thescript is downloaded to the client and if I use psexec to run the my script on the remote machine it works fine. Can anybody tell me what error code 2147217405 Here is the script. Option Explicit Dim strComputer : strComputer = "." Dim error number objNetwork : Set objNetwork = CreateObject("WScript.Network") Dim localIP : localIP = ResolveIP(objNetwork.ComputerName) Dim arrIPOct : arrIPOct = Split(localIP, ".") Dim intOct3 : intOct3 = CInt(arrIPOct(2)) Dim intOct4 : intOct4 = CInt(arrIPOct(3)) Dim Location1, Location2, Location3, Location4 Dim Location, IP Dim Printer, FilePath Dim objShell, objNewPort, objWMIService Dim RunErrorToReturn, Results If (intOct3 >= 1 And intOct3 <= 15) And (intOct4 >= 3 And intOct4 <= 30) Then 'If (intOct3 >= 1 And error number 2147217405 intOct3 <= 3) And (intOct4 >= 3 And intOct4 <= 30) Then IP = "x.x.1.a" Printer = "-Location1" Location = "Location1" 'WScript.Echo "Match x.x.1.3 - x.x.1.30: " & localIP ElseIf (intOct3 >= 1 And intOct3 <= 15) And (intOct4 >= 35 And intOct4 <= 62) Then 'ElseIf (intOct3 >= 1 And intOct3 <= 15) And (intOct4 >= 35 And intOct4 <= 62) Then IP = "x.x.1.b" Printer = "-Location2" Location = "Location2" 'WScript.Echo "Match x.x.1.35 - x.x.1.35: " & localIP ElseIf (intOct3 >= 1 And intOct3 <= 15)And (intOct4 >= 67 And intOct4 <=94) Then 'ElseIf (intOct3 >= 1 And intOct3 <= 15)And (intOct4 >= 67 And intOct4 <=94) Then IP = "x.x.1.c" Printer = "-Location3" Location = "Location3" WScript.Echo "Match x.x.1.67 - x.x.1.94: " & localIP ElseIf (intOct3 >= 1 And intOct3 <= 33) And (intOct4 >= 99 And intOct4 <=126) Then 'ElseIf (intOct3 >= 1 And intOct3 <= 15) And (intOct4 >= 99 And intOct4 <=126) Then IP = "x.x.1.d" Printer = "-Location4" Location = "Location4" 'WScript.Echo "Match x.x.1.99 - x.x.1.126: " & localIP ElseIf (intOct3 >= 1 And intOct3 <= 15) And (intOct4 >= 131 And intOct4 <=158) Then 'ElseIf (intOct3 >= 1
Ok, problem identified. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/connecting_through_windows_firewall.asp -- Kim Oppalfens Telindus Belgium MVP Windows Server System - SMS "Janelle"