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
[CmdletBinding()] | |
param () | |
function Install-DscPullServerPrerequisites { | |
[CmdletBinding()] | |
param () | |
$result = Install-WindowsFeature Web-Server,DSC-Service -IncludeManagementTools:$true -Restart:$false | |
if ($result.RestartNeeded -ne "No") { | |
Write-Output "A reboot is needed to complete this operation. Please reboot before continuing." | |
} | |
} |
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
[CmdletBinding()] | |
param () | |
function Install-DscPullServerPrerequisites { | |
[CmdletBinding()] | |
param () | |
# If NuGet isn’t installed, install it. | |
$localProvider = Get-PackageProvider -Name NuGet -ListAvailable -ErrorAction SilentlyContinue | |
$provider = Find-PackageProvider -Name NuGet | |
if ($localProvider -eq $null) { |
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
.\Install-DscPullServerPrerequisites.ps1 | |
.\Install-DscPullServerPSRepository.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
function Get-DockerImageTag { | |
[CmdletBinding()] | |
Param ( | |
[Parameter()] | |
[string[]] | |
$ImageName | |
) | |
PROCESS { | |
Foreach($name in $ImageName) { |
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
$source = 'C:\Program Files' | |
$target = 'D:\Program Files' | |
mkdir $target | |
( Get-Item $source ).GetAccessControl('Access') | Set-Acl $target |