Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Last active June 28, 2017 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techthoughts2/04dac73a0421d71678a192ad39116832 to your computer and use it in GitHub Desktop.
Save techthoughts2/04dac73a0421d71678a192ad39116832 to your computer and use it in GitHub Desktop.
Quickly view a modules source code in PowerShell
cd (Get-Module PSDesiredStateConfiguration -ListAvailable).ModuleBase
psEdit .\PSDesiredStateConfiguration.psm1
#now lets search the source code for what we are looking for and get line numbers
Select-String -Path .\PSDesiredStateConfiguration.psm1 -Pattern EncryptedToPlaintextNotAllowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment