< Back

Import-XDSite

Mon Jan 13, 2020 8:15 am

NAME Import-XDSite



SYNOPSIS

Imports XD site information from object





SYNTAX

Import-XDSite [[-xdhost] <String>] [[-xmlpath] <String>] [[-xdexport] <Object>] [-ignoreenable] [-WhatIf]

[-Confirm] [<CommonParameters>]





DESCRIPTION

Imports XD site information from object





PARAMETERS

-xdhost <String>

XenDesktop DDC hostname to connect to



Required? false

Position? 1

Default value localhost

Accept pipeline input? false

Accept wildcard characters? false



-xmlpath <String>

Path used for XML file location on import and export operations



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-xdexport <Object>

XD site object to import



Required? false

Position? 3

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-ignoreenable [<SwitchParameter>]

Ignores setting the Enable flag on apps and desktops



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:\\>$exportedobject|Import-XDSite -xdhost DDC02.DOMAIN.COM



Imports data to DDC02.DOMAIN.COM and returns as object









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



PS C:\\>Import-XDSite -xdhost DDC02.DOMAIN.COM -xmlpath "C:\\temp\\mypath.xml"



Imports data to DDC02.DOMAIN.COM from XML file C:\\temp\\mypath.xml









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Import-XDSite -xdhost DDC02.DOMAIN.COM -xdexport $myexport



Imports data to DDC02.DOMAIN.COM from variable $myexport









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>Import-XDSite -xdhost DDC02.DOMAIN.COM -xdexport $myexport -ignoreenable



Imports data to DDC02.DOMAIN.COM from variable $myexport and does not change any existing disable\\enable settings

for applications and desktops











RELATED LINKS