-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathITG.DomainUtils.psm1
112 lines (107 loc) · 2.3 KB
/
ITG.DomainUtils.psm1
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
$CurrentDir = `
Split-Path `
-Path $MyInvocation.MyCommand.Path `
-Parent `
;
Function Import-LocalizedData {
<#
.Synopsis
Çàãðóæàåò ëîêàëèçîâàííûå ñòðîêîâûå ðåñóðñû.
.ForwardHelpTargetName
Import-LocalizedData
.ForwardHelpCategory
Cmdlet
#>
[CmdletBinding(
HelpUri = 'http://go.microsoft.com/fwlink/?LinkID=113342'
)]
param(
[Parameter(
Position = 0
, Mandatory = $false
)]
[Alias( 'Variable' )]
[ValidateNotNullOrEmpty()]
[String]
${BindingVariable}
,
[Parameter(
Position = 1
, Mandatory = $false
)]
[System.Globalization.CultureInfo]
${UICulture} = ( Get-Culture )
,
[Parameter(
Mandatory = $false
)]
[String]
${BaseDirectory}
,
[Parameter(
Mandatory = $false
)]
[String]
${FileName}
,
[Parameter(
Mandatory = $false
)]
[String[]]
${SupportedCommand}
)
try {
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(
'Import-LocalizedData'
, [System.Management.Automation.CommandTypes]::Cmdlet
);
$loc = & $wrappedCmd @PSBoundParameters;
<#
$PSLocRM = New-Object `
-Type 'System.Resources.ResourceManager' `
-ArgumentList `
'HelpDisplayStrings' `
, ( [System.Reflection.Assembly]::Load('System.Management.Automation') ) `
;
$PSloc = $PSLocRM.GetResourceSet( $UICulture, $true, $true );
$PSloc `
| % {
if ( -not $loc.ContainsKey( $_.Name ) ) {
$loc.Add( $_.Name, $_.Value.Trim() );
};
};
#>
} catch {
throw;
};
return $loc;
};
$loc = Import-LocalizedData;
. ( Join-Path -Path $CurrentDir -ChildPath 'ITG.DomainUtils.Configuration.ps1' );
. ( Join-Path -Path $CurrentDir -ChildPath 'ITG.DomainUtils.Printers.ps1' );
Export-ModuleMember `
-Function `
Initialize-DomainUtilsConfiguration `
, Test-DomainUtilsConfiguration `
, Get-DomainUtilsConfiguration `
, Get-ADPrintQueue `
, Test-ADPrintQueue `
, Initialize-ADPrintQueuesEnvironment `
, New-ADPrintQueueGroup `
, Get-ADPrintQueueGroup `
, New-ADPrintQueueGPO `
, Get-ADPrintQueueGPO `
, Test-ADPrintQueueGPO `
, Update-ADPrintQueueEnvironment `
, Remove-ADPrintQueueEnvironment `
-Alias `
Get-ADPrinter `
, Test-ADPrinter `
, New-ADPrinterGroup `
, Get-ADPrinterGroup `
, New-ADPrinterGPO `
, Get-ADPrinterGPO `
, Test-ADPrinterGPO `
, Update-ADPrinterEnvironment `
, Remove-ADPrinterEnvironment `
;