From 31d7d42edfd9c43fe89443dcace6a2425af841d0 Mon Sep 17 00:00:00 2001 From: Alen Date: Tue, 30 Jul 2024 19:56:17 +0800 Subject: [PATCH] =?UTF-8?q?BW5=E5=90=AF=E5=8A=A8=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改脚本为 UTF-8 with BOM 格式,解决添加注释后执行报错的问题 --- script/BootWay05.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/BootWay05.ps1 b/script/BootWay05.ps1 index fe643ba6..862281ef 100644 --- a/script/BootWay05.ps1 +++ b/script/BootWay05.ps1 @@ -1,4 +1,4 @@ -# 检查当前会话是否具有管理员权限 +# 检查当前会话是否具有管理员权限 function Test-Administrator { $user = [Security.Principal.WindowsIdentity]::GetCurrent() (New-Object Security.Principal.WindowsPrincipal $user).IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)