Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Working on it!!
- # Copy file(something.db) from local drive to C:\Storage\2020-11-18\ on 4 servers
- # Connect to the 4 Windows servers and restart a service
- # Let's use some variables
- # Something else?
- # get-service -name bits
- # get-help Restart-Service
- # "word word word"
- # Set variables
- $localpath = "D:\Data"
- $remotepath = "C$\Storage\
- $releasedate = "2020-11-18
- xcopy $localpath\*.db \\someserver\$remotepath\$releasedate\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement