Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Config.ini file to improve script security
####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