Reputation: 117
In our server, we have Bitvise SSH server,
We do have more than 150 windows accounts, with each account different directory has been mapped. Now I want to export the user account list and it's mapping. The question may sound silly, but anyone can help me with exporting the windows account user list with all the other existing details?
Upvotes: 1
Views: 1608
Reputation: 3409
#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'
Upvotes: 1