Skip to content

Commit

Permalink
Script disables scheduled task creation
Browse files Browse the repository at this point in the history
  • Loading branch information
harishsg993010 authored Jan 8, 2023
1 parent ebde2de commit 911c43f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions block-sctask.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Set the access control list (ACL) for the Scheduled Tasks folder to deny write permissions for all users and programs
$FolderPath = "C:\Windows\System32\Tasks"
icacls $FolderPath /deny *S-1-1-0:(W)

0 comments on commit 911c43f

Please sign in to comment.