Solved

import job files from xp to windows 7

Posted on 2014-10-13
9
215 Views
Last Modified: 2014-11-13
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!
0
Comment
Question by:bbimis
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 19

Expert Comment

by:Montoya
ID: 40377006
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?
0
 

Author Comment

by:bbimis
ID: 40377122
folder full of job files and taking ownership of it.
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40377147
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:bbimis
ID: 40377174
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!
0
 
LVL 59

Expert Comment

by:LeeTutor
ID: 40440221
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".
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 40440222
Providing suggestion now.
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40440261
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

0
 

Author Closing Comment

by:bbimis
ID: 40440507
thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question