Skip to content

Commit 2ec30d3

Browse files
taku-nmsdwheeler
andauthored
Add Note regarding Scriptblock behaviour exception (#12677)
* Add Note regarding Scriptblock behaviour exception As per PowerShell/PowerShell#4218 The documentation should outline exceptions in a CMDlet's behaviour. * Editorial change and copy changes across versions --------- Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
1 parent f5c689a commit 2ec30d3

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

reference/5.1/Microsoft.PowerShell.Utility/Import-Clixml.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 01/31/2024
5+
ms.date: 01/20/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Import-Clixml
@@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri
4848
`Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the
4949
file has no BOM, it assumes the encoding is UTF8.
5050

51+
> [!NOTE]
52+
> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `<SKB>` element in
53+
> CLIXML. However, the `<SKB>` element is always deserialized to **Strings**.
54+
5155
For more information about CLI, see
5256
[Language independence](/dotnet/standard/language-independence).
5357

reference/7.4/Microsoft.PowerShell.Utility/Import-Clixml.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 01/31/2024
5+
ms.date: 01/20/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Import-Clixml
@@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri
4848
`Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the
4949
file has no BOM, it assumes the encoding is UTF8.
5050

51+
> [!NOTE]
52+
> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `<SKB>` element in
53+
> CLIXML. However, the `<SKB>` element is always deserialized to **Strings**.
54+
5155
For more information about CLI, see
5256
[Language independence](/dotnet/standard/language-independence).
5357

reference/7.5/Microsoft.PowerShell.Utility/Import-Clixml.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 01/31/2024
5+
ms.date: 01/20/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Import-Clixml
@@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri
4848
`Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the
4949
file has no BOM, it assumes the encoding is UTF8.
5050

51+
> [!NOTE]
52+
> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `<SKB>` element in
53+
> CLIXML. However, the `<SKB>` element is always deserialized to **Strings**.
54+
5155
For more information about CLI, see
5256
[Language independence](/dotnet/standard/language-independence).
5357

reference/7.6/Microsoft.PowerShell.Utility/Import-Clixml.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Utility
5-
ms.date: 01/31/2024
5+
ms.date: 01/20/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/import-clixml?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: Import-Clixml
@@ -48,6 +48,10 @@ The **TypeNames** property contains the original type name prefixed with `Deseri
4848
`Import-Clixml` uses the byte-order-mark (BOM) to detect the encoding format of the file. If the
4949
file has no BOM, it assumes the encoding is UTF8.
5050

51+
> [!NOTE]
52+
> `[System.Management.Automation.ScriptBlock]` objects are serialized into the `<SKB>` element in
53+
> CLIXML. However, the `<SKB>` element is always deserialized to **Strings**.
54+
5155
For more information about CLI, see
5256
[Language independence](/dotnet/standard/language-independence).
5357

0 commit comments

Comments
 (0)