windows

By rashid, 16 May, 2025

Open PowerShell with admin rights by pressing Win + X and picking “Windows PowerShell (Admin).” Then execute the following command:

$TIC=(Get-ItemProperty 'HKCU:\Control Panel\Desktop' TranscodedImageCache -ErrorAction Stop).TranscodedImageCache [System.Text.Encoding]::Unicode.GetString($TIC) -replace '(.+)([A-Z]:[0-9a-zA-Z\\])+','$2'

Image removed.

 

Tags

By rashid, 22 April, 2025

Press Win + R to open the Run dialog box, then type in eventvwr.msc to open Event Viewer. You can also search for Event Viewer. Then, navigate to Applications and Services Logs > Microsoft > Windows > TerminalServices-RemoteConnectionManager > Operational. Right-click on Operational and choose Filter Current Log. The Event ID of Remote Desktop Services is 1149, so enter 1149 to filter the log.

Tags

By rashid, 17 April, 2025

Windows PowerShell command to install Windows update. First install the PSWinsowsUpdate module by executing the following command.

Install-Module PSWindowsUpdate
Get-WindowsUpdate
Install-WindowsUpdate

Tags

By rashid, 3 May, 2023

There are several command line that are most useful:

  • /s – Shutdown the computer
  • /r – restart computer
  • /m \\computer – Specify the remote computer
  • /l – Log off
  • /t xxx – Set the time out period before shutdown to xxx seconds
  • /c “comment” – Message to display on the screen before restart or shutdown

Now let’s move on to some examples. To restart remote computer (hostname: pc2):

shutdown /r /m \\pc2

To restart remote computer (hostname: pc2) with a custom message:

Tags