How to Prompt a User for Input using PowerShell

You can use the read-host command-let to get an input from a user during program execution. PowerShell Input Example Here is a related example, the program gets two numbers in string format and converts them into integers and then sums up those numbers and finally displays the result. The -prompt parameter is used to display a ... Read more

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

How to Stop Windows 10 Auto Updates

Updates are automatically installed on Windows 10, this guide will help you regain control and decide when to install which update. There are two ways to prevent auto updates: Using Local Group Policy Editor. Using Registry. Preventing Automatic Updates Using Local Group Policy Editor Step 1: Use Windows key + R keyboard shortcut to open ... Read more