Translate

Sunday, September 27, 2026

How to fix corrupted Microsoft login on a EntraID joined device

 Run the command below in an administrative PowerShell window and have the user login again

dsregcmd /forcerecovery

Sunday, September 20, 2026

How to Repair Microsoft Windows 10 & 11 with DISM and a Mounted ISO file

  1. Download ISO from Microsoft
  2. Mount ISO with this command in Powershell
    powershell -command “Mount-DiskImage -ImagePath 'C:\path\to\file.iso'”
  3. Run this command in PowerShell to get the Number for correct OS type needed in step 4
    DISM /Get-WimInfo /WimFile:X:\sources\install.wim

  4. Run this command in PowerShell replacing X with the drive letter of mounted ISO and # with number from step 3
    DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:X:\sources\install.wim:# /LimitAccess

  5. After previous command has completed run this command in Powershell
    powershell -command "Dismount-DiskImage -ImagePath 'C:\path\to\file.iso'

Tuesday, January 14, 2025

How To add an AzureAD, EntraID or Active Directory user to the Local Administrators Group via CMD

  1. First login and then out as the user you want to make an administrator if they have never logged into the device before
  2. Login as a Local admin on the device
  3. Open Command Prompt as an Administrator and run the command bellow
    "net localgroup administrators AzureAD\JohnDoe /add"
  • make sure to change AzureAD to the AD Domain name if Applicable
  • make sure to change JohnDoe to the name of the user in the Users folder (Example: C:/users)

How to check installed software versions via Powershell

 Get installed software list with Get-WmiObject

Run the command below in Powershell:
Get-WmiObject -Class Win32_Product

Get installed software from querying the registry for installed software

Run the command below in Powershell (Local Machine Registry):
$InstalledSoftware = Get-ChildItem "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall"
foreach($obj in $InstalledSoftware){write-host $obj.GetValue('DisplayName') -NoNewline; write-host " - " -NoNewline; write-host $obj.GetValue('DisplayVersion')}

Run the command below in Powershell for (Current User Registry):

 $InstalledSoftware = Get-ChildItem "HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall" foreach($obj in $InstalledSoftware){write-host $obj.GetValue('DisplayName') -NoNewline; write-host " - " -NoNewline; write-host $obj.GetValue('DisplayVersion')}

 

How to Fix Send As not working for user on shared mailbox. Error code: 0x80070005-0x000004dc-0x00000524

  1. Close Outlook
  1. Deleting the user's Outlook offline address book - all the folders in here - "%localappdata%\Microsoft\Outlook\Offline Address Books"
  1. Adding this registry key - “HKCU:\SOFTWARE\Microsoft\Office\16.0\Outlook\Cached Mode” DWORD "DownloadOAB" and give it a value of 0
  1. Re-open Outlook