I have a custom Operating System deployment solution (OSD Upgrade) which as part of the process has to first modify a few associated AD group memberships using the user account of the person who triggers the OSD.
I need to programmatically check (using preferably Vbscript or even PowerShell) if that user has the necessary permissions to modify the group first. If not, I would like to display a message and terminate the OSD process.
Could you please help?
Steve