How To Disable IPV6 on Windows 10 with Powershell

Introduction In today’s post we will look into how to disable IPV6 using Powershell on Windows 10. You ask why would you want to disable IPV6? There could be several reasons like not being used on the network, causing network binding issues or causes intermittent network disconnects (VPN) and other reasons. SO let’s move along and see just how to do this with Powershell. Disable IPV6 We are... read more

Checking Your TPM Version on Windows 10

Introduction A new Windows version is on the horizon and in the requirements for Windows 11 we see TPM 2.0. The question being asked is what version of TPM do I have and where do I find it. Get The Information First, check if you have a TPM chip is to run the get-tpm command via Windows PowerShell. To do this, type PowerShell in the Start menu search bar. Right-click on the Windows PowerShell result and... read more

How To Use PowerShell to Export Scheduled Tasks

Introduction We all know what a pain it is to have to recreate scheduled tasks on Windows when moving to new systems or restoring crash or corrupted systems. Making a backup of these tasks is always good to do, so why not do this with PowerShell and make things much simpler. The Code The script is fairly simple Define a new-object Connect to the object on the server Get the contents of the tasks folder... read more

Use PowerShell to Get Drive List and Capacity

  Introduction Just a simple post with PowerShell. Had a bunch of Windows servers that needed to get a list of local drives and display the size of the drive and the freespace on the drives in GB. To achieve that decided to use Win32_LogicalDisk call in PowerShell. select a few of the available fields and do a little math. The Code What is Win32_LogicalDisk? The Win32_LogicalDisk WMI class represents... read more

Using A PowerShell Function To Search and Replace in a Text file

Introduction When I started working in PowerShell for scripting in Windows I longed for a way to do inline editing of a file like you could do with sed. I was able to do this with VBScript but it was long and ugly. After learning more about some of the cmdlets I was able to create a function to search and replace. In this post I would like to share the simple function with you. The Code The overall code... read more

« Previous Entries