Can't connect to remote computer.



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?
.



Relevant Pages

  • Re: Cant connect to remote computer.
    ... I get access denied because the account I ... to connect to is the local workstation administrator account and not in ... Is there a way to get a remote connection using the workstation ... Hmm, I have been using ConnectServer for some time now, and ...
    (microsoft.public.scripting.wsh)
  • Re: Trust relationship between this workstation and Primary Domain
    ... it, with a new computer ID, a new workgroup ID, but again to no avail. ... password policy, renamed admin account, automatic updates are controlled by ... * PLEASE post all messages and replies in the newsgroups ... "Workstation ...
    (microsoft.public.win2000.networking)
  • Re: Re-Post - "the trust relationship between this workstation and
    ... account is NEW to the workstation. ... needs admin group priv at workstation level. ... only problem is adding a new user account on the station. ... This would be on the DNS server 172.20.100.2 ...
    (microsoft.public.windows.server.active_directory)
  • Re: Re-Post - "the trust relationship between this workstation and
    ... "the trust relationship between this workstation and the primary domain ... only problem is adding a new user account on the station. ... The DNS Zone for your AD Domain must be DYNAMIC, ... Client computer must use STRICTLY the INTERNAL DNS server which can ...
    (microsoft.public.windows.server.active_directory)
  • Joining NT4 to a Windows 2000 domain; secure channel prob?
    ... Trying to logon with a domain account pops up the error: ... The trust relationship between this workstation and the primary ... Searching PDC for domain MYDOMAIN ... ...
    (microsoft.public.windows.server.active_directory)

Loading