PoshCode Archive  Artifact [0dd9da2608]

Artifact 0dd9da26081d23ad6468e907cc69ec65ad30b1268a2edbd1af6dbd0c0bd3e96c:

  • File Enable-PS-Remoting.ps1 — part of check-in [35af92e6fe] at 2018-06-10 13:22:57 on branch trunk — Enable Powershell Remoting allowing access for all trusted hosts (user: St3v3o size: 585)

# 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"