PowerShell Logo Small

Export-IscsiTargetServerConfiguration



This is the built-in help made by Microsoft for the command 'Export-IscsiTargetServerConfiguration', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Exports an iSCSI Target Server configuration.

SYNTAX


Export-IscsiTargetServerConfiguration [-Filename] <String> [[-ComputerName] <String>] [[-Credential] <String>] [-Force] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Export-IscsiTargetServerConfiguration cmdlet exports a Microsoft iSCSI Target Server configuration. Use this cmdlet to archive an iSCSI Target Server configuration, or
to create a file to import by using the Import-IscsiTargetServerConfiguration cmdlet.


The configuration information includes the following:

-- If the cmdlet exports the configuration from a clustered iSCSI Target Server instance, the resource group name.
-- For an import of the configuration into an iSCSI Target Server clustered instance, the name of the resource group into which to import the configuration. This resource
group name is the same as the iSCSI virtual disk attribute named MigrationResourceGroup.
-- The following attributes for each iSCSI target that iSCSI Target Server hosts: Enabled (target state), HostName, TargetIQN, Description, ResourceGroup,
MigrationResourceGroup, EnforceIdleTimeoutDetection, FirstBurstLength, MaxBurstLength, MaxRecvDataSegmentLength, NumRecvBuffers, EnableCHAP, CHAPUserName, EnableReverseCHAP,
ReverseCHAPUserName, InitiatorIDs, and LunMappings.
-- The following attributes for each iSCSI virtual disk that iSCSI Target Server recognizes: DiskId, Type, Enabled, DevicePath, ParentPath, Description, SnapshotStorageSize,
MigrationDevicePath, MigrationParentPath, and MigrationResourceGroup.


MigrationParentPath and ParentPath always have a value of null.


This cmdlet does not export Challenge Handshake Authentication Protocol (CHAP) secret keys, logical unit (LU) snapshot information, or transient state information such as
current session information.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=294065
Import-IscsiTargetServerConfiguration

REMARKS

<

Examples


Example 1: Export configuration of a standalone server

PS C:\>Export-IscsiTargetServerConfiguration -Filename "D:\Server07Config.xml" –ComputerName "StandAloneIscsiServer07.Contoso.com" "



This command exports the iSCSI Target Server configuration of a standalone iSCSI Target Server to a specified file.




Example 2: Export configuration of a clustered server

PS C:\>Export-IscsiTargetServerConfiguration -Filename "D:\Server07Config.xml" –ComputerName "ClusteredIscsiInstance07.Contoso.com" –Force



This command exports the iSCSI Target Server configuration of a clustered iSCSI Target Server to a specified file. The command includes the Force, and, therefore, it
overwrites an existing file without prompting you.




Example 3: Export configuration of all clustered servers in a specified node

PS C:\>Export-IscsiTargetServerConfiguration -Filename "D:\Node22config.xml" –ComputerName "Node22-iSCSIServer.Contoso.com"



This command exports the iSCSI Target Server configuration of all clustered iSCSI Target Server instances hosted on the named cluster node to a specified file.