PowerTip: Use PowerShell to Find Calling Assembly


Summary: Learn how to use Windows PowerShell to find the calling assembly.

Hey, Scripting Guy! Question How can I find the name of a calling assembly from within Windows PowerShell?

Hey, Scripting Guy! Answer Use the GetCallingAssembly static method from the [system.Reflection.Assembly] class:

[system.reflection.assembly]::GetCallingAssembly()

Comments (1)

  1. mlebel says:

    Hi !
    What is a calling assembly and why does it matter to know this in PowerShell ?

    Thank you

Skip to main content