Solved

I put a command to shut down computers remotely and the command said job added how do I view jobs added

Posted on 2011-03-04
10
265 Views
Last Modified: 2012-06-22
Ok  so I added this command to the command line at \\computername 12:00 /every:friday,saturday,sunday "shutdown /r

but for some reason the comand did not do any thing. how can I view these jobs
0
Comment
Question by:explorer648
  • 4
  • 4
  • 2
10 Comments
 
LVL 11

Expert Comment

by:TheGorby
ID: 35039476
Is it a Scheduled task maybe?
0
 

Author Comment

by:explorer648
ID: 35039481
Well it is the command line so it should be but how do I view scheduled jobs
0
 
LVL 11

Expert Comment

by:TheGorby
ID: 35039538
For Windows XP:
go to Start->Programs->Accessories->System Tools->Scheduled tasks

For Windows Vista and Windows 7:
http://windows7forums.com/windows-7-support/35253-how-view-scheduled-tasks-windows-7-a.html
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 47

Expert Comment

by:Donald Stewart
ID: 35040285
Try this syntax instead


AT  \\computername 12:00 /EVERY:f,s,su %comspec% /c shutdown /r
0
 

Author Comment

by:explorer648
ID: 35124806
OK none of these worked.
I do not understand the switches that are used.
please can we try the solutions before posting them
I tried all of these and none of them worked
probally because I am on a wondows domain or something
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 35124971
"I do not understand the switches that are used."

Well then ask

 
"please can we try the solutions before posting them"

Of course I tried them before posting them, that's why I corrected your syntax in the first place.

What do you mean the question is not going anywhere? Maybe if you work with the experts you can get the answers you are looking for.

This is the same command that I have used to schedule restarts for computers in my environment.

TheGorby answered your question on how to view the jobs added (Scheduled tasks)

and I answered the question as to why your command wasnt working(Wrong syntax)



0
 

Author Comment

by:explorer648
ID: 35125035
I did try both of the with out success.
the syntax is really complicated and just does not seem to work no matter what I do.
I tried it in several ways with the switches and with out.
so I will be putting in a call with mycrosoft to figure out what to do
0
 

Author Comment

by:explorer648
ID: 35125042
I also didnot know what to do the the varaable comspec. if the command is very clearly stated
and knowing that the machine is front-desk-1 and the domain is oog if I have a command that incorperates that and it works the first time with no unknown variables I will be able to award points.
if ther are variables please explain in detail what do with them and weather I use quotes ot not or anything
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 35125155
If you copy paste the command exactly as it is and change "Computername" to match the computer name that you want it to run on you will get a scheduled task created with the name of At1 set to run every fri sat sunday.


%comspec% is the system environment variable for cmd.exe

 /C     Carries out the Command and then terminates

so if your computer name is "test" then run this command from the command line

AT  \\test 12:00 /EVERY:f,s,su %comspec% /c shutdown /r

then go to your scheduled tasks and you should see a task there labeled "At1"

right click on "At1" and select run....a system shutdown box should then open giving you 30 seconds before a restart will happen.

If you quickly type shutdown -a you can abort it.
0
 
LVL 47

Accepted Solution

by:
Donald Stewart earned 500 total points
ID: 35125158
more examples/explanation on "AT" also here

http://ss64.com/nt/at.html
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
robocopy for file server migration 11 47
Register DLL's in Windows 7 3 34
CBS.LOG 2 161
robocopy vs xcopy vs copy 8 110
The way I use Experts Exchange to assist me in analyzing and diagnosing a problem is I first enter a Verbose Question at Experts Exchange like: Office 2007 will hang when opening and saving files I then launch WordPad (any text editor will do) an…
Have you ever had a hard drive that you can't boot into, but need to change the registry? Here is the solution! This article guides you through accessing and editing a registry of a non-primary drive. To read registry information on a non-prim…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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). …

770 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