Home All Groups Group Topic Archive Search About

Copy a shortcut to desktop at startup

Author
23 Mar 2005 3:37 PM
Fabrussio
I very simply want to copy a shortcut to:
c:\documents and settings\all users\desktop
Using a STARTUP script I am getting "access denied"...but I thought startup
scripts ran as 'system' which has write access to the 'desktop' folder???

How can I copy it another way?
Folder Redirection is not an option.

Author
23 Mar 2005 4:23 PM
Ray Costanzo [MVP]
Does the file already exist in that location and is it read only?

Ray at work

Show quoteHide quote
"Fabrussio" <Fabrus***@discussions.microsoft.com> wrote in message
news:E3CF4669-DD70-47D0-A01D-8340B369D5A0@microsoft.com...
> I very simply want to copy a shortcut to:
> c:\documents and settings\all users\desktop
> Using a STARTUP script I am getting "access denied"...but I thought
startup
> scripts ran as 'system' which has write access to the 'desktop' folder???
>
> How can I copy it another way?
> Folder Redirection is not an option.
Author
23 Mar 2005 8:43 PM
Fabrussio
No, it's just a shortcut to a program.
I am using a simple .bat file in the startup scripts part of GPO.
xcopy \\server\folder\file.lnk c:\docume~1\alluse~1\desktop /c /q /y

the \\server\folder share has administrators, domain users and computers FC
permissions. The bat file runs but errors with access denied. In windows
logged in as admin running the file manually it works fine. Our users are
highly restricted.

thanks 4 any advice


Show quoteHide quote
"Ray Costanzo [MVP]" wrote:

> Does the file already exist in that location and is it read only?
>
> Ray at work
>
> "Fabrussio" <Fabrus***@discussions.microsoft.com> wrote in message
> news:E3CF4669-DD70-47D0-A01D-8340B369D5A0@microsoft.com...
> > I very simply want to copy a shortcut to:
> > c:\documents and settings\all users\desktop
> > Using a STARTUP script I am getting "access denied"...but I thought
> startup
> > scripts ran as 'system' which has write access to the 'desktop' folder???
> >
> > How can I copy it another way?
> > Folder Redirection is not an option.
>
>
>
Author
23 Mar 2005 11:23 PM
Royce
have you tried using the "runas" command?

Show quoteHide quote
"Fabrussio" wrote:

> No, it's just a shortcut to a program.
> I am using a simple .bat file in the startup scripts part of GPO.
> xcopy \\server\folder\file.lnk c:\docume~1\alluse~1\desktop /c /q /y
>
> the \\server\folder share has administrators, domain users and computers FC
> permissions. The bat file runs but errors with access denied. In windows
> logged in as admin running the file manually it works fine. Our users are
> highly restricted.
>
> thanks 4 any advice
>
>
> "Ray Costanzo [MVP]" wrote:
>
> > Does the file already exist in that location and is it read only?
> >
> > Ray at work
> >
> > "Fabrussio" <Fabrus***@discussions.microsoft.com> wrote in message
> > news:E3CF4669-DD70-47D0-A01D-8340B369D5A0@microsoft.com...
> > > I very simply want to copy a shortcut to:
> > > c:\documents and settings\all users\desktop
> > > Using a STARTUP script I am getting "access denied"...but I thought
> > startup
> > > scripts ran as 'system' which has write access to the 'desktop' folder???
> > >
> > > How can I copy it another way?
> > > Folder Redirection is not an option.
> >
> >
> >
Author
24 Mar 2005 2:49 PM
Ray Costanzo [MVP]
A startup script runs under the local system account, so it doesn't have
access to a network share that needs a domain account to authenticate.

Ray at work

Show quoteHide quote
"Fabrussio" <Fabrus***@discussions.microsoft.com> wrote in message
news:E5AAAC84-790D-4442-B7E6-BBA138B3C401@microsoft.com...
> No, it's just a shortcut to a program.
> I am using a simple .bat file in the startup scripts part of GPO.
> xcopy \\server\folder\file.lnk c:\docume~1\alluse~1\desktop /c /q /y
>
> the \\server\folder share has administrators, domain users and computers
FC
> permissions. The bat file runs but errors with access denied. In windows
> logged in as admin running the file manually it works fine. Our users are
> highly restricted.
>
> thanks 4 any advice
>
>
> "Ray Costanzo [MVP]" wrote:
>
> > Does the file already exist in that location and is it read only?
> >
> > Ray at work
> >
> > "Fabrussio" <Fabrus***@discussions.microsoft.com> wrote in message
> > news:E3CF4669-DD70-47D0-A01D-8340B369D5A0@microsoft.com...
> > > I very simply want to copy a shortcut to:
> > > c:\documents and settings\all users\desktop
> > > Using a STARTUP script I am getting "access denied"...but I thought
> > startup
> > > scripts ran as 'system' which has write access to the 'desktop'
folder???
> > >
> > > How can I copy it another way?
> > > Folder Redirection is not an option.
> >
> >
> >