https://support.microsoft.com/en-us/kb/324639
执行
net localgroup "Performance Monitor Users" "IIS apppool\aaaaaa.bbbffffffffbb.com.cn" /add
会出现:
C:\WINDOWS\system32>net localgroup "Performance Monitor Users" "IIS apppool\aaaaaa.bbbffffffffbb.com.cn" /add
此命令的语法是:
NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
使用PS解决这个问题
powershell -command "& { ([adsi]'WinNT://./Performance Monitor Users,group').Add('WinNT://IIS apppool/aaaaaa.bbbffffffffbb.com.cn,group'); }"