Try:
[System.AppDomain]::CurrentDomain.SetData("APP_CONFIG_FILE", $config_path)
More Related Contents:
- How can I run PowerShell with the .NET 4 runtime?
- File / folder chooser dialog from a Windows batch script
- What does ‘useLegacyV2RuntimeActivationPolicy’ do in the .NET 4 config?
- Pros and cons of AppSettings vs applicationSettings (.NET app.config / Web.config)
- Powershell v3 Invoke-WebRequest HTTPS error
- Using .NET objects within a Powershell (V5) class
- How can I use a MySql User Defined Variable in a .NET MySqlCommand?
- Custom app.config Config Section Handler
- How can I read/write app.config settings at runtime without using user settings?
- Added new application setting to app.config but MSI won’t install it (doesn’t overwrite)
- Deep copying a PSObject
- How can I check if a string is null or empty in PowerShell?
- Encrypting connectionStrings section – utility for app.config
- PowerShell script to return versions of .NET Framework on a machine?
- How to create System.IO.StreamWriter with Encoding in Powershell?
- How do I set CultureInfo.CurrentCulture from an App.Config file?
- PowerShell generic collections
- App.config connection string relative path
- How to check an exchange mailbox via powershell?
- Determine if windows is currently playing sound
- What’s the best way to automate secure FTP in PowerShell?
- What do you call these? [array][string][int]
- Powershell Unload Module… completely
- Why is the first WCF client call slow?
- .NET DateTime.Now returns incorrect time when time zone is changed
- Should I make a DateRange object?
- What is the best way to read GetResponseStream()?
- How do I test an async method with NUnit (or possibly with another framework)?
- .NET — Textbox control – wait till user is done typing
- Best way to detect a release build from a debug build? .net