Skip to content

Commit d56b2d1

Browse files
authored
Add Note regarding Scriptblock behaviour exception
As per PowerShell/PowerShell#4218 The documentation should outline exceptions in a CMDlet's behaviour.
1 parent 918194e commit d56b2d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ 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+
>**Scriptblocks** are always deserialized to **strings** due to security concerns regarding automatic code execution.
53+
5154
For more information about CLI, see
5255
[Language independence](/dotnet/standard/language-independence).
5356

0 commit comments

Comments
 (0)