powertips

Listing Network Drives

There are many ways to create a list of network drives. One involves a COM interface that was used by VBScript as well, and we’ll pick it to...

read more

Sending Emails via Outlook

You can always use Send-MailMessage to send a mail via any SMTP server. If you’d like to use your Outlook client, though, i.e. to keep access...

read more

Formatting Date and Time

Formatting date and time to your needs is easy with the -Format parameter provided by Get-Date. You can use it either with the current date, or...

read more

Using a Stop Watch

In PowerShell, to measure time, you can simply subtract datetime values from another: $Start = Get-Date $null = Read-Host -Prompt "Press ENTER...

read more
1 18 19 20 21 22 122