Powershell – IIS Set Connection String in web.config [Solution]

IIS Set Connection String in web.config using the Web-Administration powershell module So in the web.config file  for “MyApplication” application under “Default Web Site”, I have a connection string called “MyChartsConnection”, that I want to change the connection string as I am modifying it for Production use , changing server name and username password, plus some […]
Continue reading…


PowerShell Regex Examples

https://regex101.com/ handy website to check your regex results Regular Expression Language – Quick Reference Simple comparison to find a part of a line that matches “.*.enc” where the * is 3 characters or more and  each character is a-z or A-Z the \ is used to escape the .

e.g. .docx.enc .doc.enc
Continue reading…