A collection of PowerShell scripts for system administration, security monitoring, and maintenance tasks.
Manage-FirewallRules.ps1- Manage Windows Firewall rules (list, add, remove) with support for multiple protocols and profilesCheck-SecurityEventLogs.ps1- Search and analyze Security event logs with filtering and export capabilitiesMonitor-SystemResources.ps1- Real-time system resource monitoring with customizable thresholds and alertsCheck-SuspiciousProcesses.ps1- Detect potentially malicious processesCheck-SuspiciousScheduledTasks.ps1- Identify suspicious scheduled tasksCheck-LocalSecurityPolicy.ps1- Audit local security policy settingsCheck-PasswordPolicy.ps1- Verify password policy complianceCheck-SMBShareSecurity.ps1- Audit SMB share security settingsDetect-PhishingDomains.ps1- Check domains against known phishing listsCollect-WindowsForensicArtifacts.ps1- Collect forensic artifacts for investigation
ManageService.ps1- Manage Windows servicesManage-ScheduledTask.ps1- Create and manage scheduled tasksManage-BITS.ps1- Manage Background Intelligent Transfer ServiceManage-EnvVars.ps1- Manage environment variablesGet-SystemInfo.ps1- Collect comprehensive system informationGet-InstalledSoftware.ps1- List installed softwareGet-LocalUserAccounts.ps1- List and manage local user accountsGet-NetworkConfig.ps1- Display network configurationGet-DiskUsage.ps1- Analyze disk usageGet-EventLogErrors.ps1- Retrieve error events from logs
Test-SiteStatus.ps1- Check website availability and response timesGet-WebsiteContent.ps1- Retrieve and parse website contentInvoke-ApiRequest.ps1- Make API requests with error handlingGet-RssFeed.ps1- Parse and display RSS feedsTest-NetworkConnectivity.ps1- Comprehensive network connectivity testing
AD_AccountReport.ps1- Generate Active Directory account reportsEnumerate-LocalAdminGroup.ps1- List local administrator group members
Check-WeakRegistrySettings.ps1- Identify weak registry security settingsAnalyze-WebConfigFiles.ps1- Analyze web.config files for security issuesArchive-SecurityLog.ps1- Archive and compress security logs
Each script includes detailed documentation in its header section. To view the documentation for any script, use:
Get-Help .\ScriptName.ps1 -Detailed- Windows PowerShell 5.1 or PowerShell Core 7+
- Administrative privileges for most scripts
- Windows 10/11 or Windows Server 2016/2019/2022
- Clone this repository:
git clone https://github.com/1B05H1N/ps-scripts.git- Navigate to the scripts directory:
cd ps-scripts/scripts- Run any script with appropriate parameters:
.\ScriptName.ps1 -Parameter ValueFeel free to submit issues, fork the repository, and create pull requests for any improvements.
This project is licensed under the MIT License - see the LICENSE file for details.