Skip to content

Instantly share code, notes, and snippets.

View digudc's full-sized avatar

Digambar Chaudhary digudc

View GitHub Profile
@digudc
digudc / Error-Lookup-Tool-Friendly.bat
Created November 4, 2024 17:21 — forked from ThioJoe/Error-Lookup-Tool-Friendly.bat
Error Lookup Tool Friendly Output
@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.
@digudc
digudc / ManageBrowserExts.ps1
Created September 2, 2024 12:03 — forked from wise-io/ManageBrowserExts.ps1
Manage Chrome & Edge Browser Extensions With PowerShell & Group Policy
<#
.SYNOPSIS
Manages browser extensions through local group policy objects (LGPO).
.DESCRIPTION
This script sets up browser extension allow-listing (whitelisting) though LGPO.
Extensions can be added to the allow list by passing their extension ID via the -ChromeExtIDs or -EdgeExtIDs parameters.
.LINK
Chrome Extension lookup URL: https://chrome.google.com/webstore/detail/[ID]
Edge Extension lookup URL: https://microsoftedge.microsoft.com/addons/detail/[ID]
PolicyFileEditor PowerShell Module: https://github.com/dlwyatt/PolicyFileEditor
@digudc
digudc / ManageBrowsers.ps1
Created September 2, 2024 12:03 — forked from wise-io/ManageBrowsers.ps1
PowerShell Script to Manage Chrome & Edge Settings via Local Group Policy
<#
.SYNOPSIS
Manages browser settings through local group policy objects (LGPO).
.PARAMETER Audit
Outputs a table of the current browser management policies (LGPO). No new polices will be set.
.PARAMETER Reset
Resets all existing browser management policies (LGPO). No new policies will be set.
.PARAMETER SearchEngine
Specify the default search engine. Supported values are 'Google' or 'Bing'.
#>
@digudc
digudc / Remove-HPbloatware.ps1
Created August 30, 2023 15:56 — forked from mark05e/Remove-HPbloatware.ps1
Remove HP bloatware
# ██████╗ ███████╗███╗ ███╗ ██████╗ ██╗ ██╗███████╗ ██╗ ██╗██████╗
# ██╔══██╗██╔════╝████╗ ████║██╔═══██╗██║ ██║██╔════╝ ██║ ██║██╔══██╗
# ██████╔╝█████╗ ██╔████╔██║██║ ██║██║ ██║█████╗ ███████║██████╔╝
# ██╔══██╗██╔══╝ ██║╚██╔╝██║██║ ██║╚██╗ ██╔╝██╔══╝ ██╔══██║██╔═══╝
# ██║ ██║███████╗██║ ╚═╝ ██║╚██████╔╝ ╚████╔╝ ███████╗ ██║ ██║██║
# ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═══╝ ╚══════╝ ╚═╝ ╚═╝╚═╝
#
# ██████╗ ██╗ ██████╗ █████╗ ████████╗██╗ ██╗ █████╗ ██████╗ ███████╗
# ██╔══██╗██║ ██╔═══██╗██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗██╔════╝
# ██████╔╝██║ ██║ ██║███████║ ██║ ██║ █╗ ██║███████║██████╔╝█████╗
@digudc
digudc / Appx-Uninstaller.ps1
Created August 6, 2023 16:27 — forked from ThioJoe/Appx-Uninstaller.ps1
A basic script for uninstalling a list of app packages in Windows 10/11, including those pre-installed with Windows
# A basic script for uninstalling app packages in Windows 10/11, including those pre-installed with Windows
#
# Note: If you get an error about the script not being allowed to run, the below command will change the execution polciy temporarily for one session only:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process
#
# To execute the script, open a Powershell window to the directory with the script and run the following command using your scripts file name (and don't forget the .\ )
# .\WhateverScriptName.ps1
# -------------------------------------------------------------------------------------------
# Script by ThioJoe - https://github.com/ThioJoe
@digudc
digudc / Get-StorageBusType.ps1
Created May 20, 2023 07:42 — forked from guitarrapc/Get-StorageBusType.ps1
Detect is Windows Storage is NVMe, SSD or USB
# Run on Windwos PowerShell or pwsh. Don't needd Administrator Priviledge
# BusType 17 = NVMe, 11 = SATA, 7 = USB. see https://docs.microsoft.com/en-us/previous-versions/windows/desktop/stormgmt/msft-disk
Get-CimInstance -namespace Root\Microsoft\Windows\Storage -class msft_physicaldisk | select FriendlyName, BusType