forked from p15670423/monkey
Remove "Public" from USERS in windows modify shell startup PBA
Otherwise it'll look for a profile.ps1 file in the Public folder too
This commit is contained in:
parent
c48eef8f94
commit
f30b81eec7
|
@ -13,6 +13,7 @@ def get_windows_commands_to_modify_shell_startup_files():
|
||||||
|
|
||||||
# get list of usernames
|
# get list of usernames
|
||||||
USERS = subprocess.check_output('dir C:\\Users /b', shell=True).decode().split("\r\n")[:-1] # noqa: DUO116
|
USERS = subprocess.check_output('dir C:\\Users /b', shell=True).decode().split("\r\n")[:-1] # noqa: DUO116
|
||||||
|
USERS.remove("Public")
|
||||||
|
|
||||||
STARTUP_FILES_PER_USER = ['\\'.join(SHELL_STARTUP_FILE_PATH_COMPONENTS[:2] +
|
STARTUP_FILES_PER_USER = ['\\'.join(SHELL_STARTUP_FILE_PATH_COMPONENTS[:2] +
|
||||||
[user] +
|
[user] +
|
||||||
|
|
Loading…
Reference in New Issue