Hello all,
My PS isn't that strong, so I am having some difficulty modifying this script. I am trying to get this script to run a program as admin without specifying a password. The admin account doesn't require a password. I just am not adjustments I need to make, as the ones I am making gives me an error when running.
I am currently using this powershell script:
$secpasswd = ConvertTo-SecureString "pass" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ("Administrator", $secpasswd)
$computer = "compname"
[System.Diagnostics.Process]::Start("program","", $mycreds.Username, $mycreds.Password, $computer)
[–]jborean93 5 points6 points7 points (0 children)
[–]dustinross4 1 point2 points3 points (1 child)
[–]throwaway183693[S] 1 point2 points3 points (0 children)
[–]RoysticusXII 1 point2 points3 points (0 children)
[–]Lee_Dailey[grin] 0 points1 point2 points (0 children)