Powershell cannot be instantiated
Posted: Tue Mar 27, 2012 9:57 pm
Here are results from some testing.I have two domain users: internal, externalI have one domain administrator: administratorI have made four builds: Impersonate-Administrator.exe, RunAs-Administrator.exe, Impersonate-Internal.exe, RunAs-Internal.exeI login as external, results:Impersonate-Administrator.exe: Nothing happens.RunAs-Administrator.exe: Error: The directory name is invalid.Impersonate-Internal.exe: Error: PowerShell cannot be instantiatedRunAs-Administrator.exe: Error: The directory name is invalid.I login as administrator, results:Impersonate-Administrator.exe: SuccessRunAs-Administrator.exe: Error: The directory name is invalidImpersonate-Internal: Error: PowerShell cannot be instantiatedRunAs-Internal: Error: The directory name is invalid.The goal is to run Impersonate-Internal.exe or RunAs-Internal.exe (what is the difference?) when logged in external. Both internal and external are normal domain members/users. Internal is also member of some security groups.