Re: Can't connect to remote computer.




"Friznik" <Friznik@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1B6DEBBD-DCC9-4D26-B863-922E1F8C7862@xxxxxxxxxxxxxxxx
I have a script which executed through SMS that gets all workstations
connected to the server. I then need to connect to the server and pull
log
files from the previous day. The following code is used to remotely
connect
to the workstations. However, I get access denied because the account I
need
to connect to is the local workstation administrator account and not in
the
domain. (the domain accounts get locked out over time if any errors occur)
The problem I have is I can not find out how to tell the script to log
into
the workstation account because the ConnectServer method requires a
domain.
Is there a way to get a remote connection using the workstation
credentials
instead of the domain credentials?


Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")
Set objSWbemServices = objSWbemLocator.ConnectServer(strComputer, _
"root\cimv2", _
strUser, _
strPassword, _
"MS_409", _
"NTLMDomain:" & strDomain) ' Specify workstation instead of domain?

Hmm, I have been using ConnectServer for some time now, and
I dont specify the domain, and it works fine. Have you tried simply leaving
the domain settings out ? The strAuthority parameter which you are setting
in your script is optoinal.


TDM


.



Relevant Pages

  • Re: Port Forward
    ... And no I don't want to remote into both at the same time. ... remote into one of the computer workstations OR the Server. ... I don't log into my server with my user account. ... Right now my client Remotes into a workstation with default port ...
    (microsoft.public.windows.server.sbs)
  • Re: Port Forward
    ... Right now I can remote into one or the other using RDP, ... want to remote into one of the computer workstations OR the Server. ... I want to be able to possibly pick and choose what workstation I ... I don't log into my server with my user account. ...
    (microsoft.public.windows.server.sbs)
  • Re: Port Forward
    ... Right now I can remote into one or the other using RDP, ... remote into one of the computer workstations OR the Server. ... I don't log into my server with my user account. ... Right now my client Remotes into a workstation with default port ...
    (microsoft.public.windows.server.sbs)
  • Re: WMI - Win32_Product Question
    ... You may need ConnectServer if you are connecting as a different account on ... userName, passWord) ... > I want to install an application on a remote computer ...
    (microsoft.public.win32.programmer.wmi)
  • Cant connect to remote computer.
    ... I then need to connect to the server and pull log ... I get access denied because the account I need ... the workstation account because the ConnectServer method requires a domain. ...
    (microsoft.public.scripting.wsh)