Created
March 24, 2020 20:41
-
-
Save HawaiiRyan/b610f6d5427afa9609cee145affed912 to your computer and use it in GitHub Desktop.
Config.ini file to improve script security
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
####ini file info | |
#Modify the value to the right of the equal symbol | |
#Example | |
#DEVEnvironment=https://molokai.ryanpringnitz.com | |
#### | |
#The data in the ini file can be referenced in the Powershell object $WS1Env | |
#Example with variable $WS1Env used | |
#$WS1Env.UATEnvironment | |
#This will be available for use as a string in the array | |
#### | |
UATEnvironment=https://kauai.ryanpringnitz.com | |
DEVEnvironment= | |
PrdEnvironment= | |
####Update the API key and Base64 encoded credential for the respective environment | |
UATb64=SWNhbmhhelRlc2xhP1RoaXNQYXNzd29yZGlzSm9rZWJ1dFJlYWxseSxJd2FudEFUZXNsYQ== | |
UATapikey=z/Model337ltuYugOcE2snK/ModelYnot?d4vHlN4hd= | |
#### | |
prdb64= | |
prdapikey= | |
### | |
#Log Path location | |
#Example value for file path H:\Code (due to regex you need to use \\ and not end the file path with a \) | |
#H:\\Code | |
logpath=H:\\Hawaii\\Kauai\\workspaceone\\tools\\logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment