Skip to content

Commit 5f4c99e

Browse files
Update powershell support docs
1 parent e0351aa commit 5f4c99e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

docs/guides/powershell-support.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ Use this mode when you want predictable PowerShell 7 behavior regardless of what
3737

3838
This is the closest equivalent to the older embedded-host model, except the embedded engine is now PowerShell 7 rather than embedded Windows PowerShell 5.1. PowerShell 5.1 is no longer available as an embedded option because it depends on a much older .NET runtime than the app uses.
3939

40-
Currently, system PowerShell modules such as CimCmdlets may not be available In-Process and you should use an alternative mode.
40+
A major consideration is that system PowerShell modules loaded in PS 5.1 are *not* necessarily loaded by default. For example if you require any **Cim**Cmdlets you need to load the module at the start of your script (after *params*) and for older modules you also need to skip the check for compatible powershell version e.g.:
41+
42+
`Import-Module -Name CimCmdlets -SkipEditionCheck`
43+
44+
A good way to tell if a module is available by default in PowerShell 7 is to launch a PowerShell 7 system command prompt and try your commands there. Most modules are not imported by default.
4145

4246
## System PowerShell Mode
4347

0 commit comments

Comments
 (0)