GPOs and Terminal server users


  • Hello

    gpo failing for remote users , im trying to push down a template with vbs

    Option Explicit
    dim path
    path=CreateObject("WScript.Shell").ExpandEnvironmentStrings("%AppData%") & ("\Microsoft\Templates")
    dim objFSO
    set objFSO=CreateObject("Scripting.FileSystemObject")
    If objFSO.FileExists(path & "pp.pot") = False Then
    objFSO.CopyFile "\\lwhatever\Scripts\templates\Office\Powerpoint\pp.pot", path & "\"
    End If

    they get

    line 7

    char 1

    error Permission denied

    code 800a0046

    then some users get

    path not found 800a004c

    • Edited by totalnet32 Wednesday, May 27, 2015 9:36 PM
    Wednesday, May 27, 2015 3:06 PM


  • > objFSO.CopyFile "\\lwhatever\Scripts\templates\Office\Powerpoint\pp.pot
    > <file://\\lwhatever\Scripts\templates\Office\Powerpoint\pp.pot>", path & "\"
    This is more script related than GPO related, but anyway: What happens
    if you execute this script manually? Can you access the remote file? Can
    you write to the target path?

    Greetings/Grüße, Martin

    Mal ein gutes Buch über GPOs lesen?
    Good or bad GPOs? - my blog…
    And if IT bothers me - coke bottle design refreshment (-:
    • Marked as answer by totalnet32 Thursday, May 28, 2015 2:52 PM
    Thursday, May 28, 2015 7:59 AM

All replies