Microsoft Vbscript Runtime Error 800a01ce
Contents |
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel 9 Documentation APIs and the remote server machine does not exist or is unavailable: 'getobject' reference Dev centers Samples Retired content We’re sorry. The content you requested has the remote server machine does not exist or is unavailable 'createobject' been removed. You’ll be auto redirected in 1 second. Ask a question Quick access Forums home Browse forums the remote server machine does not exist or is unavailable vbscript users FAQ Search related threads Remove From My Forums Asked by: VB Script Error 800A01CE JScript and Scripting > Scripting Question 0 Sign in to vote Sorry in advance if I
The Remote Server Machine Does Not Exist Or Is Unavailable (error 462)
have posted to the wrong Forum. I just didnt see one that fit my catagory. Client is Windows 7 Profesional (Windows Xp Clients not affected) Run the following Script and we get this error Set WshNetwork = CreateObject("WScript.Network") PrinterPath = "\\loganserver1\Fax" wshNetwork.AddWindowsPrinterConnection PrinterPath Script:\\loganserver\script$\SetDefaultPrinter\fax.vbs Line 3 Char 1 The remote server machine does not exsist or is not available Code 800A01CE Source: Microsoft the remote server machine does not exist or is unavailable vba VBScript runtime error However If I run this Script it runs fin except the printer name is 10.0.010 fax Set WshNetwork = CreateObject("WScript.Network") PrinterPath = "\\10.0.0.10\Fax" wshNetwork.AddWindowsPrinterConnection PrinterPath This happens even if you are logged on as a user or network administrator Able to access the Server Via UNC path no problem. No Event logs in Client or server This same script works on all windows Xp and 2003 machines Friday, June 03, 2011 10:32 AM Reply | Quote Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.Would you like to participate? Privacy statement Help us improve MSDN. Visit our UserVoice Page to submit and vote on ideas! Make a suggestion Dev centers Windows Office Visual Studio Microsoft Azure More... Learning resources Microsoft Virtual Academy Channel 9 MSDN Magazine Community Forums Blogs Codeplex Support Self support Programs BizSpark (for startups) Microsoft Imagine (for students) United States (English) Newsletter Privacy & cookies Terms of use Trademarks © 2016 Microsoft
lylie Total Posts : 6 Scores: 0 Reward points : 0 Joined: 8/10/2012 Status: offline The Remote Server Machine does not exist or is Unavailable Friday, August 10, 2012 10:34 PM (permalink) 0 Hi there guys, im new to the forums so I apologise in advance if this has been asked already and I havent seen the answer, however I am getting the subject error when running a script - its intention is to restart someones computer via Active Directory - it worked the first time it was run however is giving this error after: Line: 18 Char: 16 Error: The remote server machine does not exist or is unavailable: 'GetObject' Code: 800A01CE Source: Microsoft VBScript Runtime https://social.msdn.microsoft.com/Forums/en-US/bd7925f4-759d-40ea-a862-ddeb50b194b1/vb-script-error-800a01ce?forum=scripting Error Here is the script: Set wshArguments = WScript.Arguments Set objComputer = GetObject(wshArguments(0)) strComputer = objComputer.dNSHostname intAnswer = Msgbox("Do you want to Restart: " & strComputer,vbYesNo, "Restart Computer") If intAnswer = vbYes Then Call Restart(strComputer) Else wscript.quit End If Function Restart(comp) 'On Error Resume Next Err.Clear Set objPing = GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery("select * from Win32_PingStatus where address = '" & comp & "'") For Each objStatus in objPing If objStatus.StatusCode = http://www.visualbasicscript.com/The-Remote-Server-Machine-does-not-exist-or-is-Unavailable-m98935.aspx 0 Then 'Host was reachable ' Connect to computer Set OpSysSet = GetObject("winmgmts:{(Shutdown)}//" & comp & "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem where Primary=true") ' Actual shutdown for each OpSys in OpSysSet OpSys.Reboot() next Set OpSysSet = nothing If Err <> 0 Then WScript.Echo " Reboot failed." & Err.Number & " " & Err.Description Else WScript.Echo " Reboot initiated..." End If Else WScript.Echo " Host unreachable. Maybe firewall is enabled" 'Host was unreachable End If Next End Function All your help is appreciated Many thanks Alex #1 59cobalt Total Posts : 2538 Scores: 247 Reward points : 0 Joined: 7/17/2011 Status: offline Re:The Remote Server Machine does not exist or is Unavailable Saturday, August 11, 2012 4:42 AM (permalink) 0 The error message suggests that the local computer cannot connect to the remote computer. Is the Windows Firewall enabled on the remote computer? Can you connect to the remote computer by other means (SMB, RDP, ...)? Did you try diagnosing WMI issues, e.g. with WMI Diag or WBEMTest? #2 lylie Total Posts : 6 Scores: 0 Reward points : 0 Joined: 8/10/2012 Status: offline Re:The Remote Server Machine does not exist or is Unavailable Sunday, August 12, 2012 7:46 PM (permalink) 0 Yeah I can RDP to it
FORUMSFOR COMPUTER PROFESSIONALS Log In Come Join Us! Are you aComputer / http://www.tek-tips.com/viewthread.cfm?qid=1104818 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 the remote 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 the remote server reStructuredText code below into your site. VBScript Forum at Tek-Tips HomeForumsProgrammersLanguagesVBScript Forum Error Handling thread329-1104818 Forum Search FAQs Links MVPs Error Handling Error Handling sn0rg (IS/IT--Management) (OP) 9 Aug 05 06:35 I've got some code to connect to remote machines via WMI.I need to build in some error handling if the machine is down/unavailable etc.The problem is that the "if err.number" part of the code is not being executed when an error occures, the script just trundles on.If I remove "on error resume next" then I just get the error message.Can anyone help?CODEon error resume nextSet objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComp1 & "\root\cimv2")If Err.Number <> 0 thenwscript.echo Err.Numberwscript.quitThe error I'm expecting is this:Script:c:\blah\somscript.vbsLine:106Char:1Error:The remote server machine does not exist or is unavailable: 'GetObject'Code:800A01CESource;microsoft VBScript runtime errorIf I change the "if err.number" line to:CODEif err.number = 800A01CE then