Error AC Get-SCRelationshipClass
I use PS script and I have CMDlet
$affectedUserRelClass = Get-SCSMRelationshipClass -Name System.WorkItemAffectedUser
I have error
An error was written to the Error stream!
The term 'Get-SCRelationshipClass' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
System.Center.Service.Manager
When I user this CMDlet without AC it work, but in AC it don't work, what it can be?
Answers
I solved this issue with the following import: