Zerto Virtual Replication Cmdlets Reference : Import-Settings
  
Import-Settings
Imports details of all the VPGs for both the Zerto Virtual Manager where the cmdlet is run and for the VPGs on the paired site.
Syntax
Import-Settings [-ZVMIP] <String> [-ZVMPort] <Int32> [-Username] <String> [-Password] <String> [-FilePath] <String> [[LegacyImport]] [-Wait <int32>] [<Common&RiskParameters>]
Description
The Import-Settings cmdlet imports details of all the VPGs, either protected or recovered to the site of the Zerto Virtual Manager where the cmdlet is run. When the Zerto Virtual Manager is paired with multiple sites the VPGs can be from any of these paired sites, as long as they were either protected or recovered to the site of the Zerto Virtual Manager where the cmdlet is run. The details are imported from an XML file that was previously exported using the Export-Settings cmdlet run from the same Zerto Virtual Manager site as the import is run.
Parameters
[-ZVMIP] <String>
The IP address of the machine where the Zerto Virtual Manager is installed that is used to process the cmdlet.
Required?
True
Position?
1 or named
Default Value
None
Accept Wildcard Characters?
False
[-ZVMPort] <Int32>
The HTTP port used for inbound communication with the Zerto Virtual Manager for APIs and cmdlets, specified during the installation. The default port recommended during installation is 9080.
Required?
True
Position?
2 or named
Default Value
None
Accept Wildcard Characters?
False
[-Username] <String>
A username defined in the users.txt file in the Zerto Virtual Replication installation folder, for the Zerto Virtual Manager where the cmdlet is run.
Required?
True
Position?
3 or named
Default Value
None
Accept Wildcard Characters?
False
[-Password] <String>
The password for the specified username, in the users.txt file in the Zerto Virtual Replication installation folder, for the Zerto Virtual Manager where the cmdlet is run, encrypted using SHA-1.
Required?
True
Position?
4 or named
Default Value
None
Accept Wildcard Characters?
False
[-FilePath] <String>
The file name and path where the site settings are saved.
Required?
True
Position?
5 or named
Default Value
None
Accept Wildcard Characters?
False
[LegacyImport] <String>
Whether the import is for versions of Zerto Virtual Replication prior to version 1.0U8. By default the value is false and can be ignored.
Required?
False
Position?
6 or named
Default Value
False
Accept Wildcard Characters?
False
-Wait <Int32>
The number of seconds to wait before timing out.
Required?
False
Position?
Named
Default Value
None
Accept Wildcard Characters?
False
<Common&RiskParameters>
This cmdlet supports the parameters described in Optional PowerShell Parameters.
Inputs and Outputs
The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet returns.
Inputs
None.
Outputs
Import-Settings returns the task identifiers for the command and the site identifiers where the VPGs are restored.
Note: The cmdlet output contains the details of all the VPGs from both the site where the cmdlet is run and from the peer site in XML format.
See Also
Export-Settings
Unprotect-Vpg
Example 1
PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> Import-Settings 182.24.123.123 9080 administrator password -FilePath ’C:\ZertoUpgrade\Export.xml’
This command imports the details of every VPG to both the site where the cmdlet is run and with its paired site. The details are imported from the file Export.xml in C:\ZertoUpgrade on the local computer where the cmdlet is run. The Zerto Virtual Manager site used to process the cmdlet runs on IP 182.24.123.123 and port 9080.
The cmdlet returns the command task identifiers and site identifiers for the restored VPGs. For example, the following shows that three VPGs were restored, two on site a251dfb0-d3be-410b-882c-dfef29002b04 and one on site 6d7b297c-a2d6-417c-b38c-d2679f0e17f8:
Identifier                               SiteId
----------                               ------
4ce4821d-f269-434e-94fa-46e86083463d     a251dfb0-d3be-410b-882c-dfef29002b04
3f7dc72a-af8b-453e-bbe2-0c183e46b703     a251dfb0-d3be-410b-882c-dfef29002b04
5e81d46e-c49e-4b2c-b65a-d742a4939192     6d7b297c-a2d6-417c-b38c-d2679f0e17f8