Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I am invoking powershell via WMI and UAC is disabled on the system. Start-Process worked fine, since am passing the credential when i create the powershell process using WMI is not that sufficient ? because powershell so created runs under the account X and I assumed it will have all privilege associated with X Commented Apr 21, 2011 at 4:45
  • could you update the question with the relevant code you use to spawn your PowerShell process? Both out of interest and so I could test if permissions are different Commented Apr 21, 2011 at 10:07
  • Its happening because the invoke-command executes under logged in user's credential ie., Y even though I am passing X's credential as argument to invoke-command (does the passed credential just used to connect to the system?). Is it possible to run invoke-command to execute under X's credential Commented Apr 21, 2011 at 12:19