Problem: The school-user-logonscripts seems corrupt

Problem:

The school-user-logonscripts seems corrupt and looks like some parts are misssing:

root@school:/var/lib/samba/sysvol/school.schein.sun/scripts/user# tail cscheini.vbs
oLink.Save
 
Set oWS = WScript.CreateObject("WScript.Shell")
sLinkFile = FolderPath + "\Marktplatz.LNK"
Set oLink = oWS.CreateShortcut(sLinkFile)
oLink.TargetPath = "\\school\Marktplatz"
oLink.Save
 
MapDrive "K:","\\school\sun-8B"
MapDrive "M:","\\school\Marktplatz"

Solution:

The user-logonscripts are only rewritten when class assignments or workgroups change. Corruptions can be undetected for a long time.
So to rewrite the scripts manually, you can trigger a listener resync

univention-directory-listener-ctrl resync ucs-school-user-logonscript
Mastodon