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 the current directory | |
$currentDir = Get-Location | |
# Prompt the user for a filename to save the results | |
$filename = Read-Host -Prompt "Enter the filename to save the results (e.g., output.csv)" | |
# Use an ArrayList for more efficient data collection | |
$results = New-Object System.Collections.ArrayList | |
# Hashtable to store folder sizes and file counts |
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
logarchiver.plx -t -d 15 |
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
New-NetFirewallRule -Name Allow_Syslog -DisplayName "Allow Syslog" -Description "Allows inbound syslog port 514" -Protocol UDP -Enabled True -Profile Any -Action Allow |
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
' TMG Enterprise and Array Configuration Backup Script | |
' | |
' Purpose: The Script exports the Enterprise and Array configuration as a backup | |
' Changes Required: Specify a custom password, comment and backup location. Save the script as AutoExportEnterprise.vbs. | |
' Usage: Execute the scrip on the EMS server with the following command | |
' cscript AutoExportEnterprise.vbs | |
' | |
' ********** Supplied by @FastVue / @WebSpy / @FixMyITSystem / @JasonJonesUK / @RichardHicks ********** | |
' | |
' ---------------------------------------------------------------------------------------- |
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
' TMG Array Configuration Backup Script | |
' | |
' Purpose: The Script exports the Array configuration as a backup | |
' Changes Required: Specify a custom password, comment and backup location. Save as AutoExportArray.vbs. | |
' Usage: Execute the scrip on the TMG server with the following command | |
' cscript AutoExportArray.vbs | |
' | |
' ********** Supplied by @Fastvue / @WebSpy / @FixMyITSystem / @JasonJonesUK / @RichardHicks ********** | |
' | |
' ---------------------------------------------------------------------------------------- |