{"id":21213840,"url":"https://github.com/kasuken/powershell-utility-scripts","last_synced_at":"2025-09-06T11:43:26.937Z","repository":{"id":263304045,"uuid":"889901881","full_name":"kasuken/PowerShell-Utility-Scripts","owner":"kasuken","description":"This collection includes a variety of useful PowerShell scripts designed to enhance productivity, automate tasks, and optimize system performance. Each script serves a unique purpose, from system cleanup to managing OneDrive storage.","archived":false,"fork":false,"pushed_at":"2024-11-19T12:13:01.000Z","size":25,"stargazers_count":34,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-01T19:46:18.828Z","etag":null,"topics":["powershell","powershell-scripts"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kasuken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-17T14:34:10.000Z","updated_at":"2025-08-29T21:08:56.000Z","dependencies_parsed_at":"2025-04-13T21:52:11.028Z","dependency_job_id":"0cc7610d-a7f7-439f-bf52-13391813e709","html_url":"https://github.com/kasuken/PowerShell-Utility-Scripts","commit_stats":null,"previous_names":["kasuken/powershell-utility-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kasuken/PowerShell-Utility-Scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasuken%2FPowerShell-Utility-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasuken%2FPowerShell-Utility-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasuken%2FPowerShell-Utility-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasuken%2FPowerShell-Utility-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasuken","download_url":"https://codeload.github.com/kasuken/PowerShell-Utility-Scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasuken%2FPowerShell-Utility-Scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273898909,"owners_count":25187732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["powershell","powershell-scripts"],"created_at":"2024-11-20T21:24:16.308Z","updated_at":"2025-09-06T11:43:26.896Z","avatar_url":"https://github.com/kasuken.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell Utility Scripts\n\nWelcome to the **PowerShell Utility Scripts** repository! This collection includes a variety of useful PowerShell scripts designed to enhance productivity, automate tasks, and optimize system performance. Each script serves a unique purpose, from system cleanup to managing OneDrive storage.\n\n---\n\n## 📜 Scripts Included\n\n### 1. **Scheduled System Cleanup**\n**Description**: Cleans up temporary files, empties the recycle bin, and clears browser caches for major browsers (Edge, Chrome, Firefox).  \n**Usage**: Keep your system clean and optimized with a simple execution or schedule.\n\n---\n\n### 2. **Automated Backup of Important Folders**\n**Description**: Copies files from predefined folders (e.g., Documents) to a specified destination (external drive or cloud storage) while preserving folder structure.  \n**Usage**: Ideal for automating regular backups and protecting critical data.\n\n---\n\n### 3. **Manage Startup Apps**\n**Description**: Lists and allows the removal of startup applications from the registry and startup folder.  \n**Usage**: Simplify your boot process and optimize system performance by managing unnecessary startup programs.\n\n---\n\n### 4. **Automated Shutdown or Sleep Mode**\n**Description**: Automatically shuts down, restarts, or puts the system into sleep mode after inactivity or at a scheduled time.  \n**Usage**: Save power and secure your workstation during downtime.\n\n---\n\n### 5. **System Health Check**\n**Description**: Monitors and reports on CPU, RAM, and disk usage, providing a summary of system performance.  \n**Usage**: Use it to keep track of system resource usage or identify performance bottlenecks.\n\n---\n\n### 6. **Empty Clipboard History**\n**Description**: Clears the current clipboard content and removes clipboard history for added security.  \n**Usage**: Protect sensitive data by ensuring clipboard contents are not stored locally.\n\n---\n\n### 7. **Auto-Lock Screen After Inactivity**\n**Description**: Locks the screen after a period of inactivity or at a specified scheduled time.  \n**Usage**: Ideal for enhancing security in shared or unattended environments.\n\n---\n\n### 8. **Remove Local Version from OneDrive**\n**Description**: Removes locally synced OneDrive files, keeping them stored only in the cloud.  \n**Usage**: Free up disk space while keeping your files accessible online.\n\n---\n\n### 9. **Disk Usage Analyzer**\n**Description**: Scans specified directories and generates a report of folder sizes, sorted by size.  \n**Usage**: Quickly identify space-hogging folders to manage disk space effectively.\n\n---\n\n### 10. **Network Speed Test Utility**\n**Description**: Tests network upload and download speeds using a public API and logs results for future comparison.  \n**Usage**: Measure and track your network performance over time.\n\n---\n\n### 11. **Windows Services Manager**\n**Description**: Lists running, stopped, or disabled services and allows users to start, stop, or restart selected services interactively.  \n**Usage**: Manage critical Windows services efficiently.\n\n---\n\n### 12. **Clear Microsoft Teams Cache**\n**Description**: Clear all the cache folders for Microsoft Teams.  \n**Usage**: Needs admnin privileges.\n\n---\n\n## 🚀 How to Use These Scripts\n\n### Running the Scripts\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/PowerShell-Utility-Scripts.git\n   cd PowerShellUtilityScripts\n   ```\n2. Execute the desired script:\n   ```powershell\n   ./ScriptName.ps1\n   ```\n\n---\n\n### Scheduling Scripts with Task Scheduler\nYou can automate the execution of these scripts using Windows Task Scheduler:\n\n1. **Open Task Scheduler**:\n   - Press `Win + R`, type `taskschd.msc`, and press Enter.\n\n2. **Create a New Task**:\n   - Click on `Create Task` in the right-hand menu.\n\n3. **Configure General Settings**:\n   - Provide a name for the task.\n   - Select `Run whether user is logged on or not`.\n   - Check `Run with highest privileges`.\n\n4. **Set the Trigger**:\n   - Add a new trigger (e.g., daily or at a specific time).\n\n5. **Set the Action**:\n   - Choose `Start a Program` and set:\n     - **Program/script**: `powershell.exe`\n     - **Add arguments**: `-ExecutionPolicy Bypass -File \"C:\\Path\\To\\ScriptName.ps1\"`\n\n6. **Save the Task**:\n   - Click OK, and provide your credentials if prompted.\n\nThe script will now run automatically based on the schedule.\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! If you have ideas for new scripts, enhancements, or bug fixes, feel free to:\n\n1. Fork this repository.\n2. Create a new branch for your changes.\n3. Submit a pull request with a detailed explanation.\n\n### Suggestions or Issues?\nOpen an [issue](https://github.com/kasuken/PowerShell-Utility-Scripts/issues) to report bugs or suggest new features.\n\n---\n\n## 📝 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\n## ⭐ Acknowledgments\n\nThank you for using these PowerShell scripts! If you find this repository helpful, please give it a star 🌟 and share it with others.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasuken%2Fpowershell-utility-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasuken%2Fpowershell-utility-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasuken%2Fpowershell-utility-scripts/lists"}