Solved

import job files from xp to windows 7

Posted on 2014-10-13
9
211 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
 

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
DevOps Toolchain Recommendations

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

 
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 68

Expert Comment

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

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now