ps1

Eliminating Empty Results

To exclude results that have empty properties, you can easily use Where-Object. For example, when you run Get-Hotfix, and you only want to see...

read more

Finding Logged-On User

There is a helpful console application called quser.exe which will tell you who is logged on to a machine. The executable returns plain text, but...

read more

Finding Logon Failures

Whenever someone logs on with invalid credentials, there will be a log entry in the security log. Here is a function that can read these events from...

read more

Change Desktop Wallpaper

To change the current desktop wallpaper and make this change effective immediately, PowerShell can tap into the windows API calls. Here is a...

read more

Getting System Information

PowerShell plays friendly with existing console applications. One of the most useful is systeminfo.exe which gathers all kinds of useful system...

read more

Starting Services Remotely

Since Start-Service has no -ComputerName parameter, you cannot use it easily to remotely start a service. While you could run Start-Service within a...

read more
1 75 76 77 78 79 128