This file contains 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
#ssl-cert-scan-inventory-IIS-servers.ps1 | |
<# | |
Description: Pull ALL ssl certs installed on all Windows servers for a full inventory of installed SSL Certificates. | |
Written: Ed Walsh | |
PowerShell.Core tested: No |
This file contains 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
#ec2-snapshots-full-inventory.ps1 | |
#This will pull an inventory of all snapshots for all EBS volumes attached to an EC2 Instance. | |
#Can take wildcard to pull in all EC2 instances in all regions, or an EC2 Tag:NAME value to look for only one EC2 across all regions. | |
#Scans all AWS Regions. | |
# original from: https://matthewdavis111.com/powershell/ec2-latest-snapshots-of-attached-volumes/ | |
#Altered to fit needs. | |
#Altered by: Ed Walsh | |
#Originally Modified: 01/20/2021 | |
#Edited: 06/24/2021 | |
# |
This file contains 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
#ALB-Detail.ps1 | |
#This will give Application Load Balancer details, list all Target Groups and Instances associated to them. | |
#It works, but I am adding some new features, like cross-region scanning, so consider this a work in progress for now. | |
#Created Dtae; 6/25/2021 | |
#Modified Date: 6/25/2021 | |
#Created by: Ed Walsh | |
$out = @() | |
$o = "" |
This file contains 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
#search_rt53_entries_for_IP.ps1 | |
#Enter in the IP, CNAME, or a wildcard search string in $iplist to look in ALL Route 53 Hosted Zones. | |
#Version: 1.5 | |
#Date Created: 10/19/2020 | |
#Date Updated: 9/14/2022 | |
#Created: Ed Walsh | |
# | |
# | |
#Use this to check PoSh version and save to correct location for cvs outputs. | |
$timestamp = get-date -format yyyyMMddHHmmss |
This file contains 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
#web-binding-formated.ps1 | |
#Formats the IIS Website bindings to a more human readable format. | |
Get-WebBinding | ForEach-Object { | |
$name = $_.ItemXPath -replace '(?:.*?)name=''([^'']*)(?:.*)', '$1' | |
$Server = $env:COMPUTERNAME | |
New-Object psobject -Property @{ | |
Server = $server | |
Name = $name | |
Protocol = $_.protocol | |
Port = $_.bindinginformation.Split(":")[-2] |
This file contains 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
#This will get all of the Computers in an AD, and display the Server name, the Distinguished Name and the Groups the computer is a Member of. (groups they are in) | |
((Get-ADComputer -Filter *).samaccountname).trimend("$") | Get-ADComputer -Properties memberOf | Select-Object -Property @{N= "Name";E= {($_.samaccountname).trimend("$")}}, @{N= "Distinguished_Name";E= {$_.DistinguishedName}}, @{N= "Groups";E={$_.Memberof}} | Sort Name | Out-GridView |
This file contains 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
#IIS-web_site-and-app-details.ps1 | |
#Pulls IIS Website and Web Application details from a list of servers. | |
#Version 1.0 | |
#Created: 8/17/2021 | |
#Modified: 8/17/2021 | |
#Created by: Ed Walsh | |
#Sets up file path depending on OS this is run on. Should save to Documents or Home folder. And should run on PowerShell Core. | |
$timestamp = get-date -format yyyyMMddHHmmss | |
$subfolder = if (($PSVersionTable.PSEdition) -eq "Core") { if ( $True -eq $iswindows ) { "\Documents\" } Else { "" } } Else { "\Documents\" } |
This file contains 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
# inventory-of-Windows-Scheduled-Task-in-AWS.ps1 | |
<# | |
Description: Run across all running Windows Instances across all Regions in AWS and pull in the Scheduled Task /Task Scheduler info from Task Path \ | |
Written: Ed Walsh | |
PowerShell.Core tested: Not Tested | |
Version: 1.3 | |
Create Date: 09/30/2021 | |
Revised Date: 11/02/2022 | |
#> |
This file contains 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
# PowerShell Module Dependency check. | |
# | |
$modulename = "SqlServer" #PowerShell Module Dependency to check | |
if(-not(Get-Module -name $modulename)) | |
{ | |
if(Get-Module -ListAvailable | | |
Where-Object { $_.name -eq $modulename }) | |
{ | |
Import-Module -Name $modulename | |
$true |
This file contains 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
# eventlog_S3_backup_purge.ps1 | |
<# | |
Description: Backup and clear EventLogs and move to an AWS S3 Bucket. Keeps the last XX days of backups locally. | |
Written: Ed Walsh | |
PowerShell.Core tested: Not Tested | |
Version: 1.0.0 | |
Create Date: 10/6/2021 | |
Revised Date: 10/6/2021 | |
#> | |
# |
OlderNewer