Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, April 13, 2018 7:44 AM
Hi,
Can I use powershell command to start program with runas and save credential ?
All replies (3)
Friday, April 13, 2018 8:50 AM
Yes, you can e.g. RunAs /user:domain\account /SaveCred "command to run" directly in powershell script
M.
Friday, April 13, 2018 9:52 AM
Yes, I can. But commands cmdlet doesn't work in Windows 10 in specyfic version.
Update W10 broken this command.
Monday, April 16, 2018 6:39 AM
Hi Clayss,
What's your current system build number? Please run WINVER and let me know.
Mine is 16299.309
I have uses these commands and see that the ranas not work for other credentials besides the one I open Powershell tool.
$cred = Get-Credential
start-process -FilePath C:\WINDOWS\system32\cmd.exe -Credential $cred
Please let me know your detailed situation about this issue, I will help to feedback in our platform.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].