August 25, 2015

Copy files on all computers using group policy

Group policy is very handy when you want to do some repetitive boring tasks on multiple machines, it saves time, and it is always error free. Example of files can be copied through GPO on computer is Dll file or can be portable EXE files for users (ie putty.exe).

One of my subordinates got an activity to copy putty.exe on all the windows servers arount 1200. Isn't it boring. So I proposed him automated solution and this how I achieved the task in couple of minutes. I copied Putty.exe to share folder and Read permissions given to Authenticated user under sharing and security. My shared network path name is \\AD002\files.
 Above screenshot is for sharing and below is for security, Autheticated users has Read permissions.
Copy putty.exe on share path.
Open group policy management tool on domain controller or your PC if you have installed administrative tools.go to Group Policy objects, right click and new GPO. Give it some name (Copy_Putty)

Right click and Edit Copy_Putty policy.
Now go to Computer Configuration>> Preferences>>Windows Settings>>Files>> New>>File.
Source is the my shared file location here I have copied my Putty.exe and from here it will be copied to destination c:\windows on all servers.
This is how policy looks, Close it
Its  time to attach policy to OU where my computers reside. Go to that OU right click and link an Existing GPO.
 Select Group Policy Copy_Putty from list.

Its all done now you have wait either for next 90 mins or run GPupdate /force on computers you will see Putty.exe file present under C:\windows folder.

Now user can use find program putty for ssh into linux.


http://www.slideshare.net/laonap166/copy-files-on-all-computers-using-group-policy

Related Posts:

  • Tự học MCSA 2012 Cách sử dụng Hyper-V để làm lab Như các bạn đã biết thì Hyper-V, chương trình tạo máy ảo, được Microsoft tích hợp miễn phí vào HDH Windows 8 phiên bản pro trở lên.  Để cài đặt Hyper-V thì CPU phải hỗ trợ công nghệ ảo hóa. Nếu CPU của bạn là Intel &nb… Read More
  • Quản lý Hyper-V 2012R2: Phần 1 Tuhocmang – Như đã biết, Hyper-V 2012R2 có rất nhiều cải tiến, có thể cạnh tranh trực tiếp với VMware Vsphere. Một trong những cải tiến nổi bật của nó là Máy ảo thế hệ 2. Máy ảo thế hệ 2 Hyper-V 2012R2 hỗ trợ 2 loại máy ảo… Read More
  • Quản lý Hyper-V 2012R2: Phần 2 Tuhocmang – Hyper-V 2012R2. Bài này mình sẽ trình bày tiếp tục các tùy chỉnh trong Hyper-V Settings. Hyper-V Settings Physical GPUs (Physical Graphic Processing Units): Thực tế thì các server vật lý thường không … Read More
  • Cài đặt Hyper-V 2012R2 Tuhocmang – Để cài đặt HYperV thì CPU phải hỗ trợ công nghệ ảo hóa (Intel-VT hoặc AMD-V) Để kiểm tra CPU có hỗ trợ hay không các bạn vào đây để tham khảo bài viết. Yêu cầu phần cứng tối thiểu của Hyper-V 2012R2 … Read More
  • Convert windows 2012 Hyper-v sang Virtuozzo lỗi boot EFIConvert windows 2012 Hyper-v sang Virtuozzo lỗi boot EFI tương tự như hình:Hướng xử lý:Disable boot EFI:Dùng command line:prlctl set <Tên VM> --efi-boot offHoặc dùng PVA:Chọn VM cần cấu hình -> Hardware Settings ->… Read More

0 comments:

Post a Comment