Browsed by
Category: Uncategorized

What does Robocopy mean by tweaked, lonely, and extra?

What does Robocopy mean by tweaked, lonely, and extra?

“Tweaked”, “Lonely”, and “Extra” refer to RoboCopy “Classes” of files.

For each directory processed RoboCopy constructs a list of files matching the Include Filespecs, in both the source and destination directories. The program then cross-references these lists, seeing which files exist where, comparing file times and sizes where possible, and places each selected file in one of the following classes:

File        Exists In   Exists In        Source/Dest     Source/Dest   Source/Dest
Class       Source      Destination      File Times      File Sizes    Attributes
=========== =========== ================ =============== ============= ============
Lonely      Yes         No               n/a             n/a           n/a
Tweaked     Yes         Yes              Equal           Equal         Different
Same        Yes         Yes              Equal           Equal         Equal
Changed     Yes         Yes              Equal           Different     n/a
Newer       Yes         Yes              Source > Dest   n/a           n/a
Older       Yes         Yes              Source < Dest   n/a           n/a
Extra       No          Yes              n/a             n/a           n/a
Mismatched  Yes (file)  Yes (directory)  n/a             n/a           n/a

y default, Lonely files (and directories) are always copied, unless /XL switch is used. Changed, Newer and Older files will be considered to be candidates for copying (subject to further filtering described below), Same files will be skipped (not copied), and Extra and Mismatched files (and directories) will simply be reported in the output log.

Normally, Tweaked files are neither identified nor copied – they are usually identified as Same files by default. Only when switch /IT is used will the distinction between Same and Tweaked files be made, and only then will Tweaked files be copied.

Use the following switches to override this default behaviour:

Switch   Function
======== =====================
/XL      eXclude Lonely files and directories.
/IT      Include Tweaked files.
/IS      Include Same files.
/XC      eXclude Changed files.
/XN      eXclude Newer files.
/XO      eXclude Older files.

Use the following switch to suppress the reporting and processing of Extra files:  
/XX      eXclude eXtra files
How to disable automapping Exchange 2010 for all mailbox

How to disable automapping Exchange 2010 for all mailbox

With exchange 2010 post SP1, there’s a new feature that cause lots of problem: AUTOMAPPING

With the below script you can disable all automapped mailbox


# Get all mailboxes in the forest
$Mailboxes = Get-Mailbox -ResultSize unlimited -IgnoreDefaultScope -OrganizationalUnit Other
$ConfirmPreference = ‘None’

# Iterate over each mailbox
foreach($Mailbox in $Mailboxes)
# Try to run the example fix against the current $Mailbox

$FixAutoMapping = Get-MailboxPermission $Mailbox.alias |where {$_.AccessRights -eq “FullAccess” -and $_.IsInherited -eq $false}
if ($FixAutoMapping)
$FixAutoMapping | Remove-MailboxPermission -confirm:$false
$FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $false}
# Inform about the error if unsuccessful
Write-Host “Encountered error: $($Error[0].Exception) on mailbox $($Mailbox.DisplayName)” -ForegroundColor Red