Skip to content

Commit

Permalink
Some code updated and cleanup, comments added
Browse files Browse the repository at this point in the history
Version: 1.0.0.0
  • Loading branch information
Apoc70 committed Mar 9, 2017
1 parent e22a9d1 commit 5b548e7
Show file tree
Hide file tree
Showing 7 changed files with 508 additions and 360 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
## Synopsis

RemovePrivatFlags.exe will remove the privat flags from all messages in a mailbox (appointments it self will not be altered).
RemovePrivatFlags.exe will remove the private flags from all messages in an Exchange Server mailbox (appointments will not be altered).

## Why should I use this

If a private meeting request is forwarded or answered the message it self is also marked as private. This is fine for personal
mailboxes but you will maybe get problems if you use shared mailboxes or after migrate data from public folders into a mailbox.

This utility is designed for run once until a migration.

## Installation

Simply copy all files to a location where you are allowed to run it and of course the Exchange servers are reachable.

## Requirements
* Exchange Server 2013 (Tested with CU15, maybe it will work with Exchange 2007/2010 as well)
* Application Impersonisation rights
* Microsoft.Exchange.WebServices.dll, log4net.dll (are provided in the repository and also in the binarys)
* Exchange Server 2013/2016 (Tested with CU15, maybe it will work with Exchange 2007/2010 as well)
* Application Impersonation Rights
* Microsoft.Exchange.WebServices.dll, log4net.dll (are provided in the repository and also in the binaries)

## Usage
```
RemovePrivateFlags.exe -mailbox [email protected] [-logonly true] [-foldername "Inbox"]
```

_RemovePrivateFlags.exe -mailbox [email protected] [-logonly true] [-foldername "Inbox"]_
Search through the mailbox and ask for changing a item if -logonly is not set to true. If -foldername is given the folder path are compared to the folder name.
If -logonly is set to true only a log will be created.

_RemovePrivateFlags.exe -mailbox [email protected] [-foldername "Inbox"] [-noconfirmation true]_

```
RemovePrivateFlags.exe -mailbox [email protected] [-foldername "Inbox"] [-noconfirmation true]
```

Search through the mailbox, if -noconfirmation is set to true all items will be altered without confirmation.

# Parameters
* not optional: -mailbox [email protected]
* mandatory: -mailbox [email protected]
* optional: -logonly true
* optional: -foldername "Inbox"
* optional: -noconfirmation true
Expand Down
10 changes: 7 additions & 3 deletions RemovePrivatFlag/InputArguments.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/*
Based on: http://dotnetfollower.com/wordpress/2012/03/c-simple-command-line-arguments-parser/
*/
// RemovePrivateFlag
//
// Author: Torsten Schlopsnies, Thomas Stensitzki
//
// Based on: http://dotnetfollower.com/wordpress/2012/03/c-simple-command-line-arguments-parser/
//
// Published under MIT license

using System;
using System.Collections.Generic;
Expand Down
Loading

0 comments on commit 5b548e7

Please sign in to comment.