• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 725
  • Last Modified:

Deploying a Shortcut Via Group Policy

I have a shortcut file (.url) on a server and I want to deploy it to all users. I know this can be done in a script format but I don't know how to go about that.
0
btny
Asked:
btny
  • 2
  • 2
  • 2
1 Solution
 
Mohamed OsamaSenior IT ConsultantCommented:
as a follow up on the second link, In your case You should be using %ALLUSERSPROFILE%\Desktop  as a destination for copying instead of %userprofile%\Desktop




0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
btnyAuthor Commented:
Well I'm a lot closer then I thought:

xcopy "\\server\shared\Create a Ticket.url" "%ALLUSERSPROFILE%\Desktop\" /D /C /R /Y

I keep getting an the error:

Script: C:\Users\btny\Desktop\Script.vbs
Line: 1
Char: 56
Error: Expected end of statement
Code: 800A0401
Source: Microsoft VBScript compilation error

I am using Windows 7 64-bit although I don't think that makes a difference.
0
 
Mohamed OsamaSenior IT ConsultantCommented:
Save the Xcopy script as .bat instead of .VBS 
add this line on top 
@echo off


0
 
btnyAuthor Commented:
THANKS SO MUCH!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now