Avatar of lianne143
lianne143Flag for United States of America

asked on 

Copying a shortcut file to the users desktop in XP

Hi

I have a .hml shortcut which was sent by a survey department.I downloaded the html shortcut.When i open it directly opens a webpage with the user name and password already entered.I have to say ok to logs into the website.

We use window 2008 DC and I want this shortcut be placed on all the XP PC users desktop.We use VB script when the user logs in. Is it possible add a script so that shortcut is copied to the users desktop.

Or if you have any other better way of doing this please suggest.

Thanks
Windows Server 2008Windows Server 2003Windows XP

Avatar of undefined
Last Comment
Rory Clerkin
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of lianne143
lianne143
Flag of United States of America image

ASKER

I copied the batch file to the c drive of the local PC and If I execute the .bat file logged in as a administrator , it copies the .htm file to the desktop. But if I run as a user it says access denied.
xcopy "\\AppServer\Shared\WebLink.htm" "C:\Documents and Settings\All Users\Desktop"
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of lianne143
lianne143
Flag of United States of America image

ASKER

Now  when I run the .vbs locally on client PC as a user,the file gets copied successfully to the user desktop.

But when I add this line to the existing user logon script
xcopy "\\AppServer\Shared\WebLink.html" "%userprofile%\Desktop"

and when the user logs on I get a pop up window , which says:

Windows Script host
Script: \\Server1\netlogon\student.vbs
Line: 8
Char:47
Error:unexpected end of statement
Code:800A04401
Source:Microsoft VBScript Complation error
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of lianne143
lianne143
Flag of United States of America image

ASKER

The content of the student.vbs is it has a .exe path and  its a printer service which it executes when user logs in .
SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of LeeTutor
LeeTutor
Flag of United States of America image

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
ASKER CERTIFIED SOLUTION
Avatar of Rory Clerkin
Rory Clerkin
Flag of Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Windows Server 2003
Windows Server 2003

Windows Server 2003 was based on Windows XP and was released in four editions: Web, Standard, Enterprise and Datacenter. It also had derivative versions for clusters, storage and Microsoft’s Small Business Server. Important upgrades included integrating Internet Information Services (IIS), improvements to Active Directory (AD) and Group Policy (GP), and the migration to Automated System Recovery (ASR).

129K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo