How to Generate Random Numbers Using PowerShell

When you have to generate random passwords for users, you can execute the get-random command let on PowerShell to create it. Generate Random Number get-random -maximum 2000 -minimum 100 This command, when executed on PowerShell, creates a number between 1999 (not 2000 and always set one number higher in maximum) and 100.

How to Keep Installed Drivers After Running SYSPREP

Sometime it is necessary to keep installed drivers on windows even after running sysprep. You can do so by following these steps. Step-by-Step instructions Step 1: Open run command. Type regedit and then press enter key. Step 2: Go to the following path: GoHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Settingregedits\sppnp Step 3: Locate PersistAllDeviceInstalls on right side of window. Step 4: Right-click and ... Read more

Windows Returnvalue: 2147786788 in wmi EnableStatic method

Successfully using the EnableStatic method for example in powershell always gives the Returnvalue 0. If that is not the case, something will most likely have gone wrong. If you are returned the value 2147786788, this is a sign for a write lock of some sort, meaning you have to look for running processes that are ... Read more

Remove services from auto-startup on Windows

Every service you install is usually run on system startup. Sometimes these services do so without asking you before and sometimes they might even be malicious or just too heavy in resources. To select specific services that shall not be started by boot, open msconfig by calling a Run prompt through the main menu and ... Read more

Remove a bluetooth (or other) device from My Computer

After establishing a bluetooth connection with another device from your computer the other device will propably stay in the Devices section of My Computer even after the connection is cancelled. To remove that device follow these steps: Open the control panel and head to View devices and printers under Hardware and Sound: You will be ... Read more