Skip to content

Commit bf51cce

Browse files
committed
fix flags
1 parent ae87cdd commit bf51cce

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pysqlrecon/modules/sccm/addadmin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def main(
111111
if sms0001 : existing_privs += "SMS00001|SMS0001R,"
112112

113113
if existing_privs != "":
114-
logger.info(f"Restore original permissions with pysqlrecon [OPTIONS] sccm removeadmin --user {id} --permissions '{existing_privs[:-1]}'")
114+
logger.info(f"Restore original permissions with pysqlrecon [OPTIONS] sccm removeadmin --adminid {id} --permissions '{existing_privs[:-1]}'")
115115

116116
#
117117
# No entries found, add new entry
@@ -139,7 +139,7 @@ def main(
139139

140140
id = pysqlrecon.get_last_resp(attr="AdminID")
141141
logger.info(f"User added with ID: {id}")
142-
logger.info(f"Remove with pysqlrecon [OPTIONS] sccm removeadmin --user {id} --permissions '00000000|00000000'")
142+
logger.info(f"Remove with pysqlrecon [OPTIONS] sccm removeadmin --adminid {id} --permissions '00000000|00000000'")
143143

144144
#
145145
# Add permissions

pysqlrecon/modules/sccm/removeadmin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
def main(
1515
ctx: typer.Context,
1616
id: str = typer.Option(..., "--adminid", help="AdminID of the user to demote/remove"),
17-
permissions: str = typer.Option("00000000|00000000", "--sid", help="Permissions to remove (default will remove all permissions and account)")):
17+
permissions: str = typer.Option("00000000|00000000", "--permissions", help="Permissions to remove (default will remove all permissions and account)")):
1818

1919
pysqlrecon: PySqlRecon = ctx.obj['pysqlrecon']
2020
use_basic_tables = ctx.obj['basic_tables']

0 commit comments

Comments
 (0)