##查看标题
$host.ui.RawUI.WindowTitle
##试探权限
Enable-PSRemoting -Force
##返回Boolean值
([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("administrator")

拓展    之前文章

相关文章:

  • 2021-06-11
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2021-05-30
  • 2021-11-15
猜你喜欢
  • 2022-12-23
  • 2021-11-09
  • 2021-09-17
  • 2021-08-06
  • 2021-12-09
  • 2022-03-05
相关资源
相似解决方案