external help file | Module Name | online version | schema |
---|---|---|---|
DellOpenManage-help.xml |
DellOpenManage |
2.0.0 |
Import directory group and assign to role from directory service
Invoke-OMEDirectoryServiceImportGroup [-DirectoryService] <AccountProvider>
[-DirectoryGroups] <DirectoryGroup[]> [-Role] <Role> [<CommonParameters>]
This script uses the OME REST API. Note that the credentials entered are not stored to disk.
Invoke-OMEDirectoryServiceImportGroup -DirectoryService $(Get-OMEDirectoryService -DirectoryType "AD" -Name "LAB.LOCAL") -DirectoryGroups $(Get-OMEDirectoryServiceSearch -Name "Admin" -DirectoryService $(Get-OMEDirectoryService -DirectoryType "AD" -Name "LAB.LOCAL") -DirectoryType "AD" -UserName "[email protected]" -Password $(ConvertTo-SecureString 'calvin' -AsPlainText -Force)) -Role $(Get-OMERole -Name "chassis") -Verbose
Import directory group
Object of type AccountProvider returned from Get-OMEDirectoryService commandlet
Type: AccountProvider
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Object of type DirectoryGroup returned from Get-OMEDirectoryServiceSearch commandlet
Type: DirectoryGroup[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Array of Objects of type Role returned from Get-OMERole commandlet
Type: Role
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.