• Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Remove-MailboxImportRequest confirmation

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2010] >> Management >> Remove-MailboxImportRequest confirmation Page: [1]
Message << Older Topic   Newer Topic >>
Remove-MailboxImportRequest confirmation - 23.Nov.2011 9:39:57 PM   


Posts: 7
Joined: 29.Nov.2007
Status: offline
I'm scripting the removal of successful import requests on Exchange 2010 with the following command:

Get-MailboxImportRequest -mailbox username -status Completed | Remove-MailboxImportRequest

This will always ask me to "confirm" the deletion and I have to press yes,no, all etc. The -Confirm parameter doesn't seem to accept any parameters to set a default value.

Any ideas?
Post #: 1
RE: Remove-MailboxImportRequest confirmation - 27.Sep.2012 8:15:33 PM   


Posts: 1
Joined: 27.Sep.2012
Status: offline
Get-MailboxImportRequest -mailbox username -status Completed | Remove-MailboxImportRequest -Confirm:$false

-Confirm by default will require you to acknowledge a prompt.

(in reply to PoW)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2010] >> Management >> Remove-MailboxImportRequest confirmation Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts

Follow TechGenix on Twitter