U can execute pre and post scripts using sqlcmd utility. Before the snapshot is applied u need to specify scripts at Subscriber side. Script is used to create logins and schemas and more variety of reasons. U need to specify file location for each script and Snapshot agent copies files to snapshot folder when snapshot processing occurs. For more info visit: http://msdn.microsoft.com/en-us/library/ms152525.aspx