diff --git a/reference/5.1/Microsoft.PowerShell.Utility/Import-Clixml.md b/reference/5.1/Microsoft.PowerShell.Utility/Import-Clixml.md index 722c403484bd..6a8c3d546976 100644 --- a/reference/5.1/Microsoft.PowerShell.Utility/Import-Clixml.md +++ b/reference/5.1/Microsoft.PowerShell.Utility/Import-Clixml.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 01/31/2024 +ms.date: 01/20/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-5.1&WT.mc_id=ps-gethelp schema: 2.0.0 title: Import-Clixml @@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri `Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the file has no BOM, it assumes the encoding is UTF8. +> [!NOTE] +> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `` element in +> CLIXML. However, the `` element is always deserialized to **Strings**. + For more information about CLI, see [Language independence](/dotnet/standard/language-independence). diff --git a/reference/7.4/Microsoft.PowerShell.Utility/Import-Clixml.md b/reference/7.4/Microsoft.PowerShell.Utility/Import-Clixml.md index bac85f0cede5..27e453b057be 100644 --- a/reference/7.4/Microsoft.PowerShell.Utility/Import-Clixml.md +++ b/reference/7.4/Microsoft.PowerShell.Utility/Import-Clixml.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 01/31/2024 +ms.date: 01/20/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7.4&WT.mc_id=ps-gethelp schema: 2.0.0 title: Import-Clixml @@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri `Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the file has no BOM, it assumes the encoding is UTF8. +> [!NOTE] +> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `` element in +> CLIXML. However, the `` element is always deserialized to **Strings**. + For more information about CLI, see [Language independence](/dotnet/standard/language-independence). diff --git a/reference/7.5/Microsoft.PowerShell.Utility/Import-Clixml.md b/reference/7.5/Microsoft.PowerShell.Utility/Import-Clixml.md index a8cbb2aeb0a9..73260a2ab3e2 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/Import-Clixml.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/Import-Clixml.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 01/31/2024 +ms.date: 01/20/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: Import-Clixml @@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri `Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the file has no BOM, it assumes the encoding is UTF8. +> [!NOTE] +> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `` element in +> CLIXML. However, the `` element is always deserialized to **Strings**. + For more information about CLI, see [Language independence](/dotnet/standard/language-independence). diff --git a/reference/7.6/Microsoft.PowerShell.Utility/Import-Clixml.md b/reference/7.6/Microsoft.PowerShell.Utility/Import-Clixml.md index 9fbb5e89fd00..4cf7b7eb5c76 100644 --- a/reference/7.6/Microsoft.PowerShell.Utility/Import-Clixml.md +++ b/reference/7.6/Microsoft.PowerShell.Utility/Import-Clixml.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 01/31/2024 +ms.date: 01/20/2026 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7.6&WT.mc_id=ps-gethelp schema: 2.0.0 title: Import-Clixml @@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri `Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the file has no BOM, it assumes the encoding is UTF8. +> [!NOTE] +> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `` element in +> CLIXML. However, the `` element is always deserialized to **Strings**. + For more information about CLI, see [Language independence](/dotnet/standard/language-independence).