You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Module manifest for module 'SampleRuleWithVersion'
3
+
#
4
+
5
+
@{
6
+
7
+
# Script module or binary module file associated with this manifest.
8
+
RootModule='SampleRuleWithVersion.psm1'
9
+
10
+
# Version number of this module.
11
+
ModuleVersion='1.0.0.0'
12
+
13
+
# ID used to uniquely identify this module
14
+
GUID='f3452359-9e01-4c64-89cc-f5bfbcee53e3'
15
+
16
+
# Author of this module
17
+
Author=''
18
+
19
+
# Company or vendor of this module
20
+
CompanyName=''
21
+
22
+
# Copyright statement for this module
23
+
Copyright=''
24
+
25
+
# Description of the functionality provided by this module
26
+
Description='Sample PSScriptAnalyzer rule.'
27
+
28
+
# Minimum version of the Windows PowerShell engine required by this module
29
+
PowerShellVersion='3.0'
30
+
31
+
# Name of the Windows PowerShell host required by this module
32
+
# PowerShellHostName = ''
33
+
34
+
# Minimum version of the Windows PowerShell host required by this module
35
+
# PowerShellHostVersion = ''
36
+
37
+
# Minimum version of Microsoft .NET Framework required by this module
38
+
# DotNetFrameworkVersion = ''
39
+
40
+
# Minimum version of the common language runtime (CLR) required by this module
41
+
CLRVersion='4.0'
42
+
43
+
# Processor architecture (None, X86, Amd64) required by this module
44
+
# ProcessorArchitecture = ''
45
+
46
+
# Modules that must be imported into the global environment prior to importing this module
47
+
# RequiredModules = @()
48
+
49
+
# Assemblies that must be loaded prior to importing this module
50
+
# RequiredAssemblies = @()
51
+
52
+
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
53
+
# ScriptsToProcess = @()
54
+
55
+
# Type files (.ps1xml) to be loaded when importing this module
56
+
# TypesToProcess = @()
57
+
58
+
# Format files (.ps1xml) to be loaded when importing this module
59
+
# FormatsToProcess = @()
60
+
61
+
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
62
+
# NestedModules = @()
63
+
64
+
# Functions to export from this module
65
+
FunctionsToExport='Measure*'
66
+
67
+
# Cmdlets to export from this module
68
+
CmdletsToExport='*'
69
+
70
+
# Variables to export from this module
71
+
VariablesToExport='*'
72
+
73
+
# Aliases to export from this module
74
+
AliasesToExport='*'
75
+
76
+
# List of all modules packaged with this module
77
+
# ModuleList = @()
78
+
79
+
# List of all files packaged with this module
80
+
# FileList = @()
81
+
82
+
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
83
+
PrivateData=@{
84
+
85
+
PSData=@{
86
+
87
+
# Tags applied to this module. These help with module discovery in online galleries.
88
+
# Tags = @()
89
+
90
+
# A URL to the license for this module.
91
+
# LicenseUri = ''
92
+
93
+
# A URL to the main website for this project.
94
+
# ProjectUri = ''
95
+
96
+
# A URL to an icon representing this module.
97
+
# IconUri = ''
98
+
99
+
# ReleaseNotes of this module
100
+
# ReleaseNotes = ''
101
+
102
+
} # End of PSData hashtable
103
+
104
+
} # End of PrivateData hashtable
105
+
106
+
# HelpInfo URI of this module
107
+
# HelpInfoURI = ''
108
+
109
+
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
Uses #Requires -RunAsAdministrator instead of your own methods.
6
+
.DESCRIPTION
7
+
The #Requires statement prevents a script from running unless the Windows PowerShell version, modules, snap-ins, and module and snap-in version prerequisites are met.
8
+
From Windows PowerShell 4.0, the #Requires statement let script developers require that sessions be run with elevated user rights (run as Administrator).
9
+
Script developers does not need to write their own methods any more.
10
+
To fix a violation of this rule, please consider to use #Requires -RunAsAdministrator instead of your own methods.
0 commit comments