Can't connect to remote computer.
- From: Friznik <Friznik@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 May 2008 13:32:23 -0700
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?
.
- Follow-Ups:
- Re: Can't connect to remote computer.
- From: TDM
- Re: Can't connect to remote computer.
- Prev by Date: Re: Can't create shortcut whose name contains Unicode?
- Next by Date: Re: Script that checks time and size ...
- Previous by thread: Re: Script that checks time and size ...
- Next by thread: Re: Can't connect to remote computer.
- Index(es):
Relevant Pages
|
|