Advertisement
Guest User

erreur office 2013 remi0018

a guest
May 9th, 2013
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.83 KB | None | 0 0
  1. Error:
  2. The following error was generated when "$error.Clear();
  3. if ($RoleIsDatacenter -ne $true)
  4. {
  5. if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
  6. {
  7. $sysMbx = $null;
  8. $name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
  9. $dispname = "Microsoft Exchange";
  10. $mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
  11. if ( $mbxs.length -eq 0)
  12. {
  13. $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
  14. if ($dbs.Length -ne 0)
  15. {
  16. $arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
  17. if ($arbUsers.Length -ne 0)
  18. {
  19. $sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;
  20. }
  21. }
  22. }
  23. else
  24. {
  25. if ($mbxs[0].DisplayName -ne $dispname )
  26. {
  27. set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;
  28. }
  29. $sysMbx = $mbxs[0];
  30. }
  31.  
  32. # Set the Organization Capabilities needed for this mailbox
  33. if ($sysMbx -ne $null)
  34. {
  35. Write-ExchangeSetupLog -Info ("Setting mailbox properties.");
  36. set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;
  37.  
  38. # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.
  39. # This can be remove after BUG(O15#2555914) is fixed.
  40. if ($sysMbx.RetentionPolicy -eq $null )
  41. {
  42. $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});
  43. set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;
  44. }
  45. }
  46. else
  47. {
  48. Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");
  49. }
  50. }
  51. else
  52. {
  53. write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."
  54. }
  55. }
  56. " was run: "Database is mandatory on UserMailbox.".
  57.  
  58. Error:
  59. The following error was generated when "$error.Clear();
  60. if ($RoleIsDatacenter -ne $true)
  61. {
  62. if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
  63. {
  64. $sysMbx = $null;
  65. $name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
  66. $dispname = "Microsoft Exchange";
  67. $mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
  68. if ( $mbxs.length -eq 0)
  69. {
  70. $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
  71. if ($dbs.Length -ne 0)
  72. {
  73. $arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
  74. if ($arbUsers.Length -ne 0)
  75. {
  76. $sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;
  77. }
  78. }
  79. }
  80. else
  81. {
  82. if ($mbxs[0].DisplayName -ne $dispname )
  83. {
  84. set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;
  85. }
  86. $sysMbx = $mbxs[0];
  87. }
  88.  
  89. # Set the Organization Capabilities needed for this mailbox
  90. if ($sysMbx -ne $null)
  91. {
  92. Write-ExchangeSetupLog -Info ("Setting mailbox properties.");
  93. set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;
  94.  
  95. # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.
  96. # This can be remove after BUG(O15#2555914) is fixed.
  97. if ($sysMbx.RetentionPolicy -eq $null )
  98. {
  99. $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});
  100. set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;
  101. }
  102. }
  103. else
  104. {
  105. Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");
  106. }
  107. }
  108. else
  109. {
  110. write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."
  111. }
  112. }
  113. " was run: "Database is mandatory on UserMailbox. Property Name: Database".
  114.  
  115. Error:
  116. The following error was generated when "$error.Clear();
  117. if ($RoleIsDatacenter -ne $true)
  118. {
  119. if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
  120. {
  121. $sysMbx = $null;
  122. $name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
  123. $dispname = "Microsoft Exchange";
  124. $mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
  125. if ( $mbxs.length -eq 0)
  126. {
  127. $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
  128. if ($dbs.Length -ne 0)
  129. {
  130. $arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
  131. if ($arbUsers.Length -ne 0)
  132. {
  133. $sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;
  134. }
  135. }
  136. }
  137. else
  138. {
  139. if ($mbxs[0].DisplayName -ne $dispname )
  140. {
  141. set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;
  142. }
  143. $sysMbx = $mbxs[0];
  144. }
  145.  
  146. # Set the Organization Capabilities needed for this mailbox
  147. if ($sysMbx -ne $null)
  148. {
  149. Write-ExchangeSetupLog -Info ("Setting mailbox properties.");
  150. set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;
  151.  
  152. # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.
  153. # This can be remove after BUG(O15#2555914) is fixed.
  154. if ($sysMbx.RetentionPolicy -eq $null )
  155. {
  156. $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});
  157. set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;
  158. }
  159. }
  160. else
  161. {
  162. Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");
  163. }
  164. }
  165. else
  166. {
  167. write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."
  168. }
  169. }
  170. " was run: "Database is mandatory on UserMailbox.".
  171.  
  172. Error:
  173. The following error was generated when "$error.Clear();
  174. if ($RoleIsDatacenter -ne $true)
  175. {
  176. if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
  177. {
  178. $sysMbx = $null;
  179. $name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";
  180. $dispname = "Microsoft Exchange";
  181. $mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
  182. if ( $mbxs.length -eq 0)
  183. {
  184. $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
  185. if ($dbs.Length -ne 0)
  186. {
  187. $arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
  188. if ($arbUsers.Length -ne 0)
  189. {
  190. $sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;
  191. }
  192. }
  193. }
  194. else
  195. {
  196. if ($mbxs[0].DisplayName -ne $dispname )
  197. {
  198. set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;
  199. }
  200. $sysMbx = $mbxs[0];
  201. }
  202.  
  203. # Set the Organization Capabilities needed for this mailbox
  204. if ($sysMbx -ne $null)
  205. {
  206. Write-ExchangeSetupLog -Info ("Setting mailbox properties.");
  207. set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;
  208.  
  209. # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.
  210. # This can be remove after BUG(O15#2555914) is fixed.
  211. if ($sysMbx.RetentionPolicy -eq $null )
  212. {
  213. $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});
  214. set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;
  215. }
  216. }
  217. else
  218. {
  219. Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");
  220. }
  221. }
  222. else
  223. {
  224. write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."
  225. }
  226. }
  227. " was run: "Database is mandatory on UserMailbox. Property Name: Database".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement