import job files from xp to windows 7

how do you make a bat file that will change all the permissions on select job files in windows 7.
I have a bunch of scheduled task that were made in xp and trying to migrate them to windows 7.  I know I had a script a while back that would do it but I can't find it anywhere
it did something with schtask.

thanks!
bbimisAsked:
Who is Participating?
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.

MontoyaProcess Improvement MgrCommented:
is this something that you're doing from time to time, or are you simply going to transfer the folder full of files and you want to take ownership of it?
bbimisAuthor Commented:
folder full of job files and taking ownership of it.
MontoyaProcess Improvement MgrCommented:
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

bbimisAuthor Commented:
looking for something more along these lines
for loop of some sort to go through al the files
{
schtasks /change /RU administrator/RP goodpassword /tn "*"
}

thanks!
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

The question has either no comments or not enough useful information to be called an "answer".
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
Providing suggestion now.
Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
If still interested: This will go thru all jobs defined, with exception of the MS pre-defined ones:
@echo off
for /F "tokens=1 delims=," %%T in (
  'schtasks /query /FO csv ^| findstr /v "\Microsoft\ TaskName"'
) do schtasks /change /RU administrator/RP goodpassword /tn %%T

Open in new window

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
bbimisAuthor Commented:
thanks!
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
Windows 7

From novice to tech pro — start learning today.