PowerTip: Trace What Loads with a PowerShell Module

Doctor Scripto

Summary: Use the Verbose switched parameter with the Import-Module cmdlet to trace module load activity.

Hey, Scripting Guy! Question How can you watch what loads when importing a Windows PowerShell module?

Hey, Scripting Guy! Answer Use the Verbose switch when calling the Import-Module cmdlet:

Import-Module psdiagnostics -verbose

0 comments

Discussion is closed.

Feedback usabilla icon