fix veeam progressbar
This commit is contained in:
parent
c8a687def5
commit
5e822533ab
|
@ -29,6 +29,9 @@ sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = '
|
my $ps = '
|
||||||
|
$ProgressPreference = "SilentlyContinue"
|
||||||
|
$WarningPreference = "SilentlyContinue"
|
||||||
|
|
||||||
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
||||||
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
|
[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 .= centreon::common::powershell::veeam::functions::powershell_init();
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
$ProgressPreference = "SilentlyContinue"
|
|
||||||
$WarningPreference = "SilentlyContinue"
|
|
||||||
|
|
||||||
Try {
|
Try {
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
|
@ -29,6 +29,9 @@ sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = '
|
my $ps = '
|
||||||
|
$ProgressPreference = "SilentlyContinue"
|
||||||
|
$WarningPreference = "SilentlyContinue"
|
||||||
|
|
||||||
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
||||||
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
|
[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 .= centreon::common::powershell::veeam::functions::powershell_init();
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
$ProgressPreference = "SilentlyContinue"
|
|
||||||
$WarningPreference = "SilentlyContinue"
|
|
||||||
|
|
||||||
Try {
|
Try {
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,9 @@ sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = '
|
my $ps = '
|
||||||
|
$ProgressPreference = "SilentlyContinue"
|
||||||
|
$WarningPreference = "SilentlyContinue"
|
||||||
|
|
||||||
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
||||||
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
|
[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 .= centreon::common::powershell::veeam::functions::powershell_init();
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
$ProgressPreference = "SilentlyContinue"
|
|
||||||
$WarningPreference = "SilentlyContinue"
|
|
||||||
|
|
||||||
Try {
|
Try {
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,9 @@ sub get_powershell {
|
||||||
my (%options) = @_;
|
my (%options) = @_;
|
||||||
|
|
||||||
my $ps = '
|
my $ps = '
|
||||||
|
$ProgressPreference = "SilentlyContinue"
|
||||||
|
$WarningPreference = "SilentlyContinue"
|
||||||
|
|
||||||
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
$culture = new-object "System.Globalization.CultureInfo" "en-us"
|
||||||
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
|
[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 .= centreon::common::powershell::veeam::functions::powershell_init();
|
||||||
|
|
||||||
$ps .= '
|
$ps .= '
|
||||||
$ProgressPreference = "SilentlyContinue"
|
|
||||||
$WarningPreference = "SilentlyContinue"
|
|
||||||
|
|
||||||
Try {
|
Try {
|
||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue