App | Note | Path |
---|---|---|
VS Code | Global config | $Env:APPDATA\Code\User\Settings.json |
VS Code - Insiders | Global config | $Env:APPDATA\Code - Insiders\User\Settings.json |
VS Code | Extensions Dir | $env:UserProfile\.vscode\extensions |
Wt Preview | see Get-WindowsTerminalProfile.ps1 |
$env:LOCALAPPDATA\Packages\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\LocalState\settings.json |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Show GUI Messagebox | |
.DESCRIPTION | |
Show GUI Messagebox and wait for user input or timeout | |
.PARAMETER Message | |
Message to show | |
.PARAMETER Title | |
Messagebox title | |
.PARAMETER Buttons |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Reset-WindowsUpdate.ps1 - Resets the Windows Update components | |
.DESCRIPTION | |
This script will reset all of the Windows Updates components to DEFAULT SETTINGS. | |
.OUTPUTS | |
Results are printed to the console. Future releases will support outputting to a log file. | |
This file contains hidden or 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
<#V2020.01.27 | |
Updated Script to Create "Operational" Folder and then move newly created Collections there. | |
Borrowed Code from Benoit Lecours | |
Made script pull addtional info dynamic, you shouldn't have to make any environmental chanages for script to work. | |
Script now also creates an "All Workstation" Collection and uses that as the limiting collection, unless one with that name already exist, then uses that. | |
Change the Limiting Collection info by updating: $LimitingCollection | |
You can easily modify the Collection Prefix now by changing these below: | |
$ModelColPrefix = "ModelCol" | |
$ManufacturerColPreFix = "ManufacturerCol" |
This file contains hidden or 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 | |
Title Converter Office 2016 Retail to Volume | |
echo Press Enter to start VL-Conversion... | |
echo. | |
pause | |
echo. | |
for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G |
This file contains hidden or 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
function Save-KBFile { | |
<# | |
.SYNOPSIS | |
Downloads patches from Microsoft | |
.DESCRIPTION | |
Downloads patches from Microsoft | |
.PARAMETER Name | |
The KB name or number. For example, KB4057119 or 4057119. |
This file contains hidden or 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
$Sender = "Trevor Jones" | |
$Message = "Hey buddy - ready for lunch?" | |
$RemoteComputer = "PC001" | |
Function New-ToastNotification { | |
Param($Sender,$Message) | |
# Required parameters | |
$AudioSource = "ms-winsoundevent:Notification.Default" | |
$HeaderFormat = "ImageAndTitle" # Choose from "TitleOnly", "ImageOnly" or "ImageAndTitle" |
This file contains hidden or 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 | |
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | |
@rem *** Disable Some Service *** | |
sc stop DiagTrack | |
sc stop diagnosticshub.standardcollector.service | |
sc stop dmwappushservice | |
sc stop WMPNetworkSvc | |
sc stop WSearch |
This file contains hidden or 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
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### OR take a look at | |
### https://github.com/HotCakeX/Harden-Windows-Security |
This file contains hidden or 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
function Set-WindowState { | |
<# | |
.SYNOPSIS | |
Set the state of a window. | |
.DESCRIPTION | |
Set the state of a window using the `ShowWindowAsync` function from `user32.dll`. | |
.PARAMETER InputObject | |
The process object(s) to set the state of. Can be piped from `Get-Process`. |
NewerOlder