These days I needed to be able to check on the execution of a repetitive task. If I would use linux I could use the watch command but I am a Windows guy. So I came up with an alternative – I created a bat file with the below content: To change the duration...
Finding the WSUS server from which updates are downloaded
Open an administrative command prompt and type: Reg query „HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate” /s |findstr „WUServer” The result is something like below: WUServer REG_SZ http://wsusservername.domain.comUseWUServer REG_DWORD 0x1 Done!
Cool study about cybersecurity trends
Stumbled across a very interesting study “Considerations on Challenges and Future Directions in Cybersecurity” by the National CyberInt and CERT-RO organizations. It can be accessed here: https://cert.ro/doc/CybersecurityRO2019.pdf Take time to read it as it is quite detailed and very long.
Lab building tool
Hi All, I would like to recommend a tool for building labs quickly – WSLAB. You can download it here https://github.com/microsoft/WSLab
Setting the IP address in Windows recovery mode
I had to restore a server and when trying to get to the network to access the backup I had an error saying there was no IP address. I tried running name="Local Area Connection" static IPAddress subnet mask gateway but I received an error: unknown connection. To fix this we need to first run...
Hyper-V Updating Integration components for Windows Server 2016
The way to do things before was painful – you had to use Windows Update to update the VMGuest.ISO which then you had to mount inside the guest and run the update from the VMGuest.ISO and reboot the VM. This had to be done manually on each VM. You could use System Center Virtual...
PowerShell – Finding AV definitions update for McAfee
I had a customer where we had to find which is the last update time of the AV definitions files for the McAfee but did not had access to the orchestrator console. The script will read the the AVDatVersion and AVDatDate from the registry and write it which then can be passed to a...
PowerShell – getting system uptime in human readable format
In order to get the system uptime in the format No Days No Hours No Minutes we use the below script: The result is like this: 21 Days 21 Hours 56 Minutes. Enjoy!
PowerShell – Send reboot notification email via a scheduled task
I needed to be able to send an email 24 hours before a server is rebooted via a scheduled task. In order to achieve this I have a task that will reboot the server called „Computer reboot for updates”. The below script gathers the Next Run time of the scheduled task for the server...