Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2101

Permissions Issue when Installing MMS Monitoring on Windows

    XMLWordPrintableJSON

Details

    Description

      When preparing the system to run MMS, I ran into a permissions issue with a command I was instructed to use. This is a problem because when we're stepping people through this, they may be prevented from installing MMS if our instructions don't work for them. I suggest we determine the scope of the error, and possibly update the doc.

      Steps to reproduce:

      I went to this URL: http://mms.mongodb.com/help/monitoring/tutorial/install-the-mms-agent-on-windows/

      On "Install Agent Software," step 4, when I input "Get-ExecutionPolicy", it was "Restricted." As per the instructions, I then input "Set-ExecutionPolicy -ExecutionPolicy Unrestricted".

      As mentioned, this was on Windows 7, with VertualBox, on an administrative account.

      When it asked me to confirm, it replied:

      "Set-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE|SOFTWARE|Microsoft\PowerShell\1\ShellIds\Microsoft.Powershell' is denied. At line:1 char:20 + Set Execution Policy <<<< + CategoryInfo: NotSpecified: (:) [Set-ExecutionPolicy], UnauthorizedAccessException  + FullyQalifiedErrorId: System.UnauthorizedAccessException,Microsoft.Powershell.Commands.SetExecutionPolicyCommand

      It did not change the policy.

      I found the solution here: http://stackoverflow.com/questions/4647429/powershell-on-windows-7-set-executionpolicy-for-regular-users

      under the 2nd answer:

      Set-ExecutionPolicy Unrestricted -Scope CurrentUser

      (this worked)
      Apparrently, this only sets the execution policy for the current user (in HKEY_CURRENT_USER) rather than the entire local machine (HKEY_LOCAL_MACHINE).

      Attachments

        Activity

          People

            tim.slavin Tim Slavin
            william.cross William Cross
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 3 weeks, 5 days ago