New-InboxRule to move spam

Home Forums Messaging Software Exchange 2007 / 2010 / 2013 New-InboxRule to move spam

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    tolcheen
    Member
    #155495

    Hi,

    I’m trying to use the New-InboxRule to make emails that contain a specific word in the subject get moved to the users Junk E-mail folder. While I want a script to apply this to all users, I’d like to make it work for just one first.

    I though the command to use would be of these, but either does not run and puts me at a >> prompt.

    New-InboxRule -name “SPAM” -Mailbox “John Doe” -MoveToFolder”John DoeJunk E-Mail” -SubjectContainsWords “***SPAM***”
    New-InboxRule -name “SPAM” -Mailbox [email protected] -MoveToFolder”[email protected] E-Mail” -SubjectContainsWords “***SPAM***”

    Please help me to stop punding my head on the desk :)

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.