最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powershell - How to set global PS variable in a manifest - Stack Overflow

programmeradmin0浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论