powertips

Check Online Status

When managing more than just one system, you may want to remotely access those systems. Maybe you use WMI to do that. However, when you try and...

read more

An Easy InputBox

All user input and output normally occurs inside the PowerShell console. Simply access the .NET framework directly if you'd like to get back the...

read more

Clone NTFS Permissions

NTFS access permissions can be complex and tricky. To quickly assign NTFS permissions to a new folder, you can simply clone permissions from another...

read more

Creating HTML Reports

PowerShell can convert objects into HTML using ConvertTo-HTML. By adding a bit of custom formatting, your reports can be colorful and cool. The...

read more

Analyzing Event Logs

Event logs are a great source of information. The only problem is that they tend to be overwhelming. Try using WMI and the Win32_NTLogEvent class to...

read more

Reading Text Files

Reading text files is easy using the Get-Content cmdlet: $text = Get-Content $env:windirwindowsupdate.log However, Get-Content reads the file line...

read more

Sorting Text Files

You need to sort a text file, maybe a list of servers or names? Here is how: $file = $homeserverlist.txtGet-Content $file | Sort-Object |...

read more