external help file | Module Name | online version | schema |
---|---|---|---|
DellOpenManage-help.xml |
DellOpenManage |
2.0.0 |
Search a directory service for groups
Get-OMEDirectoryServiceSearch [-Name] <Object> [-DirectoryService] <AccountProvider>
[[-DirectoryType] <String>] [-UserName] <String> [-Password] <SecureString> [<CommonParameters>]
This script uses the OME REST API. Note that the credentials entered are not stored to disk.
Get-OMEDirectoryServiceSearch -Name "Admin" -DirectoryService $(Get-OMEDirectoryService -DirectoryType "AD" -Name "LAB.LOCAL") -DirectoryType "AD" -UserName "[email protected]" -Password $(ConvertTo-SecureString 'calvin' -AsPlainText -Force) -Verbose | Format-Table
String containing group name to search
Type: Object
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Object of type AccountProvider returned from Get-OMEDirectoryService commandlet
Type: AccountProvider
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Directory type (Default="AD", "LDAP")
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: AD
Accept pipeline input: False
Accept wildcard characters: False
Username to login to the Directory Service
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Password to login to the Directory Service
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 5
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.