Install-WindowsFeature -ConfigurationFilePath C:\Users\Administrator\Desktop\DeploymentConfigTemplate.xml


$appPort=1205

$appName="FKGameServer"

$physicalPath="c:\"+$appName

$existFolder=Test-Path $physicalPath

    If(-Not $existFolder) { New-Item -ItemType directory -Path $physicalPath }


New-NetFirewallRule -DisplayName $appName -Action Allow -Direction Inbound -Enabled True -LocalPort $appPort -Protocol 6


New-Website -Name $appName -PhysicalPath $physicalPath -Port $appPort

'Develop' 카테고리의 다른 글

gcm push  (0) 2016.04.20
powershell invoke-XXXX  (0) 2016.02.16
newtonsoft json assembly conflict  (0) 2015.11.18
VS filter 분류 정규표현식  (0) 2015.02.01
git 공간 정리  (0) 2014.10.20

+ Recent posts