This will update a company type association.
Update-CWMCompanyTypeAssociation [-CompanyID] <Int32> [-TypeAssociationID] <Int32> [-Operation] <Object> [-Path] <String> [-Value] <String> [<CommonParameters>]
The ID of the company that you are updating. Get-CWMCompanies
Required true
Position 1
Default value 0
Accept pipeline input false
Accept wildcard characters false
The TypeAssociationID of the company that you are updating. Get-CWMCompanyTypeAssociation
Required true
Position 2
Default value 0
Accept pipeline input false
Accept wildcard characters false
What you are doing with the value.
replace
Required true
Position 3
Default value
Accept pipeline input false
Accept wildcard characters false
The value that you want to perform the operation on.
Required true
Position 4
Default value
Accept pipeline input false
Accept wildcard characters false
The value of that operation.
Required true
Position 5
Default value
Accept pipeline input false
Accept wildcard characters false
PS C:\>$UpdateParam = @{
CompanyID = $Company.id
TypeAssociationID = $TypeAssoc.id
Operation = 'replace'
Path = 'name'
Value = $NewName
}
Update-CWMCompanyTypeAssociation @UpdateParam
Author: Chris Taylor
Date: 10/10/2018