2014. 9. 19. 09:29

1.현재 로그온 한 도메인 확인

$env:userdomain


2.로그온 한 사용자 계정 확인

$env:username


3.로그온한 사용자 계정의 SID, 인증 종류,
[System.Security.Principal.WindowsIdentity]::GetCurrent()


4.특정한 항목만 가져오기
[System.Security.Principal.WindowsIdentity]::GetCurrent() |

Select-Object -ExpandProperty User


출처 : http://cloudsns.wordpress.com/category/microsoft/powershell/page/13/

Posted by pegasuss