How to Append Data to a Text File Using PowerShell

You can use the PowerShell add-content cmdlet to append data to a text file. Here are an example and the command-line options that you can use. Powershell add-content example Step 1. Open PowerShell with elevated privileges Step 2. Execute the following command, (change the file path) Add-Content c:\scripts\test.txt "The End" By default, the data is appended after ... Read more

How to Stop Windows From Automatically Connecting to a Wi-Fi Network

Disable Windows WIFI autoconnect

Microsoft is vigilant when it comes to adding features to the Windows operating system for the convenience of their users. Their goal is to make Windows as user-friendly as possible. One such element of convenience by Microsoft is the automatic connection to a known wireless network.   Microsoft has this default auto-connect setting in Windows ... Read more

How to Disable the User Account Control (UAC) in Windows 10

User Account Control also known as UAC is an important component of the "Windows security system". This helps the applications running in the windows to prevent your system from making any undesired changes. Whenever software is running in a system and it tries to make changes in the system, a window dialog box appears that ... Read more

How to Elevate Windows Batch Scripts to Run it with Admin Rights at Startup

1. Download the PowerToys and extract the contents of an EXE file in your desired folder. 2. Create a batch script with the following command, "C:\Program Files\Elevation\elevate.cmd" "C:\My batch files\<batch file name say batch.bat>" batch.bat contains all the commands you would like to run with administrative privileges. 3. Copy batch.bat to the following startup folder, ... Read more

How to Create NIC Teaming With PowerShell

To create NIC teaming with PowerShell, follow this step-by-step tutorial: Step 1. Open PowerShell with elevated privileges Step 2. Execute the following command, new-NetLBFOTeam [TEAMNAME] “[NIC1]”, “[NIC2]” [TEAMNAME] the name of team of network adapters. [NIC1] the name of first NIC adapter. [NIC2] the name of second NIC adapter. Example: If you have two network ... Read more