'CreateSC.vbs
Dim objShell:Set objShell=CreateObject("Wscript.Shell")
strDesktop = objShell.SpecialFolders("Desktop")
Dim objSC: Set objSC=objShell.CreateShortCut(strDesktop & "\iPAY-adp.lnk")
With objSC
.WorkingDirectory="https://ipay.adp.com"
.TargetPath="https://ipay.adp.com"
.IconLocation ="\\pcfileprint\PC_Signatures\CDR Link Project\Bank-Check.ico"
.Save
End With
Set objSC=Nothing
Set objShell=Nothing
strDesktop = objShell.SpecialFolders("ALLUSERSPROFILE")
Dim objSC: Set objSC=objShell.CreateShortCut(strDesktop & "\Desktop\iPAY-adp.lnk")
Dim objSC: Set objSC=objShell.CreateShortCut(strDesktop & "\Desktop\Corporate Shortcuts\iPAY-adp.lnk")
'CreateSC.vbs
Dim objShell:Set objShell=CreateObject("Wscript.Shell")
'strDesktop = objShell.SpecialFolders("Desktop")
strAllUserDesktop = objShell.ExpandEnvironmentStrings("%AllUsersProfile%") & "\Desktop\Corporate Shortcuts\ADP_iPay.ink"
Dim objSC: Set objSC=objShell.CreateShortCut("iPAY-adp.lnk")
With objSC
' .WorkingDirectory="https://ipay.adp.com"
.TargetPath="https://ipay.adp.com"
.IconLocation ="\\pcfileprint\PC_Signatures\CDR Link Project\Bank-Check.ico"
.Save
End With
Set objSC=Nothing
Set objShell=Nothing
'CreateSC.vbs
Dim objShell:Set objShell=CreateObject("Wscript.Shell")
strLogonServer = objShell.ExpandEnvironmentStrings("%LOGONSERVER%")
strAllUsersDesktop = objShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%") & "\Desktop"
Dim objSC: Set objSC=objShell.CreateShortCut(strAllUsersDesktop & "\iPAY-adp.lnk")
With objSC
.WorkingDirectory="https://ipay.adp.com"
.TargetPath="https://ipay.adp.com"
.IconLocation = strLogonServer & "\NetLogon\PC_Signatures\CDR Link Project\Bank-Check.ico"
.Save
End With
Set objSC=Nothing
Set objShell=Nothing
'CreateSC.vbs
Dim objShell:Set objShell=CreateObject("Wscript.Shell")
strLogonServer = objShell.ExpandEnvironmentStrings("%LOGONSERVER%")
strAllUsersDesktop = objShell.ExpandEnvironmentStrings("%ALLUSERSPROFILE%") & "\Desktop\Corporate Shortcuts"
Dim objSC: Set objSC=objShell.CreateShortCut(strAllUsersDesktop & "\iPAY-adp.lnk")
With objSC
.WorkingDirectory="https://ipay.adp.com"
.TargetPath="https://ipay.adp.com"
.IconLocation ="\\pcfileprint\PC_Signatures\CDR Link Project\Bank-Check.ico"
.Save
End With
Set objSC=Nothing
Set objShell=Nothing
See https://www.experts-exchange.com/questions/23347528/GPO-that-copies-Internet-shortcut-to-allusers-desktop-via-VBScript.html
You don't want the "Desktop" special folder though, use:
strAllUserDesktop = objShell.ExpandEnvironment