Article ID: 127214, created on Oct 21, 2015, last review on Oct 21, 2015

  • Applies to:
  • Operations Automation 6.0

Symptoms

While adding the node with WPE role to OA the task 'Prepare node 'WPESRV' to PA agent installation' fails with the following output:

Last execution output:
Failed to execute command '/usr/local/pem/roles//WPE/setup_iis_features.ps1'. Check logs in 'c:\POA_Deploy' at host '172.16.32.153' for more details about the reasons of failure.

The following is found in the C:\POA_Deploy\setup_iis_features.log log file on target node.

Path to Windows distribution ''
Add-WindowsFeature : You do not have adequate user rights to make changes to the target computer. If you are already a
member of the Administrators group on the target computer, the changes might have failed because of security
restrictions imposed by User Account Control. Try running Install-WindowsFeature in a Windows PowerShell session that
has been opened with elevated rights (Run as administrator).
At C:\POA_Deploy\setup_iis_features.ps1:76 char:1
+ Add-WindowsFeature $RequiredFeatures -Confirm:$false -IncludeAllSubFeature -logP ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : PermissionDenied: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],
    Exception
    + FullyQualifiedErrorId : Provider_UserIsNotAdmininistrator,Microsoft.Windows.ServerManager.Commands.AddWindowsFea
   tureCommand
Path to Windows distribution ''
Add-WindowsFeature : You do not have adequate user rights to make changes to the target computer. If you are already a
member of the Administrators group on the target computer, the changes might have failed because of security
restrictions imposed by User Account Control. Try running Install-WindowsFeature in a Windows PowerShell session that
has been opened with elevated rights (Run as administrator).

Cause

Such error can occurs if the local Administrator account and the Domain Administrator account do not share the same password and UAC is on.

Resolution

Disable UAC on target host using Technet article.

Search Words

Add-WindowsFeature : You do not have adequate user rights to make changes to the target computer. If you are already a member of the Administrators group on the target computer, the changes might have failed because of security restrictions imposed by User Account Control. Try running Install-WindowsFeature in a Windows PowerShell session that has been opened with elevated rights (Run as administrator).

Add-WindowsFeature : You do not have adequate user rights to make changes to the target computer. If you are already a member of the Administrators group on the target computer, the changes might have failed because of security restrictions imposed by User Account Control. Try running Install-WindowsFeature in a Windows PowerShell session that has been opened with elevated rights (Run as administrator).

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF