RoleCapabilities/Lev2Maintenance.psrc

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
@{

# ID used to uniquely identify this document
GUID = '153f5890-6f47-4fa8-ae99-332ac395730c'

# Author of this document
Author = 'ryanpu'

# Description of the functionality provided by these settings
# Description = ''

# Company associated with this document


# Copyright statement for this document
Copyright = '(c) 2015 ryanpu. All rights reserved.'

ModulesToImport = "Microsoft.PowerShell.Core"

 VisibleCmdlets=
        @{ Name = "Start-Process"; Parameters = @{ Name = "FilePath"; ValidateSet = "netstat" }}

    CompanyName = "World Domination"

    FunctionDefinitions =
        @{ Name = "Get-SCCMHealthLog"; ScriptBlock = {
            Get-Content "C:\Windows\CCM\CcmEval.xml" | Select-String "fail", "error", "unable", "unavailable", "wmi"
        }},
        @{ Name = "Get-DuplicateDNSRecords"; ScriptBlock = {
            [CmdletBinding()]
            param
            (
                [Parameter(Mandatory=$true, HelpMessage='Which DNS zone to query')]
                [string]$zone,

                [Parameter(HelpMessage='Which node to query for')]
                [string]$nodename = '.'
            )

            process {
                Get-DnsServerResourceRecord -ZoneName $zone -Name $nodename -RRType A
            }
        }}

}