# encoding: ascii
# api: powershell
# title: Enable PS Remoting
# description: Enable Powershell Remoting allowing access for all trusted hosts
# version: 0.1
# author: St3v3o
# license: CC0
# x-poshcode-id: 3249
# x-archived: 2012-02-23T15:00:03
# x-published: 2012-02-21T11:59:00
#
#
#Run winrm quickconfig defaults
echo Y | winrm quickconfig
#Run enable psremoting command with defaults
enable-psremoting -force
#Enabled Trusted Hosts for Universial Access
cd wsman:
cd localhost\client
Set-Item TrustedHosts * -force
restart-Service winrm
echo "Complete"