NT Dial-Ins Scripts

Next lines are example. You need to change the names of the computer and directories for your needs.

Ftp script , Event: inserted , Account: Dial-in, Order: 1 (Order is not important in all scripts here)
URL: ftp://testuser:test@computer.ISPNAME.com/eventscripts/_insert

net user @New_UserName@ @New_Password@ /add /expires:never /active:yes
rassapi.exe \\computer @New_UserName@ /DialinPrivilege /NoCallback

Ftp script , Event: Deleted , Account: Dial-in, Order: 2 URL: ftp://testuser:test@computer.ISPNAME.com/eventscripts/_delete

net user @Old_UserName@ /delete 

Ftp script , Event: Updated , Account: Dial-in, Order: 3
URL: ftp://localuser:password@computer.ISPNAME.com/eventscripts/_update

net user @Old_UserName@ /delete 
net user @New_UserName@ @New_Password@ /add /expires:never /active:yes 
rassapi.exe \\computer @New_UserName@ /DialinPrivilege /NoCallback

Ftp script , Event: Suspended, Account: Dial-in, Order: 4
URL: ftp://localuser:password@computer.ISPNAME.com/eventscripts/_suspended

rassapi.exe \\computer @Old_UserName@ /NoCallback 

Ftp script , Event: Released , Account: Dial-in, Order: 5
URL: ftp://localuser:password@computer.ISPNAME.com/eventscripts/_released

rassapi.exe \\computer @New_UserName@ /DialinPrivilege /NoCallback