Assign Service Account Full Control to Logs Folder


Summary

This article provide a summary on how to assign Full Control to Logs Folder.

Applies To

This article applies to MachPanel all build versions.

Symptoms\Error

If you are getting following error Message while creating Lync OU then you have to assign Service Account Permissions to logs Folders.

»» Getting Lync Hosting Information
»» Creating OU and SIP Domain.
»» SIP Domain creation Failed. Detail: Create SIP Domain : Error removing Simple url entry: Error publishing topology: Error processing PS command: out-file : Access to the path 'C:\Program Files\Remote Server\logs\Topology_MachPanel.xml' is denied. At C:\Program Files\Remote Server\logs\E99E0984.ps1:2 char:1 + (Get-CsTopology -AsXml).ToString() > 'C:\Program Files\Remote ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (:) [Out-File], UnauthorizedAccessException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand Publish-CsTopology : Failed to load "C:\Program Files\Remote Server\logs\Topology_MachPanel.xml": Could not find file 'C:\Program Files\Remote Server\logs\Topology_MachPanel.xml'.. Specify a valid topology file and try again. At C:\Program Files\Remote Server\logs\E99E0984.ps1:3 char:2 + Publish-CsTopology -FileName 'C:\Program Files\Remote Server\ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Publish-CsTopology], FileNotFoundException + FullyQualifiedErrorId : Cannot access file.,Microsoft.Rtc.Management.Deployment.PublishTopologyCmdlet Publish-CsTopology : Command execution failed: Could not find file 'C:\Program Files\Remote Server\logs\Topology_MachPanel.xml'. At C:\Program Files\Remote Server\logs\E99E0984.ps1:3 char:2 + Publish-CsTopology -FileName 'C:\Program Files\Remote Server\ ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [Publish-CsTopology], FileNotFoundException + FullyQualifiedErrorId : ProcessingFailed,Microsoft.Rtc.Management.Deployment.PublishTopologyCmdlet

Solution
  • Open Lync Remoter Server where MachPanel agent has been installed. Navigate to the following path: Program Files>> MachSol >> MachPanel Remote Server
  • Right click on Logs Folder and click on Properties. See the snapshot below:

  • Under Security tab, Click on Edit button as shown in the snapshot below:

  • Add a Service Account For e.g. MPAdmin



  • Assign Full Control to that Service account as shown in the snapshot below: