CreateProcessAsUser
CreateProcessAsUser copied to clipboard
don't work in SCCM application
I have try your function in a powershell script in system account this work great but when I deploy my script via a SCCM pplication I can't create a user process, somebody have the same problem?
weird thing when I deploy by software catalogue I have no issue only one I launch a distribution by advertisment
It's very likely that nobody ever tested this under SCCM.
I've never used sccm, so I can't help either. If you learn anything, be sure to document it here!
I have try your function in a powershell script in system account this work great but when I deploy my script via a SCCM pplication I can't create a user process, somebody have the same problem?
Hi,I want to use the function in powershell too,but i don't know how !Integrate the source code or dll?Must be system account ?What is your OS and Powershell version?
Forgive my poor english,Thanks!
I'm looking forward to your reply!
Hi from my memory
Just need add code via
Add-Type -TypeDefinition 'your code here' -Language CSharp
And call the function
Thanks for your reply! I figure out it by many test!Of course must be system account,and powershell at least 3.0。