Relevance: exists FILE “C:\Users\Public\Desktop\Sun Life Shortcuts\Service Desk.lnk”
Action:
delete makeshortcut.vbs
delete shortcut.vbs
dos CMD /C Del “C:\Users\Public\Desktop\Sun Life Shortcuts\Service Desk.lnk” /F /Q
if {not exists folder “C:\helpdesk”}
dos md C:\helpdesk
endif
if {not exists file “C:\Helpdesk\Icons\HelpDesk.ico”}
prefetch f4b14653b3949d7d186bafef43ce12c099f61c5a sha1:f4b14653b3949d7d186bafef43ce12c099f61c5a size:93929 http://EDITED/Uploads/f4b14653b3949d7d186bafef43ce12c099f61c5a/HelpDesk.ico.tmp sha256:3f6e3637d679903bea771a84cbed0e846e94487ed3aa743b365de72345759ff2
extract f4b14653b3949d7d186bafef43ce12c099f61c5a C:\Helpdesk\Icons
endif
if {exists folder “C:\Users\Public\Desktop\Sun Life Shortcuts”}
appendfile SET WshShell = WScript.CreateObject(“WScript.Shell”)
appendfile strshortcut = "C:\Users\Public\Desktop\Sun Life Shortcuts\Service_Desk.lnk"
appendfile Set oUrlLink = WshShell.CreateShortcut(strshortcut)
appendfile oUrlLink.TargetPath = "https://slfhc.sdpondemand.manageengine.com/"
appendfile oUrlLink.IconLocation = "C:\helpdesk\HelpDesk.ico"
appendfile oUrlLink.Save
move __appendfile shortcut.vbs
else
appendfile SET WshShell = WScript.CreateObject(“WScript.Shell”)
appendfile strshortcut = "c:\Users\Public\Desktop\Service Desk.lnk"
appendfile Set oUrlLink = WshShell.CreateShortcut(strshortcut)
appendfile oUrlLink.TargetPath = "https://slfhc.sdpondemand.manageengine.com/"
appendfile oUrlLink.IconLocation = "C:\helpdesk\HelpDesk.ico"
appendfile oUrlLink.Save
move __appendfile shortcut.vbs
endif
waithidden cmd /c cscript shortcut.vbs
So I have another script with the same information except the file is in a different location. That one reports as fixed. This one just reports as not being relevant after being run. Can someone help?