en-US/HPEMigrationAdvisoryTool.dll-Help.xml
<?xml version="1.0" encoding="utf-8"?>
<helpItems xmlns="http://msh" schema="maml"> <!--Edited with: SAPIEN PowerShell HelpWriter 2018 v2.2.38--> <!--Generated by: SAPIEN PowerShell HelpWriter 2017 v2.1.34--> <!-- Module: HPEMigrationAdvisoryTool Version: 1.0.0.0 --> <!--All Commands--> <command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10"> <!--TAG: HASCOMMONPARAMETERS--> <!--Command--> <command:details> <command:name>Invoke-HPECmdletMigration</command:name> <maml:description> <maml:para>The Invoke-HPECmdletMigration provides migration suggestion for HPE Cmdlets.</maml:para> </maml:description> <maml:copyright> <maml:para></maml:para> </maml:copyright> <command:verb>Invoke</command:verb> <command:noun>HPECmdletMigration</command:noun> <dev:version /> </command:details> <maml:description> <maml:para>The Cmdlet Invoke-HPECmdletMigration provides migration advises for the breaking changes in Cmdlet, parameter, property and value in the new HPE cmdlet module.</maml:para> <maml:para>The Cmdlet migration suggestions are categorised as below . New :- The cmdlet introduced in the latest release which is required to use with existing cmdlets. . Rename :- The existing Cmdlet, parameter, property and value are renamed. . Classify :- The existing Cmdlet parameter(s)/properties are regrouped into new Cmdlet. . Merge :- The existing Cmdlet parameters/properties are merge into new Cmdlet. . Fragment :- The existing Cmdlet parameters/properties are splited into the new Cmdlet. . Obsolete :- The existing Cmdlet is no more supported in new module.</maml:para> <maml:para>This Cmdlet provide migration suggestion for the following items 1) Cmdlet module name 2) Cmdlet 3) Parameter 4) Property 5) Value</maml:para> </maml:description> <command:syntax> <!--Parameter Sets--> <command:syntaxItem parametersetname="__AllParameterSets"> <!--NAME: __AllParameterSets--> <maml:name>Invoke-HPECmdletMigration</maml:name> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScriptFile</maml:name> <maml:description> <maml:para>Specify the valid powerShell script file path. It accepts only .psm1 and .ps1 file.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named"> <maml:name>CmdletModule</maml:name> <maml:description> <maml:para>Specify the Cmdlet module(s) whose cmdlets are used in the PowerShell script file. The migration suggestion are provided only for the specified modules.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String[]</command:parameterValue> <dev:type> <maml:name>String[]</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ExportToCSV</maml:name> <maml:description> <maml:para>This parameter is used to export the migration suggestions into CSV. The CSV file get created in the same directory of the input script file. CSV file name has "MigrationAdvise_" prefix with the input script file name.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>none</dev:defaultValue> </command:parameter> </command:syntaxItem> </command:syntax> <command:parameters> <!--All Parameters--> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="false" position="named"> <maml:name>ScriptFile</maml:name> <maml:description> <maml:para>Specify the valid powerShell script file path. It accepts only .psm1 and .ps1 file.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String</command:parameterValue> <dev:type> <maml:name>String</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="true" variableLength="false" globbing="false" pipelineInput="False" position="named"> <maml:name>CmdletModule</maml:name> <maml:description> <maml:para>Specify the Cmdlet module(s) whose cmdlets are used in the PowerShell script file. The migration suggestion are provided only for the specified modules.</maml:para> </maml:description> <command:parameterValue required="true" variableLength="false">String[]</command:parameterValue> <dev:type> <maml:name>String[]</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>None</dev:defaultValue> </command:parameter> <command:parameter required="false" variableLength="false" globbing="false" pipelineInput="False" position="named"> <maml:name>ExportToCSV</maml:name> <maml:description> <maml:para>This parameter is used to export the migration suggestions into CSV. The CSV file get created in the same directory of the input script file. CSV file name has "MigrationAdvise_" prefix with the input script file name.</maml:para> </maml:description> <command:parameterValue required="false" variableLength="false">SwitchParameter</command:parameterValue> <dev:type> <maml:name>SwitchParameter</maml:name> <maml:uri /> </dev:type> <dev:defaultValue>false</dev:defaultValue> </command:parameter> </command:parameters> <command:inputTypes> <!--Inputs--> <command:inputType> <dev:type> <maml:name>System.String</maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para /> </maml:description> </command:inputType> </command:inputTypes> <command:returnValues> <!--Outputs--> <command:returnValue> <dev:type> <maml:name>CmdletChangeItem[]</maml:name> <maml:uri></maml:uri> </dev:type> <maml:description> <maml:para /> </maml:description> </command:returnValue> </command:returnValues> <maml:alertSet> <!--Notes--> <maml:title></maml:title> <maml:alert> <maml:para>1) This Cmdlet provides suggestion based on Cmdlets recognised as PowerShell cmdlet token. If the Cmdlet is passed as string and invoke through Invoke-Command then no suggestion will provided for such Cmdlets.</maml:para> </maml:alert> <maml:alert> <maml:para>2) When migrating to the new cmdlet whose change type is "Classify", "Merge", and "Fragment", make sure the mandatory parameter must be provided to the cmdlet.</maml:para> </maml:alert> </maml:alertSet> <command:examples> <!--Examples--> <command:example> <maml:title>EXAMPLE 1</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>C:\PS> $returnObj = Invoke-HPECmdletMigration -ScriptFile C:\TestScript.ps1 -CmdletModule HPBIOSCmdlets C:\PS> $returnObj[0] ChangeType : Rename LineNumber : 3 LinePosition : 1 Severity : High Cmdlet : Existing : Set-HPBIOSBootMode; New : Set-HPEBIOSBootMode Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : ParameterReference : Property : PropertyReference : Value : {UEFI_Mode} ValueReference : {UEFI_Mode}</dev:code> <dev:remarks> <maml:para>Above example return list of suggested items. Each item in the list has above mentioned properties.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 2</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>C:\PS> $returnObject = Invoke-HPECmdletMigration -ScriptFile C:\CaseSens.ps1 -CmdletModule HPBIOSCmdlets C:\PS> $returnObject ChangeType : Rename LineNumber : 1 LinePosition : 9 Severity : High Cmdlet : Existing : Connect-HPBIOS; New : Connect-HPEBIOS Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : ParameterReference : Property : PropertyReference : Value : ValueReference : ChangeType : Rename LineNumber : 5 LinePosition : 8 Severity : High Cmdlet : Existing : Get-HPBIOSAdvancedMemoryProtection; New : Get-HPEBIOSAdvancedMemoryProtection Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : ParameterReference : Property : PropertyReference : Value : {Mirrored Memory with Advanced ECC Support} ValueReference : {Mirrored Memory with Advanced ECC Support} C:\PS> $d[1].ValueReference LineNumber LinePosition Name ---------- ------------ ---- 7 38 Mirrored Memory with Advanced ECC Support C:\PS> $d[1].Value ExistingValue NewValue ------------- -------- Mirrored Memory with Advanced ECC Support MirroredMemoryAdvancedECCSupport </dev:code> <dev:remarks> <maml:para>above example shows the Value and ValueReference for the migration changes.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 3</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>PS C:\> $returnObject = Invoke-HPECmdletMigration .\PowerModeConfigurations.ps1 -CmdletModule HPBIOSCmdlets PS C:\> $returnObject ChangeType : Rename LineNumber : 7 LinePosition : 30 Severity : High Cmdlet : Existing : Set-HPBIOSPowerprofile; New : Set-HPEBIOSPowerProfile Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : {HPPowerProfile} ParameterReference : {HPPowerProfile} Property : {StatusType} PropertyReference : {StatusType} Value : {Balanced} ValueReference : {Balanced} ChangeType : Rename LineNumber : 24 LinePosition : 30 Severity : High Cmdlet : Existing : Set-HPBIOSPowerProfile; New : Set-HPEBIOSPowerProfile Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : {HPPowerProfile} ParameterReference : {hpPowerprofile} Property : PropertyReference : Value : {Balanced, Maximum_Performance} ValueReference : {balanced, maximum_Performance} ChangeType : Rename LineNumber : 30 LinePosition : 2 Severity : High Cmdlet : Existing : Set-HPBIOSPowerProfile; New : Set-HPEBIOSPowerProfile Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : {hppowerprofile} ParameterReference : {hppowerprofile} Property : PropertyReference : Value : {balanced} ValueReference : {balanced} PS C:\> $returnObject [0].Parameter ExistingName NewName ------------ ------- HPPowerProfile PowerProfile PS C:\> $returnObject [0].ParameterReference LineNumber LinePosition Name ---------- ------------ ---- 2 24 HPPowerProfile PS C:\> $returnObject [0].Value ExistingValue NewValue ------------- -------- Balanced BalancedPowerAndPerformance PS C:\> $returnObject [0].ValueReference LineNumber LinePosition Name ---------- ------------ ---- 2 40 Balanced</dev:code> <dev:remarks> <maml:para>Above example shows migration changes for Cmdlet,Parameter,Property, and Value with reference for the items in the script file.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 4</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>PS C:\>$returnObject = Invoke-HPECmdletMigration .\BootModeConfigurations.ps1 -CmdletModule HPiLOCmdlets PS C:\> $returnObject[1] ChangeType : Merge LineNumber : 149 LinePosition : 10 Severity : High Cmdlet : Existing : Get-HPiLOSupportedBootMode New : Get-HPEiLOBootMode Message : The existing cmdlet's parameter(s)/properties are merge to the new cmdlet. Parameter : {Server, Credential, DisableCertificateAuthentication} ParameterReference : {Server, Credential, DisableCertificateAuthentication} Property : {STATUS_TYPE} PropertyReference : {STATUS_TYPE} Value : ValueReference : PS C:\> $returnObject[4] ChangeType : Rename LineNumber : 187 LinePosition : 18 Severity : High Cmdlet : Existing : Set-HPiLOPendingBootMode New : Set-HPEiLOBootMode Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : {Server, Credential, BootMode, DisableCertificateAuthentication} ParameterReference : {Server, Credential, BootMode, DisableCertificateAuthentication} Property : {STATUS_TYPE} PropertyReference : {STATUS_TYPE} Value : ValueReference : </dev:code> <dev:remarks> <maml:para>Above example shows the ChangeType 'Classify'. In this case, Parameter 'ThermalShutdwon' has been moved from Set-HPBIOSServerAvailability to Set-HPEBIOSThermalOption. In such cases Parameter/Property reference will not be availiable.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 5</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>PS C:\> $returnObject = Invoke-HPECmdletMigration -ScriptFile C:\powerTest.ps1 -CmdletModule HPBIOSCmdlets PS C:\> $returnObject[0] ChangeType : Rename LineNumber : 7 LinePosition : 30 Severity : High Cmdlet : Existing : Set-HPBIOSPowerprofile; New : Set-HPEBIOSPowerProfile Message : The existing cmdlet, parameter, property, and value are renamed. Parameter : {HPPowerProfile} ParameterReference : {HPPowerProfile} Property : {StatusType} PropertyReference : {StatusType} Value : {Balanced} ValueReference : {Balanced} PS C:\> $returnObject[0].GetAdditionalMigrationInfo() ChangeItem Existing New ---------- -------- --- Parameter HPPowerProfile PowerProfile Value Balanced BalancedPowerAndPerformance Value Maximum Performance MaximumPerformance Value Maximum_Performance MaximumPerformance Value Minimum Power MinimumPowerUsage Value Minimum_Power MinimumPowerUsage Property StatusType Status Property StatusMessage StatusInfo </dev:code> <dev:remarks> <maml:para>Above example shows the migration suggestion for the Set-HPBIOSPowerProfile. GetAdditionalMigrationInfo() return all the migration changes for the Cmdlet Set-HPBIOSPowerProfile.</maml:para> </dev:remarks> </command:example> <command:example> <maml:title>EXAMPLE 6</maml:title> <maml:introduction> <maml:para /> </maml:introduction> <dev:code>C:\PS> $returnObject = Invoke-HPECmdletMigration C:\BootModeConfigurations.ps1 -CmdletModule HPiLOCmdlets -ExportToCSV -Verbose VERBOSE: Validating input script file. VERBOSE: Migration advisory operation started. VERBOSE: Exporting to migration advisory data to CSV. VERBOSE: Migration advisory details exported to C:\MigrationAdvise_BootModeConfigurat ions.csv VERBOSE: Migration advisory operation completed.</dev:code> <dev:remarks> <maml:para>Above example shows the the migration changes are exported to CSV file.</maml:para> </dev:remarks> </command:example> </command:examples> </command:command> <!--Generated by: SAPIEN PowerShell HelpWriter 2017 v2.1.34--> </helpItems> |