Search the Community
Showing results for tags 'sapien.activitexposhv3'.
-
Hi, I am currently trying to create a tool that will automate some task we need to preform at work. The task that I am trying to automate are mostly powershell based. I did a search on the forum and I came across sapien.activexposh COM object. A perfect match to create a GUI in autoit and a clean way to push powershell command for execution. But i hit a roadblock and I hope that someone can help me solve it. - before you can use this sapien activexposh object you must register it using RegAsm.exe. - The command to register the object is: “C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm /codebase {directory}\ActiveXPoshV3.dll” - The command prompt needs to be elavated prompt The problem: When I run [start -> cmd -> right click -> run as administrator] its seems to open a elevated prompt. But this prompt doesn’t have enough privilege to register a object in regasm.exe (RegAsm : error RA0000) The weird stuff: When I [create cmd shortcut to desktop -> right click -> run as administrator] it get a elevated prompt with enough permission to register a object with regasm.exe. (using the same account and laptop!) There seems to be a clear difference when opening the cmd prompt in the way I explained above, see screenshot Question: Is there way to programmatic start the Administrator:cmd window? BTW runas doesn’t seem to work for me…
- 7 replies
-
- cmd
- sapien.activitexposhv3
-
(and 1 more)
Tagged with: