Link to home
Start Free TrialLog in
Avatar of operationsIT
operationsIT

asked on

Powershell Script to move file from g:\copy to 5 specific machines startup folder

Hello EE,

I am looking for some help with a powershell script or template to help me get started.
I have 5 machines named test1, test2....test5 where I need to copy a file from a network share g:\copy
to each of these machines startup folder.

Any help would be great.  This can't be just manual.
SOLUTION
Avatar of Alan
Alan
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of operationsIT
operationsIT

ASKER

I'm trying to use GPo less and start some scripts if this is even possible with powershell
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is powershell hard?  I have to open a request so it'll take longer with group policy
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This is great.  It is very close.  It says I don't have permission so maybe I need to add a line for admin username/password?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Opening command in elevated mode will only allow me to copy from network share to my own startup, but not anyone else.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Can you do it in the batch or do you need to create a GPO and the use the batch?  i was hoping since it's a one time thing, it would be a single solution
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If I run your batch I get "Access denied" on all systems but my own.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, my domain admin login
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'll try that and report back
Hi operationsIT,

How did that go?

Thanks,

Alan.
Hi operationsIT,

I guess it is working okay now?

Thanks,

Alan.
EE requested assistance with closing this question.