fix veeam progressbar

This commit is contained in:
garnier-quentin 2021-03-12 13:59:24 +01:00
parent c8a687def5
commit 5e822533ab
4 changed files with 12 additions and 11 deletions

View File

@ -29,6 +29,9 @@ sub get_powershell {
my (%options) = @_;
my $ps = '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
$culture = new-object "System.Globalization.CultureInfo" "en-us"
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
';
@ -38,8 +41,6 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us"
$ps .= centreon::common::powershell::veeam::functions::powershell_init();
$ps .= '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
Try {
$ErrorActionPreference = "Stop"

View File

@ -29,6 +29,9 @@ sub get_powershell {
my (%options) = @_;
my $ps = '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
$culture = new-object "System.Globalization.CultureInfo" "en-us"
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
';
@ -38,9 +41,6 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us"
$ps .= centreon::common::powershell::veeam::functions::powershell_init();
$ps .= '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
Try {
$ErrorActionPreference = "Stop"

View File

@ -29,6 +29,9 @@ sub get_powershell {
my (%options) = @_;
my $ps = '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
$culture = new-object "System.Globalization.CultureInfo" "en-us"
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
';
@ -38,9 +41,6 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us"
$ps .= centreon::common::powershell::veeam::functions::powershell_init();
$ps .= '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
Try {
$ErrorActionPreference = "Stop"

View File

@ -29,6 +29,9 @@ sub get_powershell {
my (%options) = @_;
my $ps = '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
$culture = new-object "System.Globalization.CultureInfo" "en-us"
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
';
@ -38,9 +41,6 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us"
$ps .= centreon::common::powershell::veeam::functions::powershell_init();
$ps .= '
$ProgressPreference = "SilentlyContinue"
$WarningPreference = "SilentlyContinue"
Try {
$ErrorActionPreference = "Stop"