# Website.Deploy **Repository Path**: gitmy/Website.Deploy ## Basic Information - **Project Name**: Website.Deploy - **Description**: Powershell部署网站至IIS/部署Topshelf开发的Windows服务; - **Primary Language**: PowerShell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2026-10-02 - **Last Updated**: 2026-10-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 执行脚本前需使用管理员权限更改脚本策略,否则机器默认是不可执行任何脚本 默认策略 Restricted -脚本不能运行 更改为 RemoteSigned -本地创建的脚本可以运行,但从网上下载的脚本不能运行(除非它们拥有由受信任的发布者签署的数字签名) 更改方法: 以管理员身份运行Powershell,执行以下命令 Set-ExecutionPolicy remotesigned PowerShell.exe路径 C:\Windows\System32\WindowsPowerShell\v1.0 策略更改完毕之后修改配置文件,将需要发布的网站与Windows服务写在配置文件里,以管理员身份执行脚本即可