From: David Mulder Date: Fri, 12 Feb 2021 15:04:30 +0000 (-0700) Subject: samba-tool: Test gpo manage script startup add command X-Git-Tag: tevent-0.11.0~1728 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f6a0bd8b91302f4c7a9b1392d92bdaafcd1bcebd;p=thirdparty%2Fsamba.git samba-tool: Test gpo manage script startup add command Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- diff --git a/python/samba/netcmd/gpo.py b/python/samba/netcmd/gpo.py index abe5d80f7e2..47ea4a10aeb 100644 --- a/python/samba/netcmd/gpo.py +++ b/python/samba/netcmd/gpo.py @@ -3113,10 +3113,41 @@ samba-tool gpo manage scripts startup list {31B2F340-016D-11D2-945F-00C04FB984F9 self.outf.write('@reboot %s %s %s' % (run_as, script_path, parameters.text)) +class cmd_add_startup(Command): + """Adds VGP Startup Script Group Policy to the sysvol + +This command adds a startup script policy to the sysvol. + +Example: +samba-tool gpo manage scripts startup add {31B2F340-016D-11D2-945F-00C04FB984F9} test_script.sh '-n' + """ + + synopsis = "%prog