In my Xcitium platform I need to select some devices from group and then I need to send gpupdate /force command to them. Beause of I was delete one Group Policy for disable Proxy server settings on internet options, but it should be update on all selected clients. How can I done this example from Xcitium panel?
Create the following as a procedure and run it on all endpoints you need to run gpupdate on.
import os
import subprocess
obj=subprocess.Popen(["powershell","gpupdate /force"],shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
result,error=obj.communicate()
if error:
print(error)
else:
print(result)