CreateProcessAsUser icon indicating copy to clipboard operation
CreateProcessAsUser copied to clipboard

don't work in SCCM application

Open vincentDcmps opened this issue 6 years ago • 3 comments

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?

vincentDcmps avatar Apr 03 '18 13:04 vincentDcmps

weird thing when I deploy by software catalogue I have no issue only one I launch a distribution by advertisment

vincentDcmps avatar Apr 03 '18 15:04 vincentDcmps

It's very likely that nobody ever tested this under SCCM.

AndrewSav avatar Apr 03 '18 23:04 AndrewSav

I've never used sccm, so I can't help either. If you learn anything, be sure to document it here!

murrayju avatar Apr 04 '18 00:04 murrayju

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!

givengenius avatar Dec 16 '22 06:12 givengenius

Hi from my memory

Just need add code via

Add-Type -TypeDefinition 'your code here' -Language CSharp

And call the function

vincentDcmps avatar Dec 16 '22 07:12 vincentDcmps

Thanks for your reply! I figure out it by many test!Of course must be system account,and powershell at least 3.0。

givengenius avatar Dec 21 '22 09:12 givengenius