Last active
October 22, 2016 23:52
-
-
Save techraf/2b872339073887ac90215573171a896a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# iwr https://git.io/v636d -UseBasicParsing | iex | |
Set-ExecutionPolicy Unrestricted -Force | |
# IP settings | |
New-NetIPAddress -InterfaceAlias Ethernet0 -IPAddress 10.20.50.10 -PrefixLength 16 -DefaultGateway 10.20.8.8 | |
Set-DnsClientServerAddress -InterfaceAlias Ethernet0 -ServerAddresses 10.20.8.8 | |
Set-NetConnectionProfile -InterfaceAlias Ethernet0 -NetworkCategory Private | |
# Ansible | |
Set-NetConnectionProfile -InterfaceAlias Ethernet0 -NetworkCategory Private | |
Enable-PSRemoting | |
iwr https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -UseBasicParsing | iex | |
# Remote Desktop | |
set-ItemProperty -Path 'HKLM:System\CurrentControlSet\Control\Terminal Server' -name "fDenyTSConnections" -Value 0 | |
Enable-NetFirewallRule -DisplayGroup "Remote Desktop" | |
set-ItemProperty -Path 'HKLM:System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "UserAuthentication" -Value 1 | |
# Chocolatey | |
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment