SCSM - Create Relationship with Powershell

Mike 11 Reputation points

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.
210 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 14,861 Reputation points


    >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