Copy a file to all users' desktops.

I want to copy a PDF file to all users' desktops, so I created a GPP to do this and it works if I place the source file, the PDF, on a shared folder.
However, my GPP will span a large network, across half the globe, thus having the PDF on a file server in one location will take a long time to copy to users' workstations in another location. I thus would like to replicate the PDF file along all the DCs
using the NETLOGON folder.
I thus placed the file in the following folder on my local domain controller:
C:\Windows\SYSVOL\sysvol\brightstarcorp.com\scripts\APAC\Files for APAC users
In my GPP, I used the following reference for the location of the PDF file:
Source: %logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf
Target: %userprofile%\desktop\APAC IT Support Contact Details final.pdf
Is this the correct way to do this?
My GPP is created on a Win2012 server for Win2008 domain controllers and Win7 clients.

When I put this in Explorer on the test machine:
%logonserver%\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf
I get the error:
"Windows cannot access \\MyADServer01\NetLogon\APAC\Files for APAC users\APAC IT Support Contact Details final.pdf"
But when I put this into Explorer"
%logonserver%\NetLogon\APAC\Files for APAC users\
....it opens the folder (replacing the %LOGONSERVER% with the domain controller name "MyADServer01" and displays the file. I can then double-click the file and open it.
Using the DC name or not, with the filename in the Explorer address bar, it will not open the file.
Event Viewer:
Log Name:      Application
Source:        Group Policy Files
Date:          27/12/2014 7:39:38 PM
Event ID:      4098
Task Category: (2)
Level:         Warning
Keywords:      Classic
User:          SYSTEM
Computer:      TestWS.mydomain.com
Description:
The user 'APAC IT Support Contact Details final.pdf' preference item in the 'APAC - Add IP Support Document to Workstation {E31F55EA-EF46-400B-A77A-012ECF400EC7}' Group Policy object did not apply because it failed with error code '0x80070002 The system cannot
find the file specified.' This error was suppressed.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Group Policy Files" />
    <EventID Qualifiers="34305">4098</EventID>
    <Level>3</Level>
    <Task>2</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2014-12-27T08:39:38.000000000Z" />
    <EventRecordID>258023</EventRecordID>
    <Channel>Application</Channel>
    <Computer>TestWS.mydomain.com</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data>user</Data>
    <Data>APAC IT Support Contact Details final.pdf</Data>
    <Data>APAC - Add IP Support Document to Workstation {E31F55EA-EF46-400B-A77A-012ECF400EC7}</Data>
    <Data>0x80070002 The system cannot find the file specified.</Data>
  </EventData>
</Event>
Strange!

Similar Messages

  • Script to Copy preference file to all users profiles and to the default template

    I have build a package using Apple PackageMaker, this will install an application and a preference (plist) file to the current logged in user. Now I wanted to build a postflight script, which can copy a plist (ex com.test.plist) form an current logged in user to other user account on a machine also to the default user template (/System/Library/user template/...../Library/preferences) so any new user account created will have same preference file copied.

    Hi Mark...here is another script which work well if I have to copy my preference file from an account named as "admin" or some other account. However, it not certain that all Mac machine will have a account named as "admin". This is why I am looking for a way to copy the preference file from /private/var location to all user accounts on a mac.
    #!/bin/sh
    localUsers=$( dscl . list /Users UniqueID | awk '$2 >= 501 {print $1}' | grep -v admin )
    for userName in "$localUsers"; do
         cp /Users/admin/Library/Preferences/org.mypreference.plist /Users/$userName/Library/Preferences/
         chown $userName /Users/$userName/Library/Preferences/org.mypreference.plist
    done
    I tried to update it as suggest in some other forum like this, still no luck
    #!/bin/sh
    UserAccounts=`dscl . list /Users UniqueID | awk '$2 > 500 { print $1 }'`
    for userName in "$UserAccounts"; do
         cp /private/var/org.mypreference.plist /Users/$userName/Library/Preferences/
         chown $userName /Users/$userName/Library/Preferences/org.mypreference.plist
    done
    When I run the above script it comes up with the following error:
    cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
    cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
    chown: admin: No such file or directory
    chown: admin/Library/Preferences/org.mypreference.plist: No such file or directory

  • How to deploy a file on all users C drive via group policy

    I'm trying to deploy a file on all users C drive via group policy but its not working. logon script is already kept in place but nothing is happening. If I run the same command from my pc it's working fine. Does any one have good script to copy & deploy
    the file. Pls help

    Hi,
    You can use Group Policy Preferences to deploy this and Item-level-Targetting to filter by OUs/groups, wmi filters ,etc.
    Computer Configuration / User Configuration - Preferences - Windows Settings - Files
    More on this here.
    http://technet.microsoft.com/en-us/library/cc772536.aspx
    Hope this helps.
    Regards,
    Calin

  • How can I copy a file with all attributes

    Is there a way within Java to copy a file, with all its file attributes?
    I have seen a number of custom methods posted on these forums for copying the contents of a file to a new file with the same name in another location. The problem is that these methods don't copy the file attributes, particularly the creation date.
    If there is no way to do this in Java, is there a way to have Java execute an operating system command, such as "COPY" or to access the O/S to change the file attributes?
    Thanks for any help you can provide.

    This is how runtime executes a batch file.
    try {
      Process p = Runtime.getRuntime().exec("cmd /c start c:\\batfile.bat");
      p.waitFor();
    } catch (Exception e) {
        System.out.println(e.toString());
    }

  • Move the Cache files for all user in the domain, which work with the PC

    Is there a possibility to chance the Cache file for all User.
    If i logon with a new user the Cache is written automatically in Proflie of the user.
    can configure to Java in such a way that with announce a user the Cache file get automatically moved to c:\temp.
    Thanks for your help

    oh, too bad, it is part of the requirement-we need to do it automatically through web.
    Any easier method to change the client machine deployment.properties through web?
    Need to deploy the application to thousands PC and the PC configuration may be different one by one.
    oldguy

  • Global emacs config file for all users?

    Hi all,
    i put .emacs in my home dir, but it do not take effect when  'sudo emacs'
    so where should i put the config file for all users ?
    thanks!

    use this elisp snippet to edit file by sudo
    (defun xwl-revert-buffer-with-sudo ()
    "Revert buffer using tramp sudo.
    This will also reserve changes already made by a non-root user."
    (interactive)
    (let ((f (buffer-file-name))
    (p (point)))
    (when f
    (let ((content (when (buffer-modified-p)
    (widen)
    (buffer-string))))
    (kill-buffer (current-buffer))
    (if (file-remote-p f)
    (find-file
    (replace-regexp-in-string "^\\/[^:]+:" "/sudo:" f))
    (find-file (concat "/sudo::" f)))
    (when content
    (let ((buffer-read-only nil))
    (erase-buffer)
    (insert content)))
    (goto-char p)))))

  • Is there an All Users Desktop folder, so anyone who logs on gets files in it?

    I'd like to place a shortcut to a website on the desktop of all users who log on to a specific machine.  How can I do that in Mavericks?

    The Mac has a Shared folder. Anything in that folder is accessible to any user, but it isn't on the Desktop. I suppose you could put an alias to it in the Desktop folder each user's account.
    Of course you can have a public website to which users can navigate and put a link to it in every user's account.

  • Copying a file in Single User Mode

    Hi all,
    I was in the hospital, trying to backup files from my 15 inch Macbook Pro (new in November, running the latest OS), when I knocked over a cup of coffee, burning me.  I knocked the computer onto the floor as I jumped up and now it is locked and read only, no matter what I do (original attempts to fix can be found here: https://discussions.apple.com/message/21633118#21633118).  I can boot into single user mode, or holding down 'option' when I push the power button, but not boot normally to save my life.
    I need to copy the entire user file ("Liz") from the damaged HD in single user mode to an external drive ("passport").  Is this possible?  I tried using disk utility to copy the files, but it gives me an IO error. Being a novice, I am unsure if this is possible.  It's the last chance I think I have to save the files I was *trying* to backup when I spilled the coffee.  Some of it is critically important, so if you have any ideas, PLEASE let me know.
    Thank you in advance.
    Liz

    There are several ways to back up a Mac that is unable to fully boot. You need an external hard drive to hold the backup data.
    1. Boot into Recovery (command-R at startup) or from a local Time Machine backup volume (option key at startup.) Launch Disk Utility and follow the instructions in the support article linked below, under “Instructions for backing up to an external hard disk via Disk Utility.”
    How to back up and restore your files
    2. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode by holding down the key combination command-T at the startup chime. Connect the two Macs with a FireWire or Thunderbolt cable. The internal drive of the machine running in target mode will mount as an external drive on the other machine. Copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    How to use and troubleshoot FireWire target disk mode
    3. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.

  • All users desktop

    Hi there
    I seem to have a lot of questions this week. Sorry!
    I want to put a shortcut on the OSX desktop for all users no matter who logs in. How can I achieve that please?
    I also wanted to associate a file so it opens a specific program - for all users again (rather than have to set it each time). Is there any easy way of doing this please?
    I have googled it but can't find an answer.
    Thanks

    Surely one can set a common file association for all users
    You can add a usro resource to your file and it should open in the application that you chose for all users. Right click on the file and choose other in the drop down menu. Navigate to your application of choice and select it. Check the box "Always Open With" and click OK.
    Isn't there a way of being able to automate this?
    You need to make a script. Either AppleScript or a shell script. Your file needs to be in a location that all users have access to like /Users/Shared. Your choice of "shortcut" is either a Finder alias or a symbolic link. Since your plan is deploy this "shortcut" to hundreds of users, I suggest that you use a symbolic link. A symbolic link is significantly smaller than a Finder alias.

  • How to copy default settings to all user ?

    Dear Expert
    I want to set for all users have same default settings (default form layout)
    is there any way to copy default settings from 1 user to another users ?
    really appreciate your help
    thank you
    Best Regards
    JeiMing

    Hi,
    If am understood, I hope you are expect the authorization copy.
    Procedure
           1.      In the Administration  --> System Initialization  --> Authorizations window, choose the name of the user whose authorizations are to be copied. Hold the mouse button until a rectangle appears around the user name.
           2.      Drag the rectangle to the name of the user to whom to grant the authorizations.
           3.      Release the mouse button.
           4.      A system message prompts for confirmation of the copy operation.
           5.      Choose OK to confirm the operation. The authorizations are copied completely to the second user.
    Thanks & Regards,
    Venkatesan G.

  • Stting auto pac file for all users

    What happened to all.js in Firefox 4.
    Need to be able to place a pac file into proxy settings for all users. Do not want to have to get the users to individually enter a pac file for their own profile.
    If this is no longer possible in version 4, I think Firefox is going to lose a lot of domain users

    js files in %PROGRAMFILES%\Mozilla Firefox\defaults\pref\ are read on startup (In reverse alphabetical order AFAIK). You can create a file here for your proxy settings. Works for me.
    cf : http://wpkg.org/Firefox#Setting_and_Locking_Preferences

  • Copy/Move Files preserving all metadata

    Hi,
    Silly question, but how do I copy or move files on an OES11 sp1 NSS volume (source and destination are on the same server) in such a way that all the metadata and data structure is preserved? In particular I want to preserve ownership, trustee's, timestamps, and namespaces. Thus I cannot use for example a Windows client since it does not understand the Mac namespace among other things. If the data were on NetWare NSS volumes (as both source and destination) then I would use SCMT. But of course SCMT does not work with OES11. I tried using the Miggui tool, but it does not work either - it does not support the source and destination being on the same server.
    My use case is that I want to move a user's homedirectory to a new volume (on either the same or a different server) and then create a junction from the original location to the new thus eliminating the two hassles of updating the user object homedirectory attribute in eDir and/or revising the shortcut/alias on their desktop (typically an OSX client).
    Thanks,
    Ron

    All accounts I am testing with are LUMified and 'id' on the server is copacetic too, so that is not it. I thought that maybe it was some "bad info" in one of the miggui xml project files so I blew them all away (/var/opt/novell/migration/). Tried with the bad account - and it still failed. So I looked at the log file and found this bug reported there:
    2013-09-27 12:28:37,718 ERROR - FILESYSTEM:volmount.rb:Command to mount source: ruby /opt/novell/migration/sbin/volmount.rb -s 0.1.2.3 -a "cn=badaccount,ou=x,o=y" -c Not Applicable -f "/var/opt/novell/migration/NewProj0/fs/mnt/source" -m -t OES20
    2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:*****************Command output start**********************************
    2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:Information: ldapsearch command executed as "ldapsearch -LLL -s sub -H ldaps://0.1.2.3 -x -D "cn=badaccount,ou=x,o=y" "(&(CN=n12_*)(objectClass=Volume))" linuxNCPMountPoint -W"
    2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:/opt/novell/migration/sbin/volmount.rb:616: [BUG] Segmentation fault
    2013-09-27 12:28:37,722 INFO - FILESYSTEM:volmount.rb:ruby 1.8.7 (2011-12-28 patchlevel 357) [x86_64-linux]
    Clearly the attempt to mount the volumes as sources is causing a segmentation fault - says so right there! But it has no problem with the exact same volumes as targets. Likely this is because the target is the local server and nothing special needs to be done to mount the target file systems since they are arleady mounted. But the source could be anything so it is going to try to identify and mount the source filesystems via that volmount.rb script.
    I decided to try the offending command from the command-line to see if I could get better feedback on the error and to quickly/easily try different parameters. Right away I could see that the miggui was either not passing the password on the command-line or it was but was hiding it in the log file. Also it passes an incorrect type with the '-t OES20' parameter. It should be '-t OES2'. However looking at the volmount.rb script it turns out that it only tests for 'NW' / not 'NW'. Thus if you pass it '-t popo' it will still work just fine!
    The long story made short is that I have no idea what is causing this bug. At one point I thought that it was an error in handling certain characters in the password, such as &. But that turned out to be a red herring. After a lot of password testing, eDir object rights futzing and filesystem trustee assignment poking I've come up with... "it is working now - no idea what was wrong earlier". Sigh I hate these kind of problems.
    Cheers,
    Ron

  • Place Outlook shortcut on All Users' desktops via Group policy

    Hello I am looking for a way to deploy a desktop shortcut to all of our Windows 7 machines for Microsoft Outlook. The difficulty I am running into is that we have x86 and x64 versions of Microsoft Office installed on the machines, and no easy way to identify
    which is which.
    Does anyone have a suggestion of how to create a single Group Policy that could place an Outlook shortcut on the public desktop which would work regardless of what version is installed?

    If all of Office suite (e.g. Office 15) installed in default path, please deploy the following script and run it locally:
    Set objShell = WScript.CreateObject("WScript.Shell")
    strDesktopFolder = objShell.SpecialFolders("Desktop")
    Set objShortCut = objShell.CreateShortcut(strDesktopFolder & _
    "\Outlook.lnk")
    objShortCut.TargetPath = chr(34) & "%ProgramFiles%\Microsoft Office 15\root\office15\OUTLOOK.EXE" & chr(34)
    ObjShortCut.IconLocation = "%ProgramFiles%\Microsoft Office 15\root\office15\OUTLOOK.EXE, 0"
    objShortCut.Save
    The following application path is also ok in this vbs
    %ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\Outlook 2013.lnk
    Thanks.
    Tony Chen
    TechNet Community Support

  • How to stop iPhoto opening on all user desktops

    Whenever iPhoto is opened by one user on an iMac, the application also opens on the other user's desktops so that when you switch users you have to quit iPhoto before working.  Is there a way of limiting iPhoto opening onlu on the currect logged in user's desktop?

    You could assign iPhoto to a space, that will not be used in the other user's account.
    Launch Mission Control and drag the iPhoto window to a different space, e.g. Desktop 3.
    Then ctrl-click (or right-click) iPhoto in the Dock and select "Options > Assign to this Desktop"
    When you now switch to a different user account, you will not see the open iPhoto window on the main desktop, because it is hidden on Desktop 3.

  • Store signature image in Active Directory and deploy it to each users desktop

    What I am trying to achieve is to have each user a hand written signature scanned in and stored in the .jpgPhoto attribute in Active Directory and then have some sort of script, like our login script, pull that information and copy the file to the users
    desktop.  We are wanting to be able to allow users to apply the signature image on a signature line in Office 2010 or InfoPath forms instead of typing their name.    I know there has to be a way to do this but I have not found it yet and I am
    not very good at scripting.  Is there anyone here that has accomplished such a task and if so, how did you go about doing it? 
    David Hood

    We already have Outlook email signatures created from AD information deployed to all users.  Someone else on my team deployed that already and it works great.  But that is just basic user info pulled from fields that were manually entered in
    the user account.  What I want to do is have a user scribble their signature on a piece of paper or a tablet, capture an image of that to crop and resize to store in the AD user account or somewhere secure that can be queried to be pushed to that users
    desktop.  I work at a state government agency and I have heard of another agency doing this but I have no idea how they did it.  The only thing I could think of is to have a script ran during login to query the AD attribute the image is stored in,
    pull it and then copy it to the users machine so when they sign a word document or .PDF with a digital signature they also have the option to place that image in the signature line. 
    David Hood

Maybe you are looking for