Category: Powershell

Touch command in PowerShell

One of my favorite commands from the Linux terminal is the touch command. This is a way for users to create or modify files and their timestamp information. The following function is just a...

Powershell: Sorting Files

In a previous post I talked about how to use Python to organize files. Since most of my work is on a windows machine I thought I would add a Powershell based file organizer...

Working with Archive Files

We can add these functions to our PowerShell profile or within a simple script we can reuse. To begin we will need to add a .NET assembly to the script. We have just added...

How to Create a PowerShell Profile

Every time you launch a PowerShell console, a profile is loaded that contains settings and much more to use. This is a great place to put your automation tasks and repetitive items if you...

Get System Up time

Getting the system up time on Windows servers or desktops is a needed task every so often. This information can be found a different ways but occasionally we need this information in our script....

Simple Web Server

Powershell is very powerful when we can leverage .NET classes in our scripts. One simple task is to create a simple web server to render our results or server some simple HTML content. To...

Viewing Wifi Passwords

Did you forget your WiFi passwords and wish you could retrieve them? Or know what wireless networks you’ve connected to? With PowerShell we can do that pretty easily. This will show the current WiFi...

Uppercase user input

During user input we need to perform some string functions to put the name in a proper format because lets be honest, no one always types correctly. This will also benefit the times we...