Use Powershell to import website with Chinese domain
问题 I’m trying use PowerShell to add website from xml file. When I just use CMD command appcmd add site /in < test.xml The binding of website is 「測試.com.tw」and everything be fine. But when I use Powershell Get-Content test.xml | appcmd add site /in The binding will be 「???.com.tw」 Even if I change chcp to 65001 or use “-encoding utf8” when get-content, but nothing change and still can’t correct import a website with Chinese domain. My server is 2008 R2 and Powershell 1.0 Does anyone know how I