< Back

New-XDAdminFolder

Mon Jan 13, 2020 8:15 am

NAME New-XDAdminFolder



SYNOPSIS

Checks for and creates administrative folder if not found





SYNTAX

New-XDAdminFolder [-folder] <String> [[-xdhost] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Checks for and creates administrative folder if not found





PARAMETERS

-folder <String>

Folder to validate and create



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-xdhost <String>

XenDesktop DDC hostname to connect to



Required? false

Position? 2

Default value localhost

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:\\>$folders = @("MyFolder1","MyFolder2","MyFolder3")



$folders|New-XDadminfolder

Tests and creates MyFolder1, MyFolder2 and MyFolder3 admin folders









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



PS C:\\>New-XDadminfolder -folder "TestA\\\\TestB\\\\TestC" (USE SINGLE SLASH)



Tests and creates folders as \\\\TestA\\\\TestB\\\\TestC











RELATED LINKS