Created
March 9, 2021 19:07
-
-
Save signalwarrant/86a80202b97138f21049f00918a21a51 to your computer and use it in GitHub Desktop.
ExchangeSVCmof.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your Configuration | |
Configuration ExchangeService { | |
# Parameters | |
# Accepts a string value computername or defaults to localhost | |
Param([string[]]$ComputerName = "localhost") | |
# Target Node | |
Node $ComputerName { | |
# Service Resource | |
# Ensure a service is started | |
Service MSExchangeTransport { | |
Name = 'MSExchangeTransport' | |
State = 'Running' | |
} | |
} | |
} | |
# Generate the .MOF files | |
ExchangeService -Computername EXCH | |
# Create a Checksum for the file listed above | |
New-DscChecksum ".\exchangeservice\exch.mof" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment