Solved

Deploying a Shortcut Via Group Policy

Posted on 2010-09-02
6
713 Views
Last Modified: 2012-05-10
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
Comment
Question by:btny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 21

Expert Comment

by:jvuz
ID: 33594403
0
 
LVL 23

Expert Comment

by:Mohamed Osama
ID: 33594957
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:btny
ID: 33596290
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
 
LVL 23

Accepted Solution

by:
Mohamed Osama earned 500 total points
ID: 33596330
Save the Xcopy script as .bat instead of .VBS 
add this line on top 
@echo off


0
 

Author Closing Comment

by:btny
ID: 33596501
THANKS SO MUCH!
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Determining the an SCCM package name from the Package ID
When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question