"All Users" folder

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I have a Windows 2003 Server running AD, and about 50 Windows XP
workstations. I need to copy a shortcut to the "All Users" desktop folder
and do not want to have to go around to 50 computers to do this. Does
someone know if this can be automated through a Group Policy or logon
script? The users do NOT have admin access to their LOCAL computers so I do
not think a copy command in the logon script will work. Thanks!
 
Hello mark,

Run a startup script, shortcut.cmd for example:

:Copy shortcut to remote workstation
if not exist "c:\Documents and settings\all users\desktop\yourshortcut" copy
"\\domainname\netlogon\yourshortcut" "c:\Documents and settings\all users\desktop\yourshortcut"


Best regards

Meinolf Weber
Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights.
** Please do NOT email, only reply to Newsgroups
** HELP us help YOU!!! http://www.blakjak.demon.co.uk/mul_crss.htm
 
Hi Mark,

I just did this very thing last week. I gave up on the login/startup script
idea and just ran a batch file that read a file containing the target
computer names and copied the shortcut there. Here's what I used, based on
a response in the scripting group.

for /f %%C in (complist.txt) do (
echo %%C >> log.txt
copy PI.url "\\%%C\c$\Documents and Settings\All Users\Desktop" >>
log.txt
)
echo Done!
pause

Once I had the script figured out the hardest part was compiling the
complist.txt file. I dumped the results to a log file to track my progress.

Hope this helps,
Linn
 
But would I NOT get an "Access Denied" because the user who is logging in
does not have write access to the "All Users\Desktop" folder?
 
Mark,
But would I NOT get an "Access Denied" because the user who is logging in
does not have write access to the "All Users\Desktop" folder?

Not when using a computer startup script. That script then runs in the
SYSTEM context of the machine - that should have sufficient rights to
modify the files.

cheers,

Florian
 
Thanks for the help in understanding this. I just tried this out and the
problem I have is that the script will not run. I do not get any errors or
anything, the script just won't run. Here is how I have it setup:

The script filename is copyint.bat. I put it in the folder being shared as
"Netlogon", the same place as the logon scripts. Then, in Group Policy, I
went to "Computer Configuration\Windows Settings\Scripts". I double-clicked
"Startup", then clicked the "add" button, then typed in the script name,
copyint.bat. I then ran gpupdate. Am I missing something here?

Florian Frommherz said:
Mark,
But would I NOT get an "Access Denied" because the user who is logging
in does not have write access to the "All Users\Desktop" folder?

Not when using a computer startup script. That script then runs in the
SYSTEM context of the machine - that should have sufficient rights to
modify the files.

cheers,

Florian
--
Microsoft MVP - Group Policy
eMail: prename [at] frickelsoft [dot] net.
blog: http://www.frickelsoft.net/blog.
Maillist (german): http://frickelsoft.net/cms/index.php?page=mailingliste
 
Mark,
Thanks for the help in understanding this. I just tried this out and the
problem I have is that the script will not run. I do not get any errors or
anything, the script just won't run. Here is how I have it setup:

The script filename is copyint.bat. I put it in the folder being shared as
"Netlogon", the same place as the logon scripts. Then, in Group Policy, I
went to "Computer Configuration\Windows Settings\Scripts". I double-clicked
"Startup", then clicked the "add" button, then typed in the script name,
copyint.bat. I then ran gpupdate. Am I missing something here?

Let's try something different. From "CompConf\Win Settings\Scripts" you
can click "Browse" where it open an FileOpen dialog on some folder on
SYSVOL. Drag and Drop the copyint.bat script in there - just right into
the FileOpen dialog in the location it pops up. That is the place the
script should go.

cheers,

Florian
 
I did this and the script still will not run. Any more ideas?

Maybe I can accomplish the same by using a LOGON script to copy the shortcut
into the "Document and Settings\username\desktop" folder. My only question
here is what would the syntax be? Below is my actual script:

:Copy shortcut to remote workstation
if not exist "c:\Documents and settings\all users\desktop\Sentry
Intranet.url" copy "\\smserver\netlogon\Sentry Intranet.url" "c:\Documents
and settings\all users\desktop\"

I would have to change "all users" in the path to the specific username.
How?


Florian Frommherz said:
Mark,
Thanks for the help in understanding this. I just tried this out and the
problem I have is that the script will not run. I do not get any errors
or
anything, the script just won't run. Here is how I have it setup:

The script filename is copyint.bat. I put it in the folder being shared
as
"Netlogon", the same place as the logon scripts. Then, in Group Policy, I
went to "Computer Configuration\Windows Settings\Scripts". I
double-clicked
"Startup", then clicked the "add" button, then typed in the script name,
copyint.bat. I then ran gpupdate. Am I missing something here?

Let's try something different. From "CompConf\Win Settings\Scripts" you
can click "Browse" where it open an FileOpen dialog on some folder on
SYSVOL. Drag and Drop the copyint.bat script in there - just right into
the FileOpen dialog in the location it pops up. That is the place the
script should go.

cheers,

Florian
--
Microsoft MVP - Group Policy
eMail: prename [at] frickelsoft [dot] net.
blog: http://www.frickelsoft.net/blog.
Maillist (german): http://frickelsoft.net/cms/index.php?page=mailingliste
 
 I did this and the script still will not run. Any more ideas?

Maybe I can accomplish the same by using a LOGON script to copy the shortcut
into the "Document and Settings\username\desktop" folder.  My only question
here is what would the syntax be?  Below is my actual script:

:Copy shortcut to remote workstation
if not exist "c:\Documents and settings\all users\desktop\Sentry
Intranet.url" copy "\\smserver\netlogon\Sentry Intranet.url" "c:\Documents
and settings\all users\desktop\"

 I would have to change "all users" in the path to the specific username.
How?

message

Let's try something different. From "CompConf\Win Settings\Scripts" you
can click "Browse" where it open an FileOpen dialog on some folder on
SYSVOL. Drag and Drop the copyint.bat script in there - just right into
the FileOpen dialog in the location it pops up. That is the place the
script should go.

Florian
--
Microsoft MVP - Group Policy
eMail: prename [at] frickelsoft [dot] net.
blog:http://www.frickelsoft.net/blog.
Maillist (german):http://frickelsoft.net/cms/index.php?page=mailingliste- Hide quoted text -

- Show quoted text -

If you wanted this to appear on the desktop of the person that logs
into the computer, then you'll have to run the script under the User
settings, NOT the computer settings... Then you'll have to change the
"C:\documents and settings\username\desktop" to this variable:

%userprofile%\desktop

If you use the command prompt and type echo then a variable such as
%userprofile% it will show you the actual folder path. I'd suggest
using it b/c it can save a lot of headache.

Regards,
Matt
 
Back
Top