+ Post New Thread
Results 1 to 6 of 6
Windows 7 Thread, gpp copy file to %commonstartupdir% error in Technical; Anyone successfully copied a file to the startup folder via gpp ? e.g C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup I set up a GPP ...
  1. #1

    Join Date
    May 2010
    Posts
    1,026
    Thank Post
    105
    Thanked 85 Times in 64 Posts
    Rep Power
    48

    gpp copy file to %commonstartupdir% error

    Anyone successfully copied a file to the startup folder via gpp ?

    e.g C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

    I set up a GPP to copy in (tried user and computer) a vbs file but I'm getting access denied (0x8007005)

    I can access and run the script from the test target machine no problem (it's on a remote share)

  2. #2

    AngryTechnician's Avatar
    Join Date
    Oct 2008
    Posts
    3,730
    Thank Post
    698
    Thanked 1,212 Times in 761 Posts
    Rep Power
    394
    What are the permissions on the share? You'll need to do this in computer GPP which will mean GPP is using the AD machine account to access the network.

  3. #3

    Join Date
    May 2010
    Posts
    1,026
    Thank Post
    105
    Thanked 85 Times in 64 Posts
    Rep Power
    48
    permissions are set to everyone, users and administrators, just tried a few others and still no go?

  4. #4
    free780's Avatar
    Join Date
    Sep 2012
    Posts
    970
    Thank Post
    41
    Thanked 80 Times in 76 Posts
    Rep Power
    20
    What does the vbs sxript do?
    Last edited by free780; 7th December 2013 at 07:21 AM.

  5. #5


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,866
    Thank Post
    226
    Thanked 2,665 Times in 1,964 Posts
    Rep Power
    785
    Rather than copy the script to the startup folder, why not run it is a logon script or via the HKCU Run key (below)? The latter can be created via GPP too.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
    "RunScript"="C:\\WINDOWS\\system32\\wscript.exe \\\\Server\\Share\\Startup.vbs"

  6. Thanks to Arthur from:

    caffrey (9th December 2013)

  7. #6

    Join Date
    May 2010
    Posts
    1,026
    Thank Post
    105
    Thanked 85 Times in 64 Posts
    Rep Power
    48
    It's just a script to pin things to the start menu, I can think of plenty of ways to do it, just wondering why this doesn't work, cheers Arthur I'll give that a try.

    I tried a different folder and applied settings to that, and even changed permissions on a test machine of the startup folder - still no go!

SHARE:
+ Post New Thread

Similar Threads

  1. Copy file to Homeshare for certain OU's
    By siuko in forum Wireless Networks
    Replies: 7
    Last Post: 6th July 2010, 11:54 AM
  2. Copy File to folder by date
    By grnslv in forum Scripts
    Replies: 7
    Last Post: 16th June 2010, 08:01 AM
  3. Copy files to another location
    By Chuckster in forum How do you do....it?
    Replies: 7
    Last Post: 23rd October 2009, 02:09 PM
  4. Replies: 19
    Last Post: 20th June 2006, 03:53 PM
  5. script to copy files to machines
    By browolf in forum Scripts
    Replies: 1
    Last Post: 28th November 2005, 10:28 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •