database-tools

Converting UNIX Time

Surprisingly, when you read some values from the Windows Registry, they do not seem to be in a readable format: $key =...

read more

Creating Registry Values

In a previous tip we introduced the new function New-RegKey that could create one or more registry keys. Here is a function that creates registry...

read more

Creating Registry Keys

With this new function, it is simple to create new registry keys (including missing parent keys) in all registry hives. All you need are proper...

read more

Recording Audio Text Files

Did you know that PowerShell can record audio messages? All you need is some text. You can then turn the text into spoken language, convert it to a...

read more

Enter Hibernation Mode

Maybe you are running lengthy tasks at night. Sometimes you may want to place the machine into hibernation once your script is done. Here’s a...

read more

Make PowerShell Speak!

By adding a new system type called System.Speech, you can make PowerShell speak out loudly: Add-Type -AssemblyName System.Speech $synthesizer =...

read more

Admin Privileges Enabled?

If you want to know whether your script has currently full Administrator privileges, here is an (admittedly long) one-liner that tells you:...

read more

Locking Workstation

If you ever feel the need to lock your interactive session via PowerShell, here’s a function that can do this (and also illustrates how to use...

read more

Logging Off

Stop-Computer and Restart-Computer can shutdown and restart a machine, but there are things they cannot do, for example logging off the current...

read more