Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

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!
0
bbimis
Asked:
bbimis
  • 3
  • 2
  • 2
  • +1
1 Solution
 
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?
0
 
bbimisAuthor Commented:
folder full of job files and taking ownership of it.
0
 
MontoyaProcess Improvement MgrCommented:
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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!
0
 
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".
0
 
QlemoC++ DeveloperCommented:
Providing suggestion now.
0
 
QlemoC++ DeveloperCommented:
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
 
bbimisAuthor Commented:
thanks!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now