Announcement

Collapse
No announcement yet.

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

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

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

    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.

  • #2
    Should be easy enough

    xcopy \\server\share c:\folder
    cd c:\folder
    scriptname.whatever

    Comment


    • #3
      Thank you!... the script must be run with localadmin privileges, how can i do that?

      Comment


      • #4
        Run it as a start up script.

        Comment

        Working...
        X