Hi Team,
when trying to update the owner of AD group to AD Group we are getting below error.Please help
ErrorMessages = (2019-07-16 15:10:53.297) Last action taken by target system provider was: Error executing script
F:\ADUtils\ADSGroup-SetAllowWriteMembersKerberos.bat false "CN=AMS: NA Alpha Current and Upcoming Backlog CRs,OU=Distribution-Groups,OU=Users and Groups,OU=USA,OU=AMS,OU=Organizations,DC=*******,DC=com" "" "HQEBGE0102.*******.com" "AMSNAAlphaCurrentandUpcomingBacklogCRs"
script returned:
New-PSSession : [amsnaalphacurrentandupcomingbacklogcrs] Connecting to remote
server amsnaalphacurrentandupcomingbacklogcrs failed with the following error
message : WinRM cannot process the request. The following error occurred while
using Kerberos authentication: The computer
AMSNAAlphaCurrentandUpcomingBacklogCRs is unknown to Kerberos. Verify that the
computer exists on the network, that the name provided is spelled correctly,
and that the Kerberos configuration for accessing the computer is correct. The
most common Kerberos configuration issue is that an SPN with the format
HTTP/AMSNAAlphaCurrentandUpcomingBacklogCRs is not configured for the target.
If Kerberos is not required, specify the Negotiate authentication mechanism
and resubmit the operation. For more information, see the
about_Remote_Troubleshooting Help topic.
At F:\ADUtils\ADSGroup-SetAllowWriteMembersKerberos.ps1:41 char:12
+ $session = New-PSSession -Configurationname Microsoft.Exchange
-ConnectionUri "h ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:Re
moteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : NetworkPathNotFound,PSSessionOpenFailed
Import-PSSession : Cannot validate argument on parameter 'Session'. The
argument is null. Supply a non-null argument and try the command again.
At F:\ADUtils\ADSGroup-SetAllowWriteMembersKerberos.ps1:42 char:24
+ $SS = Import-PsSession $session -DisableNameChecking -AllowClobber
-WarningActio ...
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Import-PSSession], ParameterBi
ndingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power
Shell.Commands.ImportPSSessionCommand
Remove-PSSession : Cannot validate argument on parameter 'Id'. The argument is
null. Supply a non-null argument and try the command again.
At F:\ADUtils\ADSGroup-SetAllowWriteMembersKerberos.ps1:182 char:18
+ Remove-PSSession $session
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Remove-PSSession], ParameterBi
ndingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power
Shell.Commands.RemovePSSessionCommand
Process task Execute Script failed.