However, the ability to script a fix via PowerShell for this specific path saves thousands of helpdesk tickets annually: Remove-Item -Path "HKCU:\Software\Microsoft\Office\16.0\Common\Identity" -Recurse -Force
Get-ItemProperty -Path "HKCU:\Software\Microsoft\Office\16.0\Common\Identity" -Name "LastLoggedInUser" -ErrorAction SilentlyContinue However, the ability to script a fix via
$path = "HKCU:\Software\Microsoft\Office\16.0\Common\Identity\Identities" Get-ChildItem -Path $path | ForEach-Object Get-ItemProperty -Path $_.PSPath However, the ability to script a fix via
However, the ability to script a fix via PowerShell for this specific path saves thousands of helpdesk tickets annually: Remove-Item -Path "HKCU:\Software\Microsoft\Office\16.0\Common\Identity" -Recurse -Force
Get-ItemProperty -Path "HKCU:\Software\Microsoft\Office\16.0\Common\Identity" -Name "LastLoggedInUser" -ErrorAction SilentlyContinue
$path = "HKCU:\Software\Microsoft\Office\16.0\Common\Identity\Identities" Get-ChildItem -Path $path | ForEach-Object Get-ItemProperty -Path $_.PSPath