On 12/18/2009 6:46 PM, RG wrote:
> I have a powershell script that is launching a process on a remote machine.
> I would like to have it so the script prompts for the persons username and
> password (get-credential) and then takes those credentials and uses them to
> launch the process. The script works find if I launch powershell with the
> credentials that need to launch the process on the remote machine, but if I
> launch the powershell script with credentials that don't have access to that
> machine it fails. Could somebody provide an example of this? Here is a blog that indicates you can do it with a
System.Diagnostics.ProcessStartInfo object:
http://tinyurl.com/yje49rx
--
David Trimboli
Windows Systems Analyst
Cold Spring Harbor Laboratory