functionGet-MAPIClient
{
functionRemove-Argument
{
param
(
$CommandLine
)
$divider=''if ($('"'))
{
$divider='"'$CommandLine=$(1)
}
$($divider)[0]
}
$path='Registry::HKEY_CLASSES_ROOT\mailto\shell\open\command'# create new object to return values
$returnValue=1|Select-Object-PropertyHasMapiClient,Path,MailTo$=Test-Path-Path$pathif ($)
{
$values=Get-ItemProperty-Path$path$=$values.'(default)'$=Remove-Argument$ ((Test-Path-Path$) -eq$false)
{
$=$true
}
}
$returnValue
}
Get-MAPIClient