HI
The script helps owner/user, to have the ability to approve procedures that are set to run on the endpoint.
Paste your code below this statement in code "print "Custom code which is added is Running ""
Note: The Procedure, which you are Pasting Should run only As Logged In user
By running the script The Pop Message Will be shown if you the user has selected "YES" it will run the Copied script.
If User has selected "NO" there will be no output in execution logs
Script should run as "Logged-in " User
title=u"Hi press YES to continue ,NO to stop ." ## Define your message here
message=u"Message from: ADMINISTRATOR" #
import sys
import ctypes
from threading import Timer
ki=ctypes.windll.user32.MessageBoxW(None,title, message, 3)
if ki==6:
print "User said Yes"
elif ki == 7:
print "User said NO"
sys.exit(0)
else:
print "User has cancelled the operation exiting from program"
sys.exit(0)
#***************************************************************************************************************
# Add your code below
print "Custom code which is added is Running "
Comments