Skip to content

Instantly share code, notes, and snippets.

@HawaiiRyan
Created March 24, 2020 20:41
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 HawaiiRyan/b610f6d5427afa9609cee145affed912 to your computer and use it in GitHub Desktop.
Save HawaiiRyan/b610f6d5427afa9609cee145affed912 to your computer and use it in GitHub Desktop.
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