This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Get a list of posts from reddit.com/r/sysadmin front page | |
| $posts = Invoke-RestMethod 'https://www.reddit.com/r/sysadmin/.json' | |
| # Get the URL for the patch tuesday megathread | |
| $megathread = $posts.data.children.data.Where{$_.title -like '*Patch Tuesday Megathread*'} | |
| $megathreadUrl = $megathread.Url | |
| # Get the comments of the megathread | |
| $comments = Invoke-RestMethod "$megathreadUrl.json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |