Posts

System state backup by using Windows Server Backup fails with error: System writer is not found in the backup

  Event ID 517 Takeown /f %windir%\winsxs\temp\PendingRenames /a icacls %windir%\winsxs\temp\PendingRenames /grant "NT AUTHORITY\SYSTEM:(RX)" icacls %windir%\winsxs\temp\PendingRenames /grant "NT Service\trustedinstaller:(F)" icacls %windir%\winsxs\temp\PendingRenames /grant "BUILTIN\Users:(RX)" Takeown /f %windir%\winsxs\filemaps\* /a icacls %windir%\winsxs\filemaps\*.* /grant "NT AUTHORITY\SYSTEM:(RX)" icacls %windir%\winsxs\filemaps\*.* /grant "NT Service\trustedinstaller:(F)" icacls %windir%\winsxs\filemaps\*.* /grant "BUILTIN\Users:(RX)" net stop cryptsvc net start cryptsvc https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/system-writer-not-found-in-backup

slmgr.vbs OS key activation

To view current license status cscript /Nologo "C:\Windows\System32\slmgr.vbs" /dli Manually activate using key cscript c:\windows\system32\slmgr.vbs /ipk  P*************A cscript c:\windows\system32\slmgr.vbs /ato To set to Azure KMS  slmgr.vbs /skms azkms.core.windows.net slmgr.vbs /ato https://learn.microsoft.com/en-us/troubleshoot/windows-server/licensing-and-activation/error-0xc004e015-sl-e-eul-consumption-failed-activate-windows https://learn.microsoft.com/en-us/windows-server/get-started/kms-client-activation-keys?tabs=server2019%2Cwindows1110ltsc%2Cversion1803%2Cwindows81#generic-volume-license-keys

Windows sites - update

 https://www.catalog.update.microsoft.com  http://windowsupdate.microsoft.com http://*.windowsupdate.microsoft.com https://*.windowsupdate.microsoft.com http://*.update.microsoft.com https://*.update.microsoft.com http://*.windowsupdate.com  http://download.windowsupdate.com https://download.microsoft.com http://*.download.windowsupdate.com http://wustat.windows.com  http://ntservicepack.microsoft.com  http://go.microsoft.com  http://dl.delivery.mp.microsoft.com  https://dl.delivery.mp.microsoft.com  http://*.delivery.mp.microsoft.com https://*.delivery.mp.microsoft.com

Time service - time sync issue

 Time service - time sync issue w32tm /monitor w32tm /unregister net stop w32time w32tm /register net start w32time w32tm /config /manualpeerlist:<ntp ip address> /syncfromflags:manual /reliable:yes /update net stop w32time net start w32time then check w32tm /query /source w32tm /query /configuration VMwareToolboxCmd.exe timesync status

Get-process Process cmd

 Get-Process -Id 1684 | Select-Object -Property Name, Path

Script to get LUN with free space on Windows server

 Get-PhysicalDisk | Select-Object FriendlyName, @{Name="Capacity"; Expression={$_.Size/1GB}}, @{Name="FreeSpace"; Expression={($_.Size - $_.AllocatedSize)/1GB}} Get-WmiObject Win32_logicaldisk | Select-Object DeviceID, FreeSpace Get-Disk | Select Manufacturer, SerialNumber, UniqueId

DNS

  DNS scavenging  won't remove static IP addresses that are added manually to a server without a timestamp .  However, if a static record is registered as a dynamic record and then converted to a static record, it can be deleted by scavenging