Advertisement
FlufferBuffer

Untitled

Nov 18th, 2020 (edited)
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Working on it!!
  2.  
  3.  
  4. # Copy file(something.db) from local drive to C:\Storage\2020-11-18\ on 4 servers
  5. # Connect to the 4 Windows servers and restart a service
  6. # Let's use some variables
  7. # Something else?
  8.  
  9.  
  10. # get-service -name bits
  11. # get-help Restart-Service
  12. # "word word word"
  13.  
  14.  
  15.  
  16.  
  17. # Set variables
  18. $localpath = "D:\Data"
  19. $remotepath = "C$\Storage\
  20. $releasedate = "2020-11-18
  21.  
  22. xcopy $localpath\*.db \\someserver\$remotepath\$releasedate\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement