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
# aws-user-CloudTrail-report-all-aws-regions.ps1 | |
<# | |
Description: Pull the AWS cloud trail activity for selected users, does this accross all AWS Regions. Exports to a CSV file. | |
Written: Ed Walsh | |
PowerShell.Core tested: Yes | |
Version: 1.0.0 | |
Create Date : 5/30/2024 | |
Revised Date: 5/30/2024 | |
#> | |
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
# Azure-create-all-bicep-files-environment.ps1 | |
<# | |
Description: For Azure, creates all the Bicep files for an existing Azure Subscription, and exports to a folder. | |
Edited by: Ed Walsh | |
PowerShell.Core tested: Yes | |
MS-Graph: No | |
Version: 1.0.0 | |
Create Date: 5/28/2024 | |
Revised Date: 5/28/2024 | |
#> |
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
# Azure-FireWall-Status-Inventory.ps1 | |
<# | |
Description: For Azure, get inventory of running Windows servers and status of the three Firewall Profiles. | |
Edited by: Ed Walsh | |
PowerShell.Core tested: Yes | |
MS-Graph: No | |
Version: 1.0.0 | |
Create Date: 4/23/2024 | |
Revised Date: 4/23/2024 | |
#> |
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
# Azure-Recovery-Point-Inventory.ps1 | |
<# | |
Description: For Azure, get inventory of Recovery Point Backups showing Earliest and Latest and count of Recovery Points. | |
Edited by: Ed Walsh | |
PowerShell.Core tested: Yes | |
MS-Graph: No | |
Version: 1.0.0 | |
Create Date: 4/22/2024 | |
Revised Date: 4/22/2024 | |
#> |
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
# Azure-backup-Inventory.ps1 | |
<# | |
Description: For Azure, get inventory of backups for all Subscriptions. Saved to a CSV file. | |
Original: https://stackoverflow.com/a/63116991/9776353 | |
Edited by: Ed Walsh | |
PowerShell.Core tested: Yes | |
MS-Graph: No | |
Version: 1.0.0 | |
Create Date: 4/15/2024 | |
Revised Date: 4/15/2024 |
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
# Get-hotfix-installed-for-list-of-servers.ps1 | |
<# | |
Description: This will pull a list of installed patches using Get-Hotfix cmdlt for a list of servers. And export out to an Excel file. | |
Requires the Module ImportExcel to be installed and imported. | |
Written: Ed Walsh | |
PowerShell.Core tested: Yes | |
MS-Graph: No | |
Version: 1.0.0 | |
Create Date: 3/19/2024 | |
Revised Date: 3/19/2024 |
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
#list-all-windows-servers-last-date-patched.ps1 | |
#Use to pull a list of running servers (Windows and/or Linux depending on what you select in $Filters) removing any that are not in AD and are associated to WORKGROUP. | |
$stopWatch = [System.Diagnostics.Stopwatch]::StartNew() | |
$stopwatch.Start() | |
$stopWatch2 = [System.Diagnostics.Stopwatch]::StartNew() | |
$stopwatch2.Start() | |
Import-Module -name AWSPowershell | |
$Servers = @() |
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
# aws-ec2-snapshot-count-aged-out-and-totalvolume.ps1 | |
<# | |
Description: Get the count of Snapshots for an AWS account, along with count over set days old, and what is oldest date of snapshot and total Snapshot Volume. | |
This WILL NOT delete anything, it is just informational on snapshot counts and aged out counts. | |
Written: Ed Walsh | |
PowerShell.Core tested: Yes | |
MS-Graph: No | |
Version: 1.2.1 | |
Create Date: 12/9/2020 | |
Revised Date: 2/6/2024 |
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
#Pull list of installed Windows Patches on a server. | |
# This pulls more patches installed than Get-HotFix does. | |
##Check if c:\temp exists, if it doesnt create it. | |
If(-not(Test-Path -Path "c:\temp")) | |
{New-Item -ItemType Directory -Force -Path C:\temp} | |
# | |
#RegEx to pull the KB number from the Title field. | |
$regex = "(KB.[0-9]*)" | |
$hostname = Hostname | |
$Session = New-Object -ComObject "Microsoft.Update.Session" |
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
# azure-vm-detail-inventory.ps1 | |
<# | |
Description: Pull all VM's for an Azure Subscription, includes details. | |
Written: Ed Walsh | |
PowerShell.Core tested: Tested | |
Version: 1.3 | |
Create Date : 12/15/2023 | |
Revised Date: 3/22/2024 | |
#> | |
#Install-Module only needed once to install the Modules. |
NewerOlder