SCSM - Create Relationship with Powershell

Mike 11 Reputation points
2021-01-19T06:09:33.327+00:00

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.

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
209 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 14,236 Reputation points
    2021-01-20T09:33:05.393+00:00

    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

    0 comments No comments