+ Reply to Thread
Results 1 to 2 of 2

Thread: Copy folder over 500 system from GPO logon script

  1. #1
    deepak_message is offline Getting Started on GPanswers.com
    Join Date
    Sep 2009
    Posts
    3

    Default Copy folder over 500 system from GPO logon script

    Hi,

    Recently I joined this form. I am working as a system administrator in a company. I am having much problem.

    I made one policy for setting company's wallpaper and screen saver. policy is working good, it is setting wallpaper and screensaver on the system when both file available inside the windows folder of the system.

    when I am coping manually to system wallpaper(wallpaper.jpg,screen.scr) folder to c:\windows folder, then working. but we have aprox 500 systems. not possible manually to keep folder inside windows folder.

    I made one script in vb. and configured on group policy editior > user configuration > windows settings >> scripts (logon\logoff). in the logon I gave the script path which is available inside the shared folder.
    but policy doesn't copy wallpaper folder in inside the windows folder.

    Please check below my script and do let me know the solution, if you have. I am very glad, if you helping me.

    ******************************
    Dim sOriginFolder, sDestinationFolder, sFile, oFSO
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    sOriginFolder = "\\badc1\Wallpaper" //this folder has domain users read only right.
    sDestinationFolder = "c:\windows\" // here it will copy
    For Each sFile In oFSO.GetFolder(sOriginFolder).Files
    If Not oFSO.FileExists(sDestinationFolder & "\" & oFSO.GetFileName(sFile)) Then
    oFSO.GetFile(sFile).Copy sDestinationFolder & "\" & oFSO.GetFileName(sFile),True
    End If
    Next

    **********************************
    Please check and help me. thanks in advance.

  2. #2
    deepak_message is offline Getting Started on GPanswers.com
    Join Date
    Sep 2009
    Posts
    3

    Default

    Please reply me, any one ......

+ Reply to Thread

Posting Permissions

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

Search Engine Friendly URLs by vBSEO