Based on http://gettingthingsdone.com/wp-content/uploads/2014/10/Mind_Sweep_Trigger_List.pdf
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
| <# | |
| .SYNOPSIS | |
| Script is designed to test if Sophos Endoint Protection is installed and proceed with uninstall. | |
| .DESCRIPTION | |
| Uninstall Sophos Endpoint Protection. | |
| .INPUTS | |
| none |
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
| function Set-NamecheapDdnsRecord { | |
| <# | |
| .SYNOPSIS | |
| Update the IP address of a Dynamic DNS record in Namecheap. | |
| .EXAMPLE | |
| PS C:\> Set-NamecheapDdnsRecord -HostRecord www -Domain brianmorrison.me -ApiKey 12345678abcd -Ip 123.234.123.234 | |
| Updates the record for www.brianmorrison.me to 123.234.123.234 | |
| .NOTES | |
| Author: Brian Morrison II | |
| Date: 4/10/2019 |
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
| Import-Module ActiveDirectory | |
| #------------------------------- | |
| # FIND EMPTY GROUPS | |
| #------------------------------- | |
| # Get empty AD Groups within a specific OU | |
| $Groups = Get-ADGroup -Filter { Members -notlike "*" } -SearchBase "OU=GROUPS,DC=testlab,DC=com" | Select-Object Name, GroupCategory, DistinguishedName | |
| #------------------------------- |
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
| Import-Module ActiveDirectory | |
| # Set the number of days since last logon | |
| $DaysInactive = 90 | |
| $InactiveDate = (Get-Date).Adddays(-($DaysInactive)) | |
| #------------------------------- | |
| # FIND INACTIVE COMPUTERS | |
| #------------------------------- | |
| # Below are three options to find inactive computers. Select the one that is most appropriate for your requirements: |
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
| Import-Module ActiveDirectory | |
| # Set the number of days since last logon | |
| $DaysInactive = 90 | |
| $InactiveDate = (Get-Date).Adddays(-($DaysInactive)) | |
| #------------------------------- | |
| # FIND INACTIVE USERS | |
| #------------------------------- | |
| # Below are four options to find inactive users. Select the one that is most appropriate for your requirements: |
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
| #!/usr/bin/env python2.7 | |
| from __future__ import print_function | |
| from __future__ import unicode_literals | |
| # System imports | |
| import string | |
| import sh | |
| import re | |
| import sys |