These commands create an instance of a relationship.
Parameters
-ComputerName
Specifies the name of the computer on which the System Center Data Access service is running.
The user account that is specified in the Credential parameter must have access rights to the specified computer.
Parameter properties
Type:
System.String[]
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Credential
Specifies the credentials to be used when you are connecting to the server on which the System Center Data Access service is running.
The specified user account must have access rights to that server.
Parameter properties
Type:
System.Management.Automation.PSCredential
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-PassThru
Specifies the output object that represents the new relationship.
This output object can be passed to other cmdlets.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-RelationshipClass
Specifies the class of the relationship to be created.
Specifies the properties and the values of the target class.
Parameter properties
Type:
System.Collections.Hashtable
Default value:
None
Supports wildcards:
False
DontShow:
False
Parameter sets
FromRelationshipSourceObjectAndTargetClass
Position:
4
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
FromRelationshipSourceAndTargetClasses
Position:
4
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.