Sometimes we need to schedule the reboot of a server after hours. We can do this very easy with Task scheduler and PowerShell. Open Task Scheduler and create a new basic task. Give it a meaningful name: And press Next. Set it to One time and press Next: Set the date and time for...
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...