Search
-
Re: Use -filter with Get-SCSMRelationshipObject
I've only used said parameter in a limited capacity, but I think/hope this is what you're after: #classes $irClass = Get-SCSMClass -Name "System.WorkItem.Incident$" $assignedToUserRelClass = Get-SCSMRelationshipClass -Name "System.WorkItemAssignedToUser$" #an incident $incident = Get-SCSMObject -Class $irClass -Filter… -
Use -filter with Get-SCSMRelationshipObject
Hello guys, does anyone know, how to use the -filter switch in the Get-scsmrelationshipobject function correctly? I have a request with multiple SW Assets for installation and for every Asset I check if it is allowed. If it is not, the relationship to that certain Service Request shall be deleted. I tried it with -Filter… -
Re: Use -filter with Get-SCSMRelationshipObject
Hello @Adam_Dzyacky , thank you for the answer, I really appreciate that :) I guess I forgot to mention that I already use the -Filter in other scripts for receiving RelObjects by Source, where I only want certain Relationship Types ( I learned the hard way, that it's not possible to use the -Relationship switch when using…