Re: Can't connect to remote computer.
- From: "TDM" <rpuffd@xxxxxxxxx>
- Date: Thu, 8 May 2008 14:42:48 -0700
"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
.
- Follow-Ups:
- Re: Can't connect to remote computer.
- From: Friznik
- Re: Can't connect to remote computer.
- References:
- Can't connect to remote computer.
- From: Friznik
- Can't connect to remote computer.
- Prev by Date: Re: Script that checks time and size ...
- Next by Date: invokeVerb method in Vista
- Previous by thread: Can't connect to remote computer.
- Next by thread: Re: Can't connect to remote computer.
- Index(es):
Relevant Pages
|