Our student Macbooks (El Capitan) are not bound to our Active Directory. However, the students need to use their active directory userid and password to print to a networked printer which are setup on our Windows print server. Sometimes a student will enter an incorrect password when initially printing and save it to keychain. The manual process is easy to delete. However, I'd like to create a script policy that I can add to Self Service so the students can use it. The keychain entry is a "network password" for our print server, so it's easy enough to find and delete.
I'm new to the Apple scripting but want to learn more about it.
I would appreciate any assistance in writing the correct script that I can add to a policy in self-service.