Skip to content

Instantly share code, notes, and snippets.

View noahpeltier's full-sized avatar

TismaticTech noahpeltier

View GitHub Profile
@aromig
aromig / dsquery_all_attr.cmd
Last active December 3, 2019 11:36
dsquery - list all attributes for a user
dsquery * "OU=User Accounts,DC=your,DC=domain,DC=com" -filter "(samaccountname=USER)" -attr *
@SmugZombie
SmugZombie / FixOnedrive.bat
Created September 16, 2016 17:30
Fixes OneDrive Credential Issues after Password Change
@echo off
REM Carlos script to fix OneDrive
REM Used to fix OneDrive after a password change
REM to verify saved creds are deleted: rundll32.exe keymgr.dll, KRShowKeyMgr
echo.
echo Open Excel, Word, and signout from your Office 365 Account, then continue
echo.
pause
REM Carlos script to fix OneDrive
REM to verify saved creds are deleted: rundll32.exe keymgr.dll, KRShowKeyMgr
@Sp5rky
Sp5rky / wingetinstall.ps1
Created October 7, 2023 00:32
Winget Installation
# Fetch the URI of the latest version of the winget-cli from GitHub releases
$latestWingetMsixBundleUri = $(Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object { $_.EndsWith('.msixbundle') }
# Extract the name of the .msixbundle file from the URI
$latestWingetMsixBundle = $latestWingetMsixBundleUri.Split('/')[-1]
# Show a progress message for the first download step
Write-Progress -Activity 'Installing Winget CLI' -Status 'Downloading Step 1 of 2'
# Temporarily set the ProgressPreference variable to SilentlyContinue to suppress progress bars