If you need to export all available Windows Event Logs, especially in the Windows Server Core edition (without GUI), you can utilize this PowerShell script:
Continue readingCategory Archives: Microsoft
Port 80 is being used by SYSTEM (PID 4)
If your application can’t start anymore on port 80 or you see HTTP Error 404. The requested resource is not found. it looks like http.sys placed reservation of port 80 and your application can’t start anymore.
In most cases this could happen after Windows Update or SCCM agent pushing updates and the agent won’t do the proper cleanup of reserved HTTP namespace.
Continue readingSet LocalAccountTokenFilterPolicy to 1 via PowerShell
Ansible/Packer over WinRM can experience UAC Elevated rights issues if logged over the network.
To fix the issue:
Powershell – Measure-Object is not exact because of rounding/flooring
In case you want to get maximal value without rounding/flooring – to be exact you should not use Measure-Object. You need to enumerate array (which is also faster).
Example:
Prevent waking up from sleep Windows 10
If you experience your Windows 10 machine wakes up from sleep you can disable this behavior following this manual.
How to activate Windows Server 2012 R2 by phone
In case your Windows Server 2012/R2 does not have access to the internet to verify MAK key you will need to do phone activation. Unfortunately you can’t do this so easily via GUI. But via CMD you can.