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

Change credentials when running powershell script

$
0
0

Hello,

I have a powershell script to get the drive sizes of servers specified in a text document. The problem I have is that several of our servers are in a DMZ and require different login credentials.

Is there a way to change the credentials that a powershell script runs under based on the name of the server retrieved from a text file.

Any help would be most appreciated.

Andrew


Viewing all articles
Browse latest Browse all 8411

Trending Articles