Start-Process : This command cannot be run because the input "C:\Windows\System32\dsa.msc" is not a valid Application. Give a valid application and run your command again.At C:\Users\admini\AppData\Local\Temp\dd5b272b-a9e0-448d-8879-71e5f670e144.ps1:4 char:1+ Start-Process -FilePath "C:\Windows\System32\dsa.msc" -Credential (Ge ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
If you log into your workstation with your admin credentials, that will let you run RSAT with them. Is there something that keeps you from doing so?
That said, dsa.msc isn't a valid application. It's a snap-in for the MMC. You can try running mmc.exe with the command, or you can use %SystemRoot%\system32\ServerManager.exe to open the server manager UI
Albert Widjaja
ASKER
Hi AC,
I'm logging in using DOMAIN\username but all of those applicaton must be executed using DOMAIN\Admin-Username hence I must perform Right Click and then select Run As..
Dustin Saunders
Hmm, that's a tricky one but I think I have a solution. Firstly, you need
But that will fail with different credentials. So I think the solution is to first launch powershell as the admin user, then run MMC with elevation. This is working for me on my 2012R2 server.
When I execute from my work laptop, I got this error:
Start-Process : This command cannot be run due to the error: The directory name is invalid.At C:\Users\Admini\AppData\Local\Temp\dd5b272b-a9e0-448d-8879-71e5f670e144.ps1:3 char:1+ Start-Process powershell.exe -NoNewWindow -ArgumentList $call -Creden ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand
That said, dsa.msc isn't a valid application. It's a snap-in for the MMC. You can try running mmc.exe with the command, or you can use %SystemRoot%\system32\Serv