• Powershell,  Tools

    Get any Function’s source code from the Function PSDrive

    You may be already familiar with the concept of PSDrive or Powershell Providers: PowerShell providers are Microsoft .NET Framework-based programs that make the data in a specialized data store available in PowerShell so that you can view and manage it.The data that a provider exposes appears in a drive, and you access the data in a path like you would on a hard disk drive. You can use any of the built-in cmdlets that the provider supports to manage the data in the provider drive. And, you can use custom cmdlets that are designed especially for the data.The providers can also add dynamic parameters to the built-in cmdlets. These are parameters that are available only when you use the cmdlet with the provider data. You are likely using some Providers (especially the File System Provider) without even realizing it, while some come in handy if you need to perform actions on specific types of objects. For example you can list the certificates under your profile running Get-ChildItem -Path Cert:\CurrentUser\My. Notice the use of “Cert:” (Certificate) Provider (or PSDrive). The Function: drive allows to list all functions available in the current powershell session: As you can see some functions come with…