PowerTip: Trace What Loads with a PowerShell Module

Doctor Scripto

Dr 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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

0 comments

    Leave a comment