Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

interaction between elevated PS session and non-elevated processes

$
0
0

Mighty all, I'm trying to leverage the following code to interact with instances of powerpoint running on a system

[Runtime.InteropServices.Marshal]::GetActiveObject('Powerpoint.Application')

All works as expected until my code gets executed in the same security context as powerpoint.

Now my problem is that as soon as this code runs from a PS session of the same user but with administrative flags - magic stops happening :(

Can anyone think of a way to keep my code running?

Thanks in advance!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>