review comments

This commit is contained in:
Mariah Breakey
2016-12-16 20:29:36 -08:00
parent e909652c98
commit cec6a3525b
8 changed files with 7 additions and 33 deletions
+1 -1
View File
@@ -22,6 +22,6 @@ Copyright = '(c) 2016 Microsoft. All rights reserved.'
Description = 'Configures multiple Group resources with common settings but different names.'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '4.0'
PowerShellVersion = '5.1'
}
+1 -1
View File
@@ -22,6 +22,6 @@ Copyright = '(c) 2016 Microsoft. All rights reserved.'
Description = 'Provides a mechanism to configure and manage multiple WindowsProcess resources on a target node.'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '4.0'
PowerShellVersion = '5.1'
}
+1 -1
View File
@@ -22,6 +22,6 @@ Copyright = '(c) 2016 Microsoft. All rights reserved.'
Description = 'Allows starting, stopping and change in state or account type for a group of services.'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '4.0'
PowerShellVersion = '5.1'
}
@@ -22,6 +22,6 @@ Copyright = '(c) 2016 Microsoft. All rights reserved.'
Description = 'Provides a mechanism to configure and manage multiple WindowsFeature resources on a target node.'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '4.0'
PowerShellVersion = '5.1'
}
@@ -22,6 +22,6 @@ Copyright = '(c) 2016 Microsoft. All rights reserved.'
Description = 'Provides a mechanism to configure and manage multiple WindowsOptionalFeature resources on a target node.'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '4.0'
PowerShellVersion = '5.1'
}
+1 -1
View File
@@ -73,7 +73,7 @@ VariablesToExport = '*'
AliasesToExport = @()
# DSC resources to export from this module
DscResourcesToExport = 'Group', 'Script', 'Service', 'ServiceSet', 'User', 'WindowsFeature', 'WindowsFeatureSet', 'WindowsOptionalFeature', 'WindowsOptionalFeature', 'WindowsPackageCab', 'WindowsProcess', 'ProcessSet'
DscResourcesToExport = 'Group', 'GroupSet', 'Script', 'Service', 'ServiceSet', 'User', 'WindowsFeature', 'WindowsFeatureSet', 'WindowsOptionalFeature', 'WindowsOptionalFeature', 'WindowsPackageCab', 'WindowsProcess', 'ProcessSet'
# List of all modules packaged with this module
# ModuleList = @()
+1 -1
View File
@@ -37,7 +37,7 @@ Please check out the common DSC Resources [contributing guidelines](https://gith
* [Group](#group): Provides a mechanism to manage local groups on a target node.
* [GroupSet](#groupset): Provides a mechanism to configure and manage multiple Group resources with common settings but different names.
* [Script](#script): Provides a mechanism to run PowerShell script blocks on a target node.
* [Service](#service): Provides a mechanism to configure and manage Service resources on a target node.
* [Service](#service): Provides a mechanism to configure and manage Windows services on a target node.
* [ServiceSet](#serviceset): Provides a mechanism to configure and manage multiple Service resources with common settings but different names.
* [User](#user): Provides a mechanism to manage local users on a target node.
* [WindowsFeature](#windowsfeature): Provides a mechanism to install or uninstall Windows roles or features on a target node.
@@ -1,26 +0,0 @@
$errorActionPreference = 'Stop'
Set-StrictMode -Version 'Latest'
<#
.SYNOPSIS
Stops all instances of the process with the given name.
.PARAMETER ProcessName
The name of the process to stop.
#>
function Stop-ProcessByName
{
[CmdletBinding()]
param
(
[Parameter(Mandatory = $true)]
[String]
$ProcessName
)
Stop-Process -Name $ProcessName -ErrorAction 'SilentlyContinue' -Force
Wait-ScriptBlockReturnTrue -ScriptBlock { return $null -eq (Get-Process -Name $ProcessName -ErrorAction 'SilentlyContinue') } `
-TimeoutSeconds 15
}
Export-ModuleMember -Function Stop-ProcessByName