PowerShell Scripts
PowerShell Script to Restart Computer into Bios Screen
Here’s a PowerShell script to restart a Windows computer and boot directly into the BIOS or UEFI settings. This script leverages the Restart-Computer cmdlet with the appropriate parameter to reboot into the firmware: Explanation: Important Notes: To run this script: This should reboot your system and take you directly to the BIOS or UEFI setup…
Read MorePowerShell Script to Remove ALL Chrome and Edge Browser Extentions
To remove all browser extensions from Google Chrome and Microsoft Edge using PowerShell, we can target the directories where extensions are stored for each browser. Here’s a script that removes the extension folders for both browsers: How it works: Notes:
Read MorePowerShell script to create a new user profile and copy all data from the current profile to the new profile
Here’s a PowerShell script to create a new user profile and copy all data from the current profile to the new profile. This process involves the creation of the new user account, setting permissions, and copying files from the old profile folder to the new one. How the script works: Steps to run: Let me…
Read MorePowerShell Script to Reset Host Files
Here’s a PowerShell script to reset the Windows hosts file to its default state. The hosts file is located at C:\Windows\System32\drivers\etc\hosts and typically contains a default entry for localhost. Steps to run the script: This restores the default hosts file configuration, which typically includes only the localhost entries.
Read MorePowerShell Script to Change Computer’s Name
Here’s a PowerShell script to change a computer’s name: Steps to run the script: This script prompts the user for the new computer name, renames the system, and offers to restart the computer immediately.
Read MorePowerShell script to delete a Windows user account:
Here’s a PowerShell script to delete a Windows user account: Steps to run the script: The script checks if the user exists and deletes the account. If the user doesn’t exist, it will output an error message. Let me know if you need any changes!
Read MorePowerShell Script to Reset Windows Firewall to Default Settings.
Here’s a PowerShell script that resets the Windows Firewall to its default settings: Steps to run the script: Let me know if you’d like to adjust or add any specific configurations!
Read MorePowerShell Script to Uninstall Recent Updates
If you need to uninstall recent Windows updates, you can use PowerShell to manage this task. Here’s a script that helps you find and uninstall recent updates. This script uses the Get-HotFix cmdlet to list installed updates and the wusa.exe command to uninstall specific updates. PowerShell Script to Uninstall Recent Updates How to Use This…
Read MorePowerShell Script to Reset Winsock
To reset Winsock using PowerShell, you can use the netsh command, which is designed for network configuration and troubleshooting. Winsock (Windows Sockets API) controls how Windows programs access network services, so resetting it can resolve network connectivity issues, such as slow speeds or a malfunctioning internet connection. This can be particularly useful if you’re experiencing…
Read MoreUse PowerShell to Get System Summary
To get a summary of your system’s hardware and software configuration using PowerShell, you can use various cmdlets and scripts to gather detailed information. Here’s a PowerShell script that provides a comprehensive system summary, including details about the operating system, processor, memory, disk, and network configuration. PowerShell Script to Get System Summary How to Use…
Read More