I'm looking to add a mandatory gpupdate /force to a script that is run by my VPN users when they establish their connection. I know how to do it by shelling it out, but would prefer to call it directly instead if there is an API to do so. I've googled a ton of examples on how to shell it, but can't seem to find the API it uses.
Suggestions?
Thanks.
Eric.