Outlook Windows Powershell Help
dear all
i need help, need script move emails folder inbox, delete folder a.
please help
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
Post a Comment