ps1

Adding Leading Zeroes

If you need numbers with leading zeroes, for example for server names, here are two approaches. First, you can turn the number into a string, then...

read more

Displaying Message Box

If you’d like to show a default MessageBox with some buttons for the user to click, try this function: function Show-MessageBox {...

read more

Displaying Input Box

If you’d like to open a quick and dirty input box to prompt a user for some data, you could access Microsoft Visual Basic and...

read more

Reading Text Files Fast

There are plenty of ways how PowerShell can read in text files, and they can differ considerably in time. Check for yourself. The examples below...

read more

Configuring Network Adapter

Here is a simple example illustrating how you assign IP address, gateway, and DNS server to a network adapter. The script lists all active network...

read more

Bulk-Renaming Pictures

Renaming a single file is easy using Rename-Item, but sometimes cmdlet parameter can be much smarter and help you automate in bulk. For example,...

read more
1 28 29 30 31 32 128