Last active
June 28, 2017 03:59
-
-
Save techthoughts2/04dac73a0421d71678a192ad39116832 to your computer and use it in GitHub Desktop.
Quickly view a modules source code in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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