How to create a shortcut to Email a Recipient Directly to desktop in Windows 8 (PowerShell)

Introduction

This script sample shows how to create a shortcut to Email a Recipient Directly to desktop in Windows 8.

Scenarios

Sometimes we often communicate with some people via Email, so we can create a shortcut on desktop for convenience.

Script

Step 1: Right click the script and select Run with PowerShell.

Step 2: Then enter addresses using semicolon to separate and give a name to shortcut, then press enter.

Result:

Note

1. Separate addresses with semicolon.

2. Set your default mail software.

Here are some code snippets for your references.

PowerShell
Edit|Remove
$Shortcut = $WshShell.CreateShortcut($path) 
#set the shortcut targetpath 
$Shortcut.TargetPath =  "MailTo:$Receivers"  
#set the shortcut icon 
$Shortcut.IconLocation = "%Systemdrive%\Program Files\Windows Mail\wabmig.exe" 
$Shortcut.Description ="Mail To $Receivers" 
$Shortcut.Save()

Prerequisite 

Windows 8 or later version