Keithw Posted July 21, 2015 Posted July 21, 2015 (edited) I'm trying to create a remote object using the example script on the ObjCreate function reference page:#include <MsgBoxConstants.au3> ;Open the MediaPlayer ona REMOTE computer Local $oRemoteMedia = ObjCreate("WMPlayer.OCX", "W2RATD5NGK32", "W2RATD5NGK32\administrator", "Win7Pilot") If Not @error Then MsgBox($MB_SYSTEMMODAL, "Remote ObjCreate Test", "ObjCreate() of a remote Mediaplayer Object successful !") $oRemoteMedia.openPlayer(@WindowsDir & "\media\tada.wav") ; Play sound if file is present Else MsgBox($MB_SYSTEMMODAL, "Remote ObjCreate Test", "Failed to open remote Object. Error code: " & Hex(@error, 8)) EndIfThe message returns: Failed to open remote Object. Error Code: 80004002 I've tried researching this error but haven't found any useful info. All I know are these requirements below and I know for sure that the services are running, and the script is being executed as x64 with admin rights. The user running the script must have the appropriate permissions.The Object on the remote computer must support DCOM (Distributed COM)The remote computer must have 'Remote Registry Service' and 'File and Printer sharing' services running.I'm now at a dead end and not sure how to further troubleshoot this error. Also, the script runs fine when I use my own hostname. Any ideas? Edited July 21, 2015 by Keithw
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now