Guest Mark Posted October 7, 2008 Posted October 7, 2008 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!
Guest Meinolf Weber Posted October 7, 2008 Posted October 7, 2008 Re: "All Users" folder 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 > 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! >
Guest Linn Kubler Posted October 7, 2008 Posted October 7, 2008 Re: "All Users" folder 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 "Mark" <markl@csbonline.net> wrote in message news:OvOuBzHKJHA.5232@TK2MSFTNGP05.phx.gbl... >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! >
Guest Mark Posted October 8, 2008 Posted October 8, 2008 Re: "All Users" folder 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? "Meinolf Weber" <meiweb(nospam)@gmx.de> wrote in message news:ff16fb6691ae8caf6a60ad61bb9@msnews.microsoft.com... > 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 > >> 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! >> > >
Guest Florian Frommherz [MVP] Posted October 8, 2008 Posted October 8, 2008 Re: "All Users" folder Mark, Mark wrote: > 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
Guest Mark Posted October 13, 2008 Posted October 13, 2008 Re: "All Users" folder 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 [MVP]" <florian@frickelsoft.DELETETHIS.net> wrote in message news:u89%23GrTKJHA.5532@TK2MSFTNGP02.phx.gbl... > Mark, > > Mark wrote: >> 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
Guest Florian Frommherz [MVP] Posted October 14, 2008 Posted October 14, 2008 Re: "All Users" folder Mark, Mark wrote: > 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
Guest Mark Posted October 14, 2008 Posted October 14, 2008 Re: "All Users" folder 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 [MVP]" <florian@frickelsoft.DELETETHIS.net> wrote in message news:eTeiG%23bLJHA.1308@TK2MSFTNGP02.phx.gbl... > Mark, > > Mark wrote: >> 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
Guest RemyMaza Posted October 14, 2008 Posted October 14, 2008 Re: "All Users" folder On Oct 14, 11:55 am, "Mark" <ma...@csbonline.net> wrote: > 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 [MVP]" <flor...@frickelsoft.DELETETHIS.net> wrote in > messagenews:eTeiG%23bLJHA.1308@TK2MSFTNGP02.phx.gbl... > > > > > Mark, > > > Mark wrote: > >> 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- 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
Recommended Posts