admin管理员组

文章数量:1356441

I am converting a script module to a manifest module.

In the script module I do the below at the end

# 
#  Whole module Verbose output 
#
# We will output verbose "Continue"
# We will NOT output verbose "SilentlyContinue"

$GlobalVerbosePreference = "Continue"
$VerbosePreference = $GlobalVerbosePreference


# Set default error action preference
$ErrorActionPreference = "Stop"

How do you do this in a manifest?

本文标签: powershellHow to set global PS variable in a manifestStack Overflow