TonyElam
asked on
C#. VB
Does anyone know of a way to convert the following PS code to C# or VB to create an exe file?
$password = get-content C:\cred1.txt | convertto-securestring
$credential = new-object -typename System.Management.Automati on.PSCrede ntial -argumentlist "admin",$password
#Use invoke-command to execute the operation#
Invoke-command –computername <computer> -credential $credential –scriptblock {ftpuser}
$password = get-content C:\cred1.txt | convertto-securestring
$credential = new-object -typename System.Management.Automati
#Use invoke-command to execute the operation#
Invoke-command –computername <computer> -credential $credential –scriptblock {ftpuser}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.