How to Migrate Print Services from Server 2012 to Server 2016

These instructions describe how to migrate print services from Windows Server 2012 R2 to Windows Server 2016. Windows Server 2016 has built-in migration wizard. Install Print Services on Server 2016 Step 1: Open the server manager. Click on the Add Roles and Features wizard. Step 2: Click on Next. Step 3: Choose Role-based or feature-based installation ... Read more

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 Configure DHCP with PowerShell

PowerShell commands are an easy way to save a lot of time as system administrator. In this article, I'll show you how to configure DHCP from PowerShell. I have following information including scope, and router gateway IP. DHCP DNSServerIP="192.168.1.10" DHCPServerIP="192.168.1.10" StartRange="192.168.1.150" EndRange="192.168.1.200" Subnet="255.255.255.0" Router="192.168.1.1" Following is the configuration break down: Installing DHCP Adding DHCP scope ... Read more