RoleCapabilities/Lev2Maintenance.psrc

@{

# 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
            }
        }}

}