Univention Bugzilla – Attachment 9697 Details for
Bug 47937
Always create link shortcuts in netlogon scripts even if they already exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
remove if condition in function that creates shortcuts to portal and umc on win desktops
netlogon-always-create-link-shortcuts-u.patch (text/plain), 2.03 KB, created by
Valentin Heidelberger
on 2018-10-10 17:19:29 CEST
(
hide
)
Description:
remove if condition in function that creates shortcuts to portal and umc on win desktops
Filename:
MIME Type:
Creator:
Valentin Heidelberger
Created:
2018-10-10 17:19:29 CEST
Size:
2.03 KB
patch
obsolete
>--- 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 47937
:
9696
| 9697