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 All Shell Folder Shortcuts Script (Updated 8/10/2024) | |
# Original source: https://gist.github.com/ThioJoe/16eac0ea7d586c4edba41b454b58b225 | |
# This PowerShell script is designed to find and create shortcuts for all special shell folders in Windows. | |
# These folders can be identified through their unique Class Identifiers (CLSIDs) or by their names. | |
# The script also generates CSV files listing these folders and associated tasks/links. | |
# How to Use: | |
# 1. Open PowerShell and navigate to the path containing this script using the 'cd' command. | |
# 2. Run the following command to allow running scripts for the current session: | |
# Set-ExecutionPolicy -ExecutionPolicy unrestricted -Scope Process |
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
cd\Program Files\Microsoft Office\Office16 | |
cd\Program Files (x86)\Microsoft Office\Office16 | |
cscript OSPP.VBS /sethst:kms.digiboy.ir | |
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
slmgr.vbs /ckms |
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
# NOTE - THIS SCRIPT IS NOW OBSOLETE - SEE MY OTHER REPO FOR A MUCH MORE COMPREHENSIVE TOOL: https://github.com/ThioJoe/Windows-Super-God-Mode | |
# Get All Shell Folder Shortcuts Script (Updated 8/10/2024) | |
# Original source: https://gist.github.com/ThioJoe/16eac0ea7d586c4edba41b454b58b225 | |
# This PowerShell script is designed to find and create shortcuts for all special shell folders in Windows. | |
# These folders can be identified through their unique Class Identifiers (CLSIDs) or by their names. | |
# The script also generates CSV files listing these folders and associated tasks/links. | |
# How to Use: | |
# 1. Open PowerShell and navigate to the path containing this script using the 'cd' command. |
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
# PowerShell script to disable Windows power management on all currently connected serial ports, including USB adapters | |
# In simpler terms, it prevents Windows from turning off connected serial devices to save power. | |
# Equivalent to right-clicking on a serial port device in Device Manager > Properties > "Power Management" Tab > Unchecking "Allow the computer to turn off this device to save power." | |
$hubs = Get-CimInstance -ClassName Win32_SerialPort | Select-Object Name, DeviceID, Description | |
$powerMgmt = Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi | |
foreach ($p in $powerMgmt) { | |
$IN = $p.InstanceName.ToUpper() | |
foreach ($h in $hubs) { |
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
# This PowerShell script finds the icon source for a given file. | |
# It first tries to extract the icon from the associated executable, | |
# and if not found, it looks up the icon in the Windows Registry. | |
# Author: ThioJoe / GitHub.com/ThioJoe | |
param( | |
[string]$initialFilePath # Initial file path parameter for direct execution | |
) | |
# Function to prompt the user for a file path. |
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
@echo off | |
:: Note: Lines beginning with "REM" or :: are comments | |
:: Script by: https://github.com/thiojoe | |
:: Purpose: Creates a much more user friendly output for the Microsoft Error Lookup Tool (err.exe). It parses the original output and modifies the text. | |
:: Usage: Just call the batch file with command prompt along with the error code the same as you would with err.exe | |
:: Example: error.bat 50 | |
:: Recommended to rename this script to something shorter like 'error.bat'. Must be next to the lookup tool exe file. | |
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
cd\Program Files\Microsoft Office\Office16 | |
cd\Program Files (x86)\Microsoft Office\Office16 | |
cscript OSPP.VBS /sethst:kms.digiboy.ir | |
cscript OSPP.VBS /actcscript OSPP.VBS /dstatus | |
slmgr.vbs /ckms |