Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Powershell script to move old files and create shortcut

Avatar of bloodywicked
bloodywicked asked on
Microsoft DevelopmentPowershell
12 Comments1 Solution2954 ViewsLast Modified:
Hello everyone,

Could someone can please help me with creating a PowerShell script that will do the following:

1) Check "\\server1\networkshare" directory (and it's sub-folders) for any files that haven't been modified for 360 days.  AND that are not part of an exculde.txt file (as certain folders and files are required NOT to be archived)

2) If it finds a file(s), then "Move"  to "\\server2\archive\networkshare" and create a shortcut in the original location(s).

Please Note: not sure if this is relevant.  But some of the files that need to archived include "%" and the "&" symbol in their names.  Not really sure how this will be accounted for in the script.

I'm using PowerShell 2.0 CTP 3 and both servers are running win2k3 R2
Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of soostibi
soostibiFlag of Hungary image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answers