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
$Boxstarter.RebootOk=$true | |
# enable psremoting | |
Write-Output "Enabling PSRemoting" | |
Enable-PSRemoting -Force | |
if($PSVersionTable.PSVersion -lt (New-Object 'Version' 5,0,10018,0)) | |
{ | |
# install WMF5.0 February and April | |
cinst powershell -version 5.0.10018-February2015Preview -pre -y | |
# Write-Output "Installing the April 2015 Powershell DSC preview" |
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
$Boxstarter.RebootOk=$true | |
# enable psremoting | |
Write-Output "Enabling PSRemoting" | |
Enable-PSRemoting -Force | |
if($PSVersionTable.PSVersion -lt (New-Object 'Version' 5,0,10105,0)) | |
{ | |
# install WMF5.0 February and April | |
cinst powershell -version 5.0.10018-February2015Preview -pre -y | |
# Write-Output "Installing the April 2015 Powershell DSC preview" |
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
# Goto the OpenSSL bin directory | |
pushd $env:ProgramFiles\OpenSSL\bin | |
# Create a self-signed SSL certificate. Be sure to update your paths if required. | |
openssl req -newkey rsa:4096 -nodes -sha256 -keyout C:\temp\myAwesomeServer.key -x509 -days 365 -out C:\temp\myAwesomeServer.crt -config $env:ProgramFiles\OpenSSL\bin\openssl.cfg |
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
# Get a list of trusted hosts | |
Get-Item WSMan:\localhost\Client\TrustedHosts | |
# Note that these commands don't create a list of trusted hosts, it simply replaces the trusted host with what you set via the command. If you need to add multiple hosts, they need to be comma seperated | |
# Trust all computers in a domain | |
Set-Item WSMan:\localhost\Client\TrustedHosts *.contoso.com | |
# Turst a single machine | |
Set-Item WSMan:\localhost\Client\TrustedHosts -Value myserver |
NewerOlder