< Back

new-aldirectory

Mon Jan 13, 2020 7:43 am

NAME new-aldirectory



SYNOPSIS

Creates Directory Junction





SYNTAX

new-aldirectory [-websession] <Object> [-name] <String> [-serveraddress] <String> [[-port] <String>] [-usessl]

[-username] <String> [-adpassword] <String> [-basedn] <String> [-force] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Creates Directory Junction





PARAMETERS

-websession <Object>

Existing Webrequest session for ELM Appliance



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-name <String>

Junction name



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-serveraddress <String>

AD server to connect



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-port <String>

AD port (uses 389 and 636 by default)



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-usessl [<SwitchParameter>]

Connect via SSL



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-username <String>

AD username (eg admin@domain.com)



Required? true

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-adpassword <String>

AD password



Required? true

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-basedn <String>

Base AD DN



Required? true

Position? 7

Default value

Accept pipeline input? false

Accept wildcard characters? false



-force [<SwitchParameter>]

Skip AD tests



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



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



PS C:\\>new-aldirectory -websession $websession -serveraddress "mydc.domain.com" -Verbose -username

"admin@domain.com" -adpassword "MYPASSWORD" -basedn DC=domain,DC=com -name "Mydirectory"













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>new-aldirectory -websession $websession -serveraddress "mydc.domain.com" -Verbose -usessl -username

"admin@domain.com" -adpassword "MYPASSWORD" -basedn DC=domain,DC=com -name "Mydirectory"















RELATED LINKS