NAME

New-HPOVLdapGroup

SYNOPSIS

Add a new Directory Group to appliance.

SYNTAX

New-HPOVLdapGroup [-authProvider] <String> [-GroupName] <String> [-Roles] <Array> [-UserName] <String> [-Password] <SecureString> [<CommonParameters>]

DESCRIPTION

This cmdlet provides the ability to add a new Directory Group to the appliance. You can use the Show-HPOVLdapGroups to retrieve a list of avialable Directory Groups from the specified Directory.

PARAMETERS

-authProvider <String>
Alias ['d','domain','directory']

LDAP/Active Directory Domain Name

Required? true
Position? 1
Default value <none>            
Accept pipeline input? false
Accept wildcard characters?   false

-GroupName <String>
Alias ['g','group', 'name']

Directroy Group to add

Required? true
Position? 2
Default value <none>             
Accept pipeline input? false
Accept wildcard characters?   false

-Roles <Array>
Alias ['r','role']

The role(s) to assign to the Directroy Group, in System.Array format.  Accepted values are:

  • Read only
  • Infrastructure administrator
  • Server administrator
  • Network administrator
  • Backup administrator

e.g. $roles = @("Server administrator","Network administrator")

Required? true
Position? 3
Default value <none>             
Accept pipeline input? false
Accept wildcard characters?    false

-UserName <String>
Alias ['u']

Username to authenticate with

Required? true
Position? 4
Default value <none>             
Accept pipeline input? false
Accept wildcard characters? false

-Password <SecureString>
Alias ['p']

User account password

Required? true
Position? 5
Default value <none>            
Accept pipeline input? true (ByValue)
Accept wildcard characters? false


<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

Accepted:  System.SecureString

OUTPUTS

Formatted table displaying found directory groups.

System.Array

RELATED LINKS

EXAMPLES

-------------------------- EXAMPLE 1 --------------------------

PS C:\>New-HPOVLdapGroup -d Domain1 -GroupName "MY Directory Group1" -roles @("Server administrator") -u 'Sarah Peterson'

Add "MY Directory Group1" from Domain1 with Server Administrator role and prompt for password for group validation.
-------------------------- EXAMPLE 2 --------------------------

PS C:\>$roles = @("Server administrator","Backup administrator")
PS C:\> $password = convertto-securestring -asplaintext "password123890" -force
PS C:\> New-HPOVLdapGroup -d Domain1 -GroupName "MY Directory Group1" -roles $roles -u 'Sarah Peterson' -p $password

Add "MY Directory Group1" from Domain1 with Server and Backup administrator roles, and specify password for group validation.

Last edited Jan 29, 2014 at 10:16 PM by ChrisLynchHP, version 2