Please enable JavaScript.
Coggle requires JavaScript to display documents.
Persistence - Coggle Diagram
Persistence
Powershel Profile
-
-
-
-
Important: Do not run a blocking code say for example downloading a file because the user will not see the PS input prompt till the blocking code executes completely. Instead use workarounds like "Start-Job" cmdlet that will run as a background job
-
Boot and Logon Autostart
-
-
Two Mehcnaisms
Registery Keys
-
HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce this gets deleted automatically after running once
-
Cmds used, reg_set, reg_query, reg_delete
-
Logon Scripts
-
-
can add another value to this key called "UserInitMprLogonScript" and this should contain the path to the program for its automatic execution when user logs in
-
-
-