0

Im trying to do something very very simple, i want to call an exe from powershell using different credentials. for my test i run this command while powershell session is the root of the exe file:

Start-Process ".\blabla.exe" -Credential $(Get-Credential)

i then enter the credentials i want (checked 10 times) and still get the following error: enter image description here

The Credetials are good, any idea why do i get this error?

Shahar Weiss
  • 141
  • 1
  • 2
  • 11
  • 1
    Does this answer your question? [Start-process raises an error when providing Credentials - possible bug](https://stackoverflow.com/questions/7319658/start-process-raises-an-error-when-providing-credentials-possible-bug) – 7cc Jun 15 '20 at 06:08
  • Is your machine domain joined or part of a work group? Are your credentials local or from a domain? – stackprotector Jun 15 '20 at 06:15
  • Also, which PS version (`$PSVersionTable`)? – stackprotector Jun 15 '20 at 07:20
  • Domain user, PsVER: 5.1, i tried from ISE, Tried from pwoershell command line, and from ISE – Shahar Weiss Jun 15 '20 at 07:36

1 Answers1

0

Well it appears powershell cant have user name as "blabla@blabla.bla" the username must be as "domain.something\username"

Shahar Weiss
  • 141
  • 1
  • 2
  • 11