Delete Files Older Than in PowerShell
Here is an example of how to use PowerShell to delete files older than a specified date: # Set the path to the folder containing the files you want to delete $folder = "C:\myfolder"
PowerShell & Windows Admin Blog Archives, by Peter Whyte (SQL Database Administrator). Includes a lot of WSL posts & more...
Here is an example of how to use PowerShell to delete files older than a specified date: # Set the path to the folder containing the files you want to delete $folder = "C:\myfolder"
The Get-EventLog cmdlet in PowerShell can help you view events as you would in Event Viewer, but within your PowerShell Terminal.
Get-Command is a cmdlet in PowerShell that allows us to retrieve a list of commands that are available to use in the current session.
The PowerShell script included in this blog post checks if a specific folder exists and then creates it if it does not already exist.
The Get-TimeZone command in PowerShell returns the current Time Zone of a computer, or it can be used to list all available Time Zones which will be useful if you’re planning on making changes to timezones.
Get-Service is a command in PowerShell that returns a list of Services on a Computer. This post is a quick guide on running this command in a PowerShell terminal, using a wildcard ( * ) to show me my services with “SQL”
This post is a how-to for installing & configuring AWS CLI (Version 2) on Windows. In this guide, we’re going to download the AWS Command Line Interface installation media and run through the simple installation.
This guide shows how to install Ubuntu 20.04 on WSL (Windows Subsystem for Linux). Before installing a WSL Linux distribution you should have already enabled WSL on your computer.
In this post, we will explore how to use PowerShell to view event logs. We will use the Get-EventLog command to accomplish this.
When you are working within a PowerShell terminal session, you may want to open Windows Explorer for the current directory you are set as in your terminal.