search
top
Currently Browsing: Powershell

How To Disable IPV6 on Windows 10 with PowerShell

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... read more

How To Use PowerShell to Export Scheduled Tasks

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... read more

Use PowerShell to Get Drive List and Capacity

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... read more

How To Mount and Unmount ISO files using PowerShell

Withe Windows 10 the ability to mount ISO files (disk images) was added and you no longer have to use third party tools to mount them. In these post we will cover how to mount and unmount using PowerShell. Very simple and easy to execute. Open PowerShell as Administrator. Use the Mount-DiskImage cmdlet to mount the ISO. Syntax is: Mount-DiskImage -ImagePath “C:\FILE.ISO” Example: The drive... 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

top