Re: Permission Denied when trying to access remote computer with V



as i said, the windows firewall is disabled on my DNS domain.
the script runs locally on every machine on my network. it just doesn't run
remotely.


"Manbinder Pal Singh [MSFT]" wrote:

> Since it is working on your local machine and you are getting error for
> remote case and you get a 0x80070005 (DCOM ACCESS_DENIED) error
> , it suggests that your settings are not properly enabled for remote
> connections. Please follow the instruction at this link Connecting to WMI
> Through Windows Firewall.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Manbinder Pal Singh[ MSFT]
> Team - WMI
> 1. Official WMI FAQ :
> http://www.microsoft.com/technet/scriptcenter/resources/wmifaq.mspx
> 2. Programmer Focused WMI Newsgroup - microsoft.public.wmi.programmer (
> NOTE: this is a replacement to microsoft.public.win32.programmer.wmi )
> 3. Technet ScriptCenter Resources :
> http://www.microsoft.com/technet/scriptcenter/default.mspx
>
>
> "ricardo" <ricardo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:324B1204-CC1F-4189-982E-9E4B21F9DE68@xxxxxxxxxxxxxxxx
> > hello,
> >
> > i'm writing a script that access WMI on a remote computer to perform
> > certain
> > actions. i've tried using the GetObject as follows:
> >
> >
> > Set objWMIService = GetObject _
> > ("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\" & _
> > strComputerName & "\root\cimv2")
> >
> > and i've also tried using whe sWbemLocator ConnectServer method as
> > follows:
> >
> > Set objSWbemLocator = CreateObject("WbemScripting.sWbemLocator")
> > Set objWMIService = objSWbemLocator.ConnectServer(strComputerName, _
> > "\root\CIMV2", _
> > strUser, _
> > strPassword, _
> > "MS_409", _
> > "NTLMDomain:" + strComputerName)
> >
> > when i use the first method, i get
> > error code: 800A0046
> > Error: Permission denied: 'GetObject'
> > System: the remote server has been paused or is in the process of being
> > started.
> >
> > when i use the second method, i get:
> > error Code: 80070005
> > Error: Access is denied
> > Source: SWbemLocator
> > System: Access is denied
> >
> > the remote computer is a Windows XP sp2, i'm running a network with a
> > windows 2003 domain controler. i'm running the script as a domain
> > administrator.
> > i have searched all around on a way to fix this. i have followed all
> > instructions in how to set securiy and impersonation level, and access
> > level,
> > and still my scripts error out.
> > i suspect that some recent windows update is blocking access to local wmi
> > from the network.
> > all the variables are declared explicitly and are assigned values before
> > reaching this part of the code.
> > i have disabled the firewall on the local machines using a gpo, so it's
> > not
> > a firewall issue.
> > if i'm locally on the machine, all the scripts run without a problem. it's
> > only remotely that i have a problem.
> >
> > thanks and regards,
> >
> >
>
>
>
.



Relevant Pages

  • Re: Trying to add IP printer using a bat file
    ... Windows Server 2003 Resource Kit Tools ... provides large-scale, noninteractive control of printers, drivers, and ports on local and remote computers. ... Several Microsoft Visual Basic Script sample files are included with the tool. ...
    (microsoft.public.windowsxp.general)
  • Re: Pin Calc to Start Menu on Remote Computers
    ... Windows XP Troubleshooting ... The WshRemote object allows you to remotely administer computer systems on a computer network. ... It represents an instance of a WSH script, i.e., a script ... You can run the process either on the local machine or on a remote machine. ...
    (microsoft.public.windowsxp.customize)
  • Re: wshController CreateScript errors
    ... Windows Explorer can browse each other's shared files OK. ... What seems ridiculous to me is that when I vary the Windows Firewall ... WScript.Echo "Deployment script complete." ... Sub remote_Start ...
    (microsoft.public.scripting.wsh)
  • Re: SP2 firewall/remote management
    ... I would think you need to apply this policy setting on the remote ... Group Policy Settings Reference for Windows XP Professional ... Allows remote administration of this computer using administrative ... Windows Firewall allows the computer to receive the ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: adding printers to windows 2000
    ... > do it for Windows 2000. ... and ports on local and remote computers. ... Add and delete a local or remote printer. ... Several Microsoft Visual Basic Script sample files are ...
    (microsoft.public.windows.server.scripting)