2017-02-28 1 views
1

에서 목록 계정, 우리는 서로 다른 디렉토리에 매핑 된 계정으로 내보내기 창 우리의 서버는 Bitvise SSH 서버 컨트롤 패널

WinssHD Setting

우리는 150 개 이상의 윈도우 계정이 않습니다는 Bitvise SSH 서버가 있습니다. 이제 사용자 계정 목록을 내보내고 매핑을 보냅니다. 이 질문은 어리석게 들릴지 모르겠지만 누구나 윈도우 계정 사용자 목록을 다른 모든 기존 세부 정보와 함께 내보내는 데 도움이 될 수 있습니까?

Windows account details

답변

1

으로 here, herehere 당 :

#you may need to put your server version here like BssCfg721 
$cfg = new-object -com "BssCfg726.BssCfg726" 

$cfg.LoadServerSettings() 

#this exports all windows accounts to csv file 
$cfg.settings.access.winAccounts | Export-Csv 'c:\export.csv' 
+0

앞에'#Requires -RunAsAdministrator' 도움이 될 수 있으며, 긴 속성 도움을 항상 같은'$의 cfg.settings.access 때문에 .winAccounts | * -ExcludeProperty 도움말 | Export-Csv 'c : \ export.csv' '는 출력을 사용 가능한 길이로 줄입니다. – LotPings