Outlook Windows Powershell Help


dear all
i need help, need script move emails folder inbox, delete folder a.

please help

as marco mentions might need more details.  i'm assuming folder underneath inbox... if that's case work:

$ol = new-object -comobject "outlook.application" $mapi = $ol.getnamespace("mapi") $inbox = $mapi.getdefaultfolder(6) $a = $inbox.folders.item("a") $a.items |%{     $_.move($inbox) } $a.delete()



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client