Removing Mail from a MailBox via Command Line

Hi,
I have a mailBox with > 10,000 (Mailing List Bounce).
I'd like to be able to delete all the mail from the command line.
Is that possible?
Thanks,

Hi BriGy,
Base on my search, if you want to remove these service account permission, you need to remove from organizational level, not mailbox level.
Please refer to the following thread, it may give you some hints:
Deny permissions for Domain Admins on mailboxes
Best regards,
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Niko Cheng
TechNet Community Support

Similar Messages

  • [SOLVED] How to Create an Image from UTF8 Text via Command-line

    As the title points out, I'm trying to create an image from unicode text via command line. I tried...
    convert -pointsize 48 -size 400 caption:测试用 text.png
    But that results in question marks for the Chinese characters. So searching around online I discovered that I needed to specify a font which could display the characters. The characters show up just fine in Firefox, KDE, Kate, Terminal, etc so I know I have a font which can render them. I thought it might be DejaVu but this also resulted in question marks...
    convert -font /usr/share/fonts/TTF/DejaVuSerif.ttf -pointsize 48 -size 400 caption:测试用 text.png
    Any ideas?
    Last edited by tony5429 (2011-01-31 23:17:41)

    DejaVu doesn't contain those Chinese glyphs at all, so please don't blame ImageMagick for not rendering them.
    So, Firefox, Kate, Terminal and the others you stated to use DejaVu, if encounter these characters, fall back to some other fonts to render them. These fonts are, however, not vector, but bitmap fonts. (This can be seen if you increase text size (Ctrl++ in Firefox): the Chinese characters don't change, they remain of their inherent size.)
    Actually, e.g. /usr/share/fonts/misc/18x18ko.pcf.gz definitely contains the three example characters, so the mentioned apps may use this font as fall back.
    Apparently ImageMagick doesn't handle bitmap fonts (I'm not sure), so you won't be able to hit your original target. Anyway, since you tried to parse "-pointsize 48", you wouldn't be satisfied with the font size.
    Your only choice seems to be using the above mentioned CJK-approved TTFs.
    EDIT: typo
    Last edited by barto (2011-01-28 21:52:33)

  • How do I remove Lotus Notes PDFMaker plugin via command line?

    How do I remove the lotus notes PDFMaker plugin via command line?  I originally deployed Adobe Acrobat 10 as a complete install to many computers.  I see how to remove this specific feature through the GUI in Windows 7 by going to control panel / programs and features / Adobe Acrobat X / change / modify / create adobe PDF / acrobat PDFMaker / Lotus Notes, but this would be a tedious task to do manually at each computer.  I've experimented with a few msiexec commands after removing Acrobat such as:
    msiexec /i "\\path to msi" remove=pdfmakerforlotusnotes
    msiexec /i "\\path to msi" disable_pdfmaker=yes
    Both still install acrobat as a complete install.  Any help and suggestions would be appreciated.  Thank you!

    Thank you Sabian, that did the trick.  Here is the command line I used for anyone else having a similar issue:
    msiexec /i "\\path to msi" REMOVE=PDFMakerForLotusNotes /qn
    I did this on a test machine with a complete Acrobat installed.  I ran the above command and it removed the Lotus Notes PDFMaker plugin.  I should also note that it didn't downgrade my version of Acrobat and all of my custom settings within the application are still there.

  • Initiate Application Installation from App Catalog via Command Line / PowerShell

    Hey Guys - 
    We have a single, fairly extensive OSD task sequence which covers systems for all departments.  Due to it being a single TS for all, PC Lab techs must manually install some apps after it finishes via the Application Catalog.  In past environments,
    I've used MDT's UDI Wizard to create a frontend where techs could select additional software they wanted installed during the TS and it worked great!  I'm trying to get something like that approved now, but in the meantime told the techs I'd come up with
    a temporary solution to make their job easier.
    Enter WPI (Windows Post Installer.)  Back in the days before I used SCCM OSD and relied in Acronis images (yuck), I used a the WPI tool which only ran once - at the first login - even before the desktop
    loaded.  It's highly customizable and basically shows a single window which lists any applications or scripts (in groups) which you have configured.  You place a checkmark beside each one you want to install, click the "Install" button,
    then watch it's installer frontend install each of the selected apps.  Once done, it either restarts the PC or exists to the desktop.  For each application I can add, I'm provided with a few options to
    install it.  Obviously, an installation command line string field, but also a few more like installation order, requirements, and dependencies. 
    My Question
    Each of the applications I've listed are in our Application Catalog and are advertised to All Users.  Even though I could simply point the installer string to the app's source path and use the same string that the SCCM Application uses, I've been asked
    to do something different.  Instead, I'm trying to find a command line string which when run would perform the same action as if a user had selected to install an Application from the Application Catalog.
    My thoughts are that if this is possible, it would probably be in the form of a PowerShell string - not just a basic command line one.  Since WPI has a frontend which shows the progress of each app's installation progress as well as overall progress,
    it's designed for the installation strings to install the app silently.  Therefore, I would much prefer my solution run silently as well if possible.
    So... does anyone have any idea for how I can make this happen? Thanks!
    In case it makes a difference or answers any questions, below are two screenshots showing most of the fields and options which may be used to configure how an application installs in WPI.  I couldn't include the Dependencies one since I could only
    attach two images to my post.  Also, the manual for WPI is embedded in the application's
    download (ZIP) and not a page on their site.  For the examples below, I used Google Chrome, but didn't configure anything besides the application's name:
    Application Detail Options
    Application Command Options
    Ben K.

    From what I'm reading, you are working towards MDT but it's not approved yet, so the goal is to:
    Deploy a "bundle" of applications as painlessly as possible without using UDI to make customizations quick.
    Lets talk options then.
    Option 1:  If machines types are in a unique OU or security group, create a collection for that and set these applications to mandatory install.  After initial deployment, the provisioner can drop the computer in the proper OU or group and you're
    good to go.  Downside:  collections refresh plus client check-in makes this less than instant.
    Option 2:  Orchestrator.  You can write a runbook that will approve and push apps.  You can then use the Orch console front end or a more friendly sharepoint/SM portal to push things out like a Manager would approve apps.  Downside:  if
    not already deployed, there's no way they would approve that infrastructure if they are hesitant about MDT/UDI :)
    Option 3:  PowerShell and WMI.  This should be doable ... but I've never tried it.  It looks like you're headed down the right path ... but i guess my question is:  if you can't have UDI when do get to pick the app?  Are you planning
    to write a full multi-box for them to check their apps after the fact?  In that case ... just have the appcontroller URL pop up on first login ... might be easier than reinventing the wheel.

  • How to see via command line blocked mails

    Im having a problem...i have a C100 Ironport appliance and i want to know via command line, how to grep and see mails that never went delivered.
    For example...i know that someone, like [email protected] send to my exchange server an email...but in exchange never entered. So i assume that it was filtered by Ironport.
    I go to the command line, use grep and 13 and search for [email protected] and i see something like this
    Wed Apr 18 14:17:54 2007 Info: MID 3977209 ICID 8813638 From: <pedro>
    Wed Apr 18 14:18:44 2007 Info: MID 3977209 ready 3019672 bytes from <pedro>
    I see that 2 mails came from pedro....so i want to see what happened to them...they were bounced? rejected? Delivered?
    I dont have any email in the local quarantine... and i want to know how to track what happened to those emails that never entered to my exchange server.
    Is there any command?
    Than you!

    Wanted to add that you can shortcut the "grep" process by putting everything on one line.
    grep -i "Mid 3977209" mail_logs
    grep -i "ICID 8813638" mail_logs
    grep -i "From: " mail_logs
    basically
    grep -i "pattern" mail_logs
    -i ===> ignore case
    Im having a problem...i have a C100 Ironport appliance and i want to know via command line, how to grep and see mails that never went delivered.
    For example...i know that someone, like [email protected] send to my exchange server an email...but in exchange never entered. So i assume that it was filtered by Ironport.
    I go to the command line, use grep and 13 and search for [email protected] and i see something like this
    Wed Apr 18 14:17:54 2007 Info: MID 3977209 ICID 8813638 From:
    Wed Apr 18 14:18:44 2007 Info: MID 3977209 ready 3019672 bytes from
    I see that 2 mails came from pedro....so i want to see what happened to them...they were bounced? rejected? Delivered?
    I dont have any email in the local quarantine... and i want to know how to track what happened to those emails that never entered to my exchange server.
    Is there any command?
    Than you!

  • How do I get LR2 to "load from device" via command line?

    Hi,
    how do I get LR2 to "load from device" via command line?
    I've got XP to load LR2 when a "camera" (and only a camera) is connected but really cool would be if LR2 would also import the pictures.
    cu,
    Michael

    1. Make sure you are using IOS 7.
    2. Make sure your iPad is register in My Support Profile.
    https://supportprofile.apple.com/
    3. Try downloading again; it should be free.

  • Upgrading from 10.5 to 10.6 via command line

    Hi all:
    Can anybody tell me what package(s) should be installed when upgrading a 10.5 server to 10.6? I don't need any of the language kits or printer drivers or X11, just the basic install option. I'd like to install the packages via command line, but there are a few that look relevant and I'm not sure which ones to install.
    These look promising:
    MacOSXServerInstall.mpkg
    MacOSXServerInstall.pkg
    OSInstall.mpkg
    OSInstall.pkg
    OSUpgrade.pkg
    Thanks,
    Brewster

    Looks like I can just ARD into the machine while booted from the DVD, so this is moot. :P

  • Remove Mail from mailbox after accepting mail by another guy

    I have an requirement in such way that if one employee accpets the mail, mail should get removed from mail box of other employee.
    Mail are the MS-Outlook mails and all employee are group together in one address book.
    In second scenario, if employee sent one mail (For ex. Leave application) it goes to two high level. If first level try to approve it at time it should prompt error message that second level approval is pending.
    Please let me know is it possible through ABAP or workflow?
    Thanks in stack

    Hi Nilesh,
    <i>at first I don't really have very good news for you:</i>
    Removing mails from Outlook is a microsoft feature and does only work when developing an appropriate application for this one. Removing mail items also prerequesites that an Outlook template/form is used and it is not a "mail" object anyways.
    Solving the problem this way would possibly exceed any one's project's budget.
    <i>The better news is:</i>
    What you might think about is the Outlook-Connector for SAP which comes with the Frontend-CD that opens up in a separate "inbox", which refreshes from the SAP's workitem inbox. If a certain workitem disappears it will also disappear (after the refresh time) from the outlook's inbox as well.
    As I have said in one of my posts before I'm still not sure if that interface product is still activly supported by the SAP. Furthermore I have experienced certain curious effects that came up, e.g. that read-notifications from the last years have been sent once again. Also consider more network traffic etc.
    For the second scenario you where asking, you should think about opening a new thread and a bit of more detailed information about what you are asking exactly.
    Best wishes,
    Florin

  • Hi I am having problems removing mail from trash folder. Can anyone help please

    Hi I am having problems removing mail from trash folder. I can send mails to the folder but cannot delete them permanently from the trash folder. I am using Iphone 3G and anm up to date with OS. Can anyone help please

    Check that there isn't a different Trash folder to the one with the proper Trash symbol on it.
    If you see one in your list of folders rather than a separate one, highlight it, then click on Mailbox...Use this mailbox for...Trash

  • How to merge multiple documents via command line (Adobe Acrobat Pro 9.3.2)?

    I'm searching solutions to merge multiple documents (all stored in one folder) via command line or batch file to a single PDF-File...
    Is there a way to do this?
    Finaly I want to control this from a application written in MS-Access. So, perhaps there are some features already integrated in Access to do this?
    Thanks for answer!

    If you have some programming experience you could probably do this using VBA from within MS Access to control Acrobat via OLE.
    Lots of examples on the Web.
    Hope this helps

  • Adobe Reader 11 (XI) won't open file via command line

    Hello,
    I have posted this question to probably inapropriate topic earlier today, so I am repeating it again.
    I installed newest Adobe Reader XI today and when I tried to open certain pdf file via command line, it reported a syntax error. Now, this syntax worked so far on versions 9 and 10  (I checked today with them and it is working), so my question is - where can I find new syntax, if there is any? Googling didn't help. Or what else could wrong?
    In previous versions I was able to open pdf file (on page 5) like this (all was taken from Help file "Open parameters")
    "CompletePathToAdobeReader"/A"page=5""CompletePathToPDF",
    ie
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"/A"page=5""d:\V2\DataSheet.pdf"
    but now - not that it doesn't open specific page, but it doesn't want to open file at all.
    edit:
    Operating systems running: Windows 7, Windows XP
    Thank you.
    Message was edited by: v604

    Yes, it reported correctly becuase there is a syntax error in your command. Try spaces between the /A switch and open parameter. Try this:
    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "page=5" "d:\V2\DataSheet.pdf"
    Hope this helps.
    -Sumit

  • [SOLVED] How to Crop an MP4 Video via Command-line?

    I have ffmpeg, mpg123, and mencoder. Does anyone know of a way I could use any of those to crop an mp4 video via command-line? I am trying to take off the black space above and below a video. Thanks in advance!
    Last edited by tony5429 (2009-04-12 00:12:57)

    I don't think it's possible to crop without re-encoding, but you can crop from the command line with ffmpeg and mencoder. Not sure about mpg123 - I think that's for playing audio but I could be wrong there.
    Anyway, with ffmpeg you can do cropping by using -croptop, -cropbottom, -cropleft, and -cropright. So if you wanted to crop 16 pixels off of the top and the bottom, your command line would look something like this:
    ffmpeg -i <input file> -croptop 16 -cropbottom 16 <video encoding options> <audio encoding options> <output file>
    With mencoder you use the "crop" video filter, like this:
    mencoder <input file> -o <output file> -vf crop=320:208:0:16 <other options>
    where the "320:208:0:16" means that the resulting picture is 320 pixels wide, 208 pixels high, and the 0:16 is the x,y position of the cropped area.
    These command lines are just really very basic examples - ffmpeg and mencoder have a LOT of options. Way too many to explain here. If you don't believe me, just try reading through the mencoder man page sometime. (There's an online version of it at: http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html)
    Hope this helps!!

  • Turn on "Real-time preotection" via command line

    Hello!
    We have a cient without networking resources and I need to turn on the "Real-time protection" which is currently in OFF state.
    How can I do that via command line?
    I tried to review the "mpcmdrun" command but did not found proper switch to turning on this service.
    Regards, 
    Tamas

    You could do a regedit command to silently import a .reg file with the setting in it:
    create a .reg file from the following key:
    HKLM\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection
    Name: DisableRealtimeMonitoring
    Type: REG_DWORD
    Data: 0
    Then import it silently with this command:
    regedit /s C:\ExamplePath\Example.reg
    You could also do a PowerShell command:
    Set-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Microsoft Antimalware\Real-Time Protection' -Name DisableRealtimeMonitoring -Value 0

  • How to install Developer Tools via command line

    Hello,
    is there a way, to install the Developer Tool via Command line?
    I need only the unix tools.
    I have to install the unix tools over a ssh connection.
    Thanks in advance and best regards
    Martin

    I followed the link you gave.  The only download I saw was for Xcode 4, and they either wanted $5 to purchase it from the app store or a 1 year mac developer license thing which was $100.
    <Edited by Host>

  • Unable to Launch FMEL via Command Line for Osprey 460e Simulstream Mode

    Subject: Unable to Launch Flash Media Encoder Live v3.2 via Command Line for Windows 2008 for Osprey 460e Simulstream Mode.
    Dear Users,
    Its urgent and I request you to looking into the problem and oblige.
    We are facing problem in command line section of Flash Media Encoder Live v3.2 while using  Osprey 460e Device Capture.
    When we are launching the setup via GUI mode of Adobe Flash Media Encoder Live then its showing fine, However when we are trying to execute the same using the commandline then its throwing the error that the device is in use already.
    Please clarify the error and confirm that there is no errors issues from your FMLE side. We have installed the latest downloadable (stable version) from Osprey Viewcast  website only.
    Regards
    Vibs

    I have solved the error by installing Desktop Experience Feature in Windows 2008
    To resolve this problem, install the Desktop Experience feature of Windows Server 2008. To do this, follow these steps: 
    Click Start, click Administrative Tools, and then double-click Server Manager. 
    In Server Manager, click Add Features under Features Summary. 
    In the Add Features Wizard dialog box, make sure that the Desktop Experience option is selected. 
    Click Next, and then click Install. 
    After the installation process is complete, click Close, and then close Server Manager.
    Note After you install Desktop Experience, you have to restart the computer.

Maybe you are looking for