--- ucs-school-netlogon-user-logonscripts/logon_script_templates/net-logon-script.vbs 2018-10-09 17:14:45.761581986 +0200 +++ ucs-school-netlogon-user-logonscripts/logon_script_templates/net-logon-script-new.vbs 2018-10-09 17:16:31.660894522 +0200 @@ -144,28 +144,24 @@ Set WshShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") strLinkPath = strDesktopFolderPath + "\Univention Management Console.URL" - If Not objFSO.FileExists(strLinkPath) Then - Set oUrlLink = WshShell.CreateShortcut(strLinkPath) - oUrlLink.TargetPath = "{umc_link}" - oUrlLink.Save - set objFile = objFSO.OpenTextFile(strLinkPath, 8, True) - objFile.WriteLine("IconFile=\\{hostname}.{domainname}\netlogon\user\univention-management-console.ico") - objFile.WriteLine("IconIndex=0") - objFile.Close - End If + Set oUrlLink = WshShell.CreateShortcut(strLinkPath) + oUrlLink.TargetPath = "{umc_link}" + oUrlLink.Save + set objFile = objFSO.OpenTextFile(strLinkPath, 8, True) + objFile.WriteLine("IconFile=\\{hostname}.{domainname}\netlogon\user\univention-management-console.ico") + objFile.WriteLine("IconIndex=0") + objFile.Close end function Function CreateUcsPortalLink() Set WshShell = CreateObject("WScript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") strLinkPath = strDesktopFolderPath + "\Univention Portal.URL" - If Not objFSO.FileExists(strLinkPath) Then - Set oUrlLink = WshShell.CreateShortcut(strLinkPath) - oUrlLink.TargetPath = "{portal_link}" - oUrlLink.Save - set objFile = objFSO.OpenTextFile(strLinkPath, 8, True) - Objfile.WriteLine("IconFile=\\{hostname}.{domainname}\netlogon\user\univention-portal.ico") - objFile.WriteLine("IconIndex=0") - objFile.Close - End If + Set oUrlLink = WshShell.CreateShortcut(strLinkPath) + oUrlLink.TargetPath = "{portal_link}" + oUrlLink.Save + set objFile = objFSO.OpenTextFile(strLinkPath, 8, True) + Objfile.WriteLine("IconFile=\\{hostname}.{domainname}\netlogon\user\univention-portal.ico") + objFile.WriteLine("IconIndex=0") + objFile.Close end function