Force screensaver with flexible lock time / time out value in Powershell

Force screensaver with flexible lock time / time out value in Powershell 1

Due to security compliancy a customer recently asked me to apply a setting that would force a screensaver after an idle time of 20 minutes. At the same time, employees should be able to change the time out value to anything between 1 and 20 minutes. Group Policies / GPO’s do not provide this functionality, and since the customer …

Read moreForce screensaver with flexible lock time / time out value in Powershell

List users in a domain with their creation date

A colleague recently asked me a list of all employees in our company, and their date of hire. As I work at an IT department, I do not have everyones contract. However, I do have the creation date of every account. Since we create accounts a few dates before the date of hire, I could …

Read moreList users in a domain with their creation date

Automatically upgrade VMWare Tools on multiple Virtual Machines

A new version of ESX often comes with a new version of VMWare Tools. In my case, I did a migration of ESX 3.5 to vSphere (4.0). A manual installation of VMWare Tools would be pretty time-wasting (50 virtual machines). Therefore, I’ve searched on Google, and found the following solution: Powershell! With a Powershell command, …

Read moreAutomatically upgrade VMWare Tools on multiple Virtual Machines

File cannot be loaded because the execution of scripts is disabled on this system error in PowerShell

(edit 10/5/2019: this page is retiring. For up-to-date information, please go to Fix File cannot be loaded because running scripts is disabled on this system.) When you try to run a Powershell script (PS1), you may get the following error: File xyz.ps1 cannot be loaded because the execution of scripts is disabled on this system. …

Read moreFile cannot be loaded because the execution of scripts is disabled on this system error in PowerShell