{"id":22147624,"url":"https://github.com/ikkxeer/powershell-useful-scripts","last_synced_at":"2025-06-17T02:38:50.945Z","repository":{"id":247901174,"uuid":"827177314","full_name":"ikkxeer/Powershell-Useful-Scripts","owner":"ikkxeer","description":"Multitasking scripts, with different useful uses at the administration level, personal use and development","archived":false,"fork":false,"pushed_at":"2024-08-02T11:38:28.000Z","size":214,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:32:40.452Z","etag":null,"topics":["automate","maitenance","network","powershell","scripts","servermanager"],"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/ikkxeer.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}},"created_at":"2024-07-11T06:41:59.000Z","updated_at":"2024-08-02T11:38:31.000Z","dependencies_parsed_at":"2025-01-29T17:41:24.282Z","dependency_job_id":"727cea41-56f0-4f28-a315-b82eb916fd9f","html_url":"https://github.com/ikkxeer/Powershell-Useful-Scripts","commit_stats":null,"previous_names":["ikkxeer/powershell-useful-commands","ikkxeer/powershell-useful-scripts"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ikkxeer/Powershell-Useful-Scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkxeer%2FPowershell-Useful-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkxeer%2FPowershell-Useful-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkxeer%2FPowershell-Useful-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkxeer%2FPowershell-Useful-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ikkxeer","download_url":"https://codeload.github.com/ikkxeer/Powershell-Useful-Scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ikkxeer%2FPowershell-Useful-Scripts/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260278947,"owners_count":22985374,"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","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":["automate","maitenance","network","powershell","scripts","servermanager"],"created_at":"2024-12-01T23:19:18.342Z","updated_at":"2025-06-17T02:38:50.925Z","avatar_url":"https://github.com/ikkxeer.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/0003520a-7e90-4c5f-8ef9-ff708c0db620\" alt=\"Powershell Useful Scripts logo\" height=\"300\" width=\"300\"\u003e\n\u003c/div\u003e\n\u003ch1 align=\"center\"\u003ePowershell Useful Scripts\u003c/h1\u003e\nRepository of small scripts that can be used for specific tasks such as Networking, automation, file conversion, server administration and more.\n\n## Main objectives\nThe main goal of the project is to create a well-organized repository with tools that empower and help both system administrators and PowerShell developers. I also value continuous learning and knowledge sharing, so I would appreciate any feedback or ideas that would support the project.\n\n## Available Scripts\n\n### Apps Administration\n- **Hide-MicrosoftStore.ps1**: Hide Microsoft Store for local user.\n- **Show-MicrosoftStore.ps1**: Show Microsoft Store for local user.\n- **Remove-ListApps.ps1**: Uninstalls the current user's applications from the defined list.\n  - **Requirements**: Winget.\n\n### Server Administration\n- **Add-SvManager.ps1**: Adds servers to Server Manager, formats the XML document before adding the server, and saves the changes.\n- **Get-SvManager.ps1**: Retrieves and organizes the servers added to Server Manager, displaying information such as status and the date of the last update.\n\n### Backup and Cleanup\n- **BackupFiles.ps1**: Creates a backup of important installers from one location to another.\n- **Clean-Temp.ps1**: Cleans temporary files from assigned folders.\n- **Optimize-Register.ps1**: Cleans the Windows Registry for proper system and component operation.\n- **Remove-Secure.ps1**: Deletes a file so that it is untraceable by file recovery software.\n\n### File Conversion\n- **Convert-Image-To-PDF.ps1**: Converts image files (.bmp, .jpg, .jpeg, .png, .gif, .tiff, .ico) to PDF files.\n- **Convert-VHDX-To-Qcow2.ps1**: Converts .vhdx files to .qcow2 files.\n- **Convert-Docx-To-PDF.ps1**: Exports .docx files to PDF files. \n  - **Requirements**: Word Application.\n- **Convert-PDF-To-Docx.ps1**: Exports PDF files to .docx files.\n  - **Requirements**: Word Application.\n- **Convert-Docx-To-HTML.ps1**: Converts .docx files to HTML files.\n  - **Requirements**: Word Application.\n- **Convert-HTML-To-Docx.ps1**: Converts HTML files to .docx files.\n  - **Requirements**: Word Application.\n- **Convert-Video-To-MP4.ps1**: Converts video files to MP4 format.\n\n### Security and Passwords\n- **Decrypt-Password.ps1**: Decrypts a password stored in \".\\Password.txt\" and outputs the result in clear text.\n- **Encrypt-Password.ps1**: Encrypts a password provided through input and saves it encrypted in a \".\\Password.txt\" file.\n\n### System Information\n- **Get-ActiveUsersReport.ps1**: Saves a report of active users into an \"ActiveUsersReport.txt\" file.\n- **Get-HW.ps1**: Discovers and organizes information about the hardware of the specific computer.\n- **Get-CPU-Temp.ps1**: Prints the CPU temperature in Celsius on the terminal.\n- **Get-Disk-Temp.ps1**: Prints the disk temperatures in Celsius on the terminal.\n- **Get-HighResourcesProcess.ps1**: Prints the top 10 processes with the highest CPU consumption in an orderly manner.\n- **Get-VolumeInfo.ps1**: Lists and selects volumes to review their main characteristics in an organized and clear manner.\n- **Verify-SystemFiles.ps1**: Checks and repairs system files using the sfc /scannow command.\n\n### Network and Connectivity\n- **Get-IPReport.ps1**: Generates a detailed report of the current device's IP information, including public IP, private IP, subnet mask, address family, and MAC address.\n- **Monitor-Website.ps1**: Monitors a specific web URL with a customizable interval, providing details about the date and time.\n- **Test-Latency.ps1**: Generates a report of the current device latency by setting six targets (Google, Cloudflare, OpenDNS, Verizon DNS, AWS, Microsoft Azure).\n- **Remote-Connection.ps1**: Enable Powershell Remote and connect to a computer with requested credentials computer name, username and password.\n- **Enable-RDP.ps1**: Enable RDP in a computer.\n- **Get-OpenPorts.ps1**: Prints a list of open ports to the console.\n- **Verify-IPConnections.ps1**: Verify connections with defined IPs.\n- **Scan-IPPorts.ps1**: Scan specific ports of a defined IP.\n- **Monitor-Networking.ps1**: Monitor Network bandwidth.\n- **Get-OpenPorts.ps1**: Generates a report of the current open ports.\n- **Get-IPInfo.ps1**: Generates a report of the current used IP properties.\n- **Get-ArpTable.ps1**: Generate a report of ARP Table.\n\n### Updates and Synchronization\n- **Get-SoftwareUpdates.ps1**: Checks for and installs pending software updates on the system.\n- **Sincronize-NTP.ps1**: Synchronizes the system's NTP server with the following parameters:\n  - **Wait**: Time to wait before executing the NTP server synchronization (in seconds).\n  - **Confirm**: Ask for confirmation before executing the command.\n- **Update-MSEdge.ps1**: Forces Microsoft Edge to update to the latest available version.\n\n### Compression and Formatting\n- **UltraCompress-File.ps1**: Compresses the specified file to a .zip with the highest compression allowed in PowerShell.\n- **Format-XML.ps1**: Formats an XML document to make it easier to view, with file selection functionality using the file explorer.\n- **Extract-Files.ps1**: Extracts files from a specified archive (e.g., .zip, .rar) to a target directory.\n\n### Apps Administration\n- **Remove-ListApps.ps1**: Script template to delete custom application list.\n- **Hide-MicrosoftStore.ps1**: Hide Microsoft Store by uninstalling it.\n- **Show-MicrosoftStore.ps1**: Reinstall and show again Microsoft Store.\n\n### Windows Personalization and Configuration\n- **Enable-AutoTray.ps1**: Enable autotray in **Windows 10 and Windows 11**, that is, it shows all system tray icons on the taskbar\n- **Set-ColorTheme.ps1**: Allows you to decide between light or dark theme and apply it to the system\n- **Change-IconSize.ps1**: Change the size of icons on the desktop and in File Explorer.\n- **Change-SystemLanguage.ps1**: Change the system language settings.\n- **Disable-BackgroundApps.ps1**: Disable background apps to improve performance.\n- **Disable-Cortana.ps1**: Disable Cortana, the virtual assistant.\n- **Disable-GameBar.ps1**: Disable the Game Bar for gaming features.\n- **Disable-GetEvenMoreOut.ps1**: Disable \"Get Even More Out\" suggestions.\n- **Enable-SyncTime.ps1**: Enable synchronization of system time with an internet time server.\n- **Mute-Windows.ps1**: Mute all system sounds on Windows.\n\n## How to Use\n\n1. Run PowerShell.\n      \u003e It is recommended to use the latest version of Powershell available.\n\n2. Locate the path where the scripts you want to run are located.\n\n   ```powershell\n   Set-Location -Path \"path\\to\\repository\\folder\"\n   ```\n   \n3. Run the script you want to use.\n\n   **Example:**\n   ```powershell\n   .\\Test-Latency.ps1\n    ```\n\n## Common problems\n\n- **AccessDenied**\n  - Solution: Run Powershell as administrator\n    \n    ```powershell\n    if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] \"Administrator\"))  \n    {  \n      $arguments = \"\u0026 '\" +$myinvocation.mycommand.definition + \"'\"\n      Start-Process powershell.exe -Verb runAs -ArgumentList $arguments\n      Break\n    }\n    ```\n\n- **Running scripts is disabled on this system**\n  - Solution: Change Execution Policy\n    ```powershell\n    Set-ExecutionPolicy Unrestricted # Recommended for personal use\n    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine\n    Set-ExecutionPolicy Bypass\n    ```\n\n    For more information about:\n    \n    [Set-ExecutionPolicy](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-7.4)\n\n- **Module or Assembly not found**\n  - Description: This error indicates that the script is trying to load a module or assembly that is not installed on your system.\n  - **Solution**: Install the required module or assembly. For example, to install a missing PowerShell module:\n    ```powershell\n    Install-Module -Name ModuleName\n    ```\n\n    ```powershell\n    Add-Type -AssemblyName \"AssemblyName\"\n    ```\n\n- **Syntax Errors**\n  - Description: These errors occur due to incorrect syntax or commands in the script.\n  - Solution: Review the script for syntax errors and ensure commands are correctly written and used.\n\n## License\n\nThis project is licensed under the MIT License. Consult the file [LICENSE](LICENSE) for more details.\n\n## Contributing\nContributions to enhance the repository or address issues are welcome. Please open a GitHub issue or submit a pull request.\n\n## Author\n\nThese scripts were created by ``Ikkxeer``\n\nFor any inquiries or issues, please contact @ikkxeer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikkxeer%2Fpowershell-useful-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fikkxeer%2Fpowershell-useful-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fikkxeer%2Fpowershell-useful-scripts/lists"}