Powershell

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

How to learn PowerShell for free

Microsoft’s Windows PowerShell is a task-based command-line shell and scripting language. It is an automation platform and scripting language...

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

WMI Quick Primer (Part 4)

Typically, WMI objects contain properties with valuable information. This line would retrieve all information about all running Notepad instances...

WMI Quick Primer (Part 3)

In the previous tip we explained why Get-CimInstance may have advantages over the older Get-WmiObject cmdlet. Now here is another example that...

1 25 26 27 28 29 104