Solved

Shutdown specifying user name and password

Posted on 2004-03-23
8
1,438 Views
Last Modified: 2012-06-27
Im using Symantec Packager to install a Windows up-date.

At the end of the up-date i need to restart the computer using a batch file.

On Windows 2000 computers im using PSShutdown - r -t 04:00

On Windows XP Computers im using Shutdown -s -t 10800

However when the batch file is executed on the remote computer the Windows XP computer says "A required privilege is not held by the client". However im executing this under a admin account !

Is there a another restriction thats preventing this from executing ?

Thanks

GISVPN
0
Comment
Question by:gisvpn
8 Comments
 

Author Comment

by:gisvpn
ID: 10662600
quick additional question, is there anyway of specifying a user name and password when executing this batch file ?
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 10664573
0
 

Expert Comment

by:SilentExpert
ID: 10673470
Two *possible* issues at work here.

1) the batch file is being run under an account other than admin (i.e. secondary logon) or restricted service account (depending on how the batch file is being started)
2) What admin account? Is the PC on a network? If so, are you using a domain admin account on a PC not part of the domain? or listed as being able to administrate the computer? Also, are there any policies in effect preventing what you are trying to do?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:gisvpn
ID: 10675387
I think that there are policies in effect preventing this from happening.

I have tried to look at some in secpol.mcs howeverim not sure which ones should make this work, as this is being run with an administrators account..

thanks
0
 

Author Comment

by:gisvpn
ID: 10675396
Im using a network account which does have administrator access on here.
0
 
LVL 1

Accepted Solution

by:
fcisler earned 500 total points
ID: 10708130
adjust security token privelages
it's something to that effect. Try doing it without the reboot flag and it should work. I BELIEVE, dont quote me on this, that that privelage is required to reboot. I know using our remote shutdown tool i could shutdown the PC without a message under my admin account, but i could not reboot or shutdown with message until i added myself to this priv. group.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

A short article about a problem I had getting the GPS LocationListener working.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

777 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