Solved

Exchange 2010 SP2 Rollup6 broke the management tools?

Posted on 2013-05-13
8
796 Views
Last Modified: 2013-07-29
Installed rollup6 for sp2 on Sunday, rebooted server afterwards and now this morning trying to run updatecas.ps1 within the EMS on the server itself results in:

[PS] C:\Program Files\microsoft\Exchange Server\v14\bin>./updatecas.ps1
Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.E2010' is not installed on this
 machine.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:36 char:13
+ add-PSSnapin <<<<  -Name Microsoft.Exchange.Management.PowerShell.E2010
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...owerShell.E2010:String) [Add-PSSnapin], PSArgumentEx
   ception
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

[08:18:45] ***********************************************
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:18:46] * UpdateCas.ps1: 5/13/2013 8:18:46 AM
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:18:48] Updating OWA/ECP on server MI-2K8-EXCH
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:18:48] Finding ClientAccess role install path on the filesystem
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:18:49] Updating OWA to version 14.2.342.3
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:18:49] Copying files from 'C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\owa\Current' to 'C:\Program
Files\Microsoft\Exchange Server\V14\ClientAccess\owa\14.2.342.3'
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:19:03] Found 1 OWA virtual directories.
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:19:03] Updating OWA virtual directories
Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[08:19:03] Error updating OWA/ECP: Access is denied.

Add-Content : Access to the path 'C:\ExchangeSetupLogs\UpdateCas.log' is denied.
At C:\Program Files\microsoft\Exchange Server\v14\bin\UpdateCas.ps1:27 char:13
+     add-content <<<<  -Path "$logDir\UpdateCas.log" -Value $line
    + CategoryInfo          : PermissionDenied: (C:\ExchangeSetupLogs\UpdateCas.log:String) [Add-Content], Unauthorize
   dAccessException
    + FullyQualifiedErrorId : GetContentWriterUnauthorizedAccessError,Microsoft.PowerShell.Commands.AddContentCommand

[PS] C:\Program Files\microsoft\Exchange Server\v14\bin>

Open in new window


Now before someone asks.. Yes the Management tools are installed, i actually reran the setup to make sure the checkmark was in the box for them.. it was.  And teh Event Viewer shows nothing related to this.. only the OWA errors that I'm trying to resolve with the UpdateCAS script.  Now initially EMS would'nt open up correctly, complaining about missing the RemoteExchange script, I copied the one from my second server to get it working correctly.
0
Comment
Question by:Ben Hart
  • 5
  • 3
8 Comments
 
LVL 14

Author Comment

by:Ben Hart
ID: 39161302
I think i partially fixed this.. number 1 for some reason the same user account I've used to install, and maintain exchange for two years lost write perms to the Exchangesetuplogs folder, so I added that.  Then the updatecas script ran but errored on copying the Current folder contents to 12.2.342.3 folder.  I manually copied those and at least resolved my OWA issue.
0
 
LVL 22

Expert Comment

by:Rick Hobbs
ID: 39163523
Rerun the rollup as Administrator.  That should resolve any remaining issues.
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 39164394
I login to this box with an account that's both local and exchange org admin, if that makes any difference.  The same account I have used for the other rollups including SP2.
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 22

Expert Comment

by:Rick Hobbs
ID: 39173656
Is the account also Domain Admin?
0
 
LVL 14

Author Comment

by:Ben Hart
ID: 39191207
Actually yes it was also a domain admin.  I did resolve the issue via the above post, but I was hoping I could figure out why it happened.
0
 
LVL 22

Expert Comment

by:Rick Hobbs
ID: 39197403
So what you did completely resolved the issues or re-running SP2 resolved the issues?
0
 
LVL 14

Accepted Solution

by:
Ben Hart earned 0 total points
ID: 39208408
No I guess I fixed my issue by adding modify permissions to that logs folder for my domain admin account,  then manually copying those files that are normally moved via UpdateCAS.ps1.
0
 
LVL 14

Author Closing Comment

by:Ben Hart
ID: 39363150
Manually copying the files moved by UpdateCAS.ps1 is what resolved the issue.
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question