Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Authenticating to clients in different domains with different credentials

$
0
0

Hello,

  I'm having some trouble figuring out how to copy files from computers in multiple domains using credentials that exist in each of those domains.  Copying from the remote computer to my computer.

For example, here's some domains:

boston.massachusetts.USA.com

chicago.illinois.USA.com

lansing.michigan.USA.com

Each has their own computers and users.  I have a user ID in each of them that allows me access to the C$ share on the computers in that domain. 

I have a list of computers in the form of <hostname>.<domain>.  For example:

iloveboston.boston.massachusetts.USA.com

ilovechicago.chicago.illinois.USA.com

ilovemichigan.lansing.michigan.USA.com

I can also use a csv file that has the city, computer name. For example:

Short Domain     Computer

boston                iloveboston

chicago               ilovechicago

michigan             ilovemichigan

The problem is, how to tell which ID to use based on the domain the computer is in and how to specify that in the PS script.


Tom B.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>