database-tools

Get Weather Forecast

Invoke-WebRequest can easily retrieve web page content for you. If you run it without the –UseBasicParsing parameter, the HTML is even parsed...

read more

Avoid Read-Host

Do you use Read-Host to receive user input? If you do, rethink. Read-Host always prompts a user, and there is no way to automate scripts that use...

read more

Using Online Help

PowerShell does not ship with help files, and installing help files locally requires Administrator privileges. A much easier approach can often be...

read more

Logging Script Output

There are numerous ways to log script output but one especially lazy technique is to run Start-Transcript. In PowerShell 5, this cmdlet is supported...

read more

Auditing Logons

Have you ever wondered whether someone has logged into your PC while you were away? In a previous tip we explained how you can examine the rich...

read more

Finding UAC Elevations

The Windows “Security” log contains rich audit information. By default, it logs all requests for privilege elevation which occurs when...

read more

Explore WMI

Get-WmiObject and Get-CimInstance both can provide you with a lot of valuable information, provided you know the name of WMI classes to query. Here...

read more

Find Installed Software

Most installed software registers itself in one of four places inside the Windows Registry. Here is a quick PowerShell function called...

read more
1 81 82 83 84 85 198