Function to prepare Machine.config

This PowerShell script “prepare” machine.config by:

  • Create appSettings.config and link it in machine.config
  • Create connectionStrings.config and link it in machine.config
  • Add proxy settings

Code:

 

 

 

 

 

 

Using Transfer utility in AWS SDK.NET

Useful Links

Upload files

Upload directory

 

 

Function to change encoding of a file in PowerShell

This is a function to change encoding of a file:

Function to check if MarkLogic is up

Function to quickly see if MarkLogic is up and running

Taken from my unsuccessful StackOverflow answer 🙂

 

Function to SmartCreate Folder in Powershell

Function to create a folder in Powershell if it doesn’t exist or recreate if it exists

 

Execute function in remote Computer

This is an example of how to execute PowerShell remote code and pass parameters:

Function to SmartCreate Network Share in Powershell

This is a function to create a readonly Network Share if it doesn’t exist.