Powershell

Printing PDF Files (Part 2)

In the previous tip we explained how PowerShell can send PDF documents to the default PDF printer. This generic approach is OK for simple scenarios...

read more

Printing PDF Files (Part 1)

To automatically print PDF documents, unfortunately you cannot use Out-Printer. Out-Printer can only send pure text documents to a printer. However,...

read more

Scanning Ports

Here is a straightforward way to test ports on a local or remote system. You can even specify a timeout (in milliseconds): function Get-PortInfo {...

read more

Resetting Console Colors

It can be easy to mess up console colors in the PowerShell console. A single call with accidental values, or a script that messed with the colors,...

read more

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
1 25 26 27 28 29 130