-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCommonConfig.ps1
36 lines (27 loc) · 1.45 KB
/
CommonConfig.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
[Boolean]$Log2EventLog = $TRUE
#[Switch]$NoLog2EventLog
[String][ValidateNotNullOrEmpty()]$ProviderName = 'Infra'
[String][ValidateSet("Application")]$EventLogLogName = 'Application'
[Boolean]$Log2Console = $TRUE
#[Switch]$NoLog2Console
[Boolean]$Log2File = $FALSE
#[Switch]$NoLog2File
[String][ValidatePattern('^(\\\\|\.+\\|[c-zC-Z]:\\)(?!.*(\/|:|\?|`"|<|>|\||\*)).*$')]$LogPath
[String][ValidateNotNullOrEmpty()]$LogDateFormat = 'yyyy-MM-dd-HH:mm:ss'
[String][ValidateSet("Default", "UTF8" , "UTF7" , "UTF32" , "Unicode")]$LogFileEncode = 'Default' #Default ShiftJIS
[Int][ValidateRange(0,2147483647)]$NormalReturnCode = 0
[Int][ValidateRange(0,2147483647)]$WarningReturnCode = 1
[Int][ValidateRange(0,2147483647)]$ErrorReturnCode = 8
[Int][ValidateRange(0,2147483647)]$InternalErrorReturnCode = 16
[Int][ValidateRange(1,65535)]$InfoEventID = 9999
[Int][ValidateRange(1,65535)]$InfoLoopStartEventID = 2
[Int][ValidateRange(1,65535)]$InfoLoopEndEventID = 3
[int][ValidateRange(1,65535)]$StartEventID = 8
[int][ValidateRange(1,65535)]$EndEventID = 9
[Int][ValidateRange(1,65535)]$WarningEventID = 10
[Int][ValidateRange(1,65535)]$SuccessEventID = 73
[Int][ValidateRange(1,65535)]$InternalErrorEventID = 99
[Int][ValidateRange(1,65535)]$ErrorEventID = 100
#[Switch]$ErrorAsWarning
#[Switch]$WarningAsNormal
[Regex]$ExecutableUser = '.*'