Data.Get.SAM
Top  Previous  Next


Fills the [Data] section with account data from an NT4 server or XP / 2000 / NT workstation

Extracted properties:

Column
Property
1
SamAccountName
2
Full name
3
Password age
4
Disabled
5
Locked out
6
Last logon
7
Last logoff
8
Expires
9
Bad password
10
Logons
11
Password expired
12
Home directory
13
Home directory drive letter
14
Script
15
Profile
16
Logon hours


Notice: 16 properties -> set BatchSettings.MarkerCol to 17 or higher.

Category
Data section

Script section
[Init]

Data.Get.SAM \\Machine

Machine
NetBIOS name of machine to get data from  
 
Important notice
Please make sure that none of the extracted properties contains the character used as delimiter in the [Data] section. Example: if the display name contains a comma and BatchSettings.Delimiter is comma, following commands will misread data from the [Data] section.

Example
Get data from server \\EDU8 and save it in c:\data.txt:

[Settings_Begin]
BatchSettings.Delimiter=;
BatchSettings.MarkerCol=17
BatchSettings.MarkersAutoRemove=Yes
[Settings_End]

[Init_Batch_Begin]
Data.Get.SAM \\edu8
Data.Save c:\data.txt   
[Init_Batch_End]

[Data_Begin]
[Data_End]