Strangest error. Im attempting to run an elevated powershell process in order to install an application on a headless windows server 2016 core container.
steps to reproduce this:
- start the container in interactive mode (
docker start mycontainer -i
) - from cmd –
powershell
- from powershell session prompt
Start-Process -Command PowerShell -Verb RunAs
- receive the unrecognized error statement
thanks in advance
Best Answer
That's because Start-Process does not have a parameter called -Command.
You probably mean
-FilePath