How to automate using powershell script

Hi Expert

How to automate it using powershell script daily to transfer 2 files from a network drive and upload it to google drive without user interfering.
alanlam123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kenfcampCommented:
A robocopy script setup as a scheduled task should do what you're looking for
0
alanlam123Author Commented:
Is there a script reference
0
kenfcampCommented:
Based on your question I'm assuming the network drive is mapped to a drive letter on the system you'll be running this on

With this in mind you could try:

robocopy Z:\some-folder\file1.doc C:\Users\user-name\Documents\google-drive-folder\
robocopy Z:\some-folder\file2.doc C:\Users\user-name\Documents\google-drive-folder\
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Hello ThereSystem AdministratorCommented:
Create a new task that will run Powershell.exe under admin account and then in Arguments field write the path to your script.
(arguments:  -ExecutionPolicy RemoteSigned -File C:\script.ps1)

Script
robocopy S:\yourFile1 C:\Users\%username%\Disk Google\
robocopy S:\yourFile2 C:\Users\%username%\Disk Google\

Open in new window

0
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
If you want direct access to Google Drive instead of relying on automated synhronisation as shown above, you'll have use something like https://github.com/prasmussen/gdrive instead of RoboCopy or similar commands.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alanlam123Author Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.