- @echo off
- set "f=C:\Windows\Explorer.exe"
- set "n=0"
- for /f %%i in ('PowerShell "$ID=(Get-ACL '%f%').Access.IdentityReference.Value -match 'Administrators$';$ID.Count"') do (
- set "n=%%i
- )
- if %n% GTR 1 (
- echo;^>1
- ) else if %n% EQU 1 (
- echo;=1
- ) else (
- echo;NULL
- )
- pause
复制代码
|