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
dsquery * "OU=User Accounts,DC=your,DC=domain,DC=com" -filter "(samaccountname=USER)" -attr * |
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 | |
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 |
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
# 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 |