Execute a script into a folder copied from a server in AD

Home Forums Scripting General Scripting Execute a script into a folder copied from a server in AD

This topic contains 3 replies, has 3 voices, and was last updated by  senator91 8 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #167464

    I need to create a script (.bat, .vbs, powershell, etc) that copy a folder from a server and run another script that is in the folder copied, my environment is Windows Server 2008 Active Directory.

    Thanks and best regards.


    wullieb1
    Moderator
    #245746

    Should be easy enough

    xcopy \servershare c:folder
    cd c:folder
    scriptname.whatever


    senator91
    Member
    #391985

    Thank you!… the script must be run with localadmin privileges, how can i do that?


    wullieb1
    Moderator
    #245749

    Run it as a start up script.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.