Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

How to connect machines remotely using AD credentials

$
0
0

Hi,

I'm trying to create a tool for connecting remote machines using Active Directory credentilas. Here is the flow I designed,

1. Connect Active directory from any machine using DC's credentials

2. List All the computers available in the AD

3. Get Users of those computers 

4. Connect using the credential got from AD via WMI

 

I'm able to do first 3 steps  but stuck up in the 4th Step. Im trying to use ConnectServer() method available n the WMI. Now I know the Computers name but i dont have the credentials. Is there a way to connect the machines without credentials or how to achive this?

Thanks in advance

Regards,

Ilavaa

 

 


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images