powertips

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

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

Reading Event Logs Smart (Part 2)

In the previous tip we illustrated how you can access detailed event log information that you retrieved via Get-EventLog by using...

Reading Event Logs Smart (Part 1)

When you query an event log with PowerShell, by default you get back a text message with the logged information. For example, if you’d like to know...

Turning Display Off Immediately

If you are about to launch a lengthy automation script, why not turn off the display right away instead of waiting for the screen saver timeout to...

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

Free PowerShell Help Manuals

Even experienced PowerShell users often ignore that PowerShell comes with an excellent help system, much similar to the man pages in Linux. All you...

Using Magic Script Block Parameters

In the previous example we showed the special nature of the -NewName parameter in Rename-Item. it accepts a new file name, but also a script block...

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,...

PowerShell Gallery: Creating QR Codes

In the previous tip we explained how you can get PowerShellGet up and running with your PowerShell version. Now let’s see how easily the...

Test AD User Exists

If you’d need to find out whether a given Active Directory user exists, and provided you have installed the ActiveDirectory PowerShell module...

1 19 20 21 22 23 98