question

Mike-5893 avatar image
0 Votes"
Mike-5893 asked ·

SCSM - Create Relationship with Powershell

Hey Guys,

Sorry in advanced but I'm looking into SCSM as a new born babe. What I'm trying to do is create a relationship between a Computer and an imported CSV that contains a service tag. The Service Tag is part of the Computer Name. So in its dumbest form, what id liked to do is as follows:

Create relationship with Computer if ComputerName -like *ServiceTag

I would essentially like to use Orchestrator to systematically run and create the links. I would like to add that these classes would be under separate management packs.

msc-service-manager-generalmsc-service-manager-authoring
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XinGuo-MSFT avatar image
0 Votes"
XinGuo-MSFT answered ·

Hi,

Create relationship with Computer if ComputerName -like *ServiceTag

Could you give us an example?

There is a relevant blog you can reference:

SCSM PowerShell: Working with Relationships


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.