Link to home
Start Free TrialLog in
Avatar of gisvpn
gisvpnFlag for United States of America

asked on

Shutdown specifying user name and password

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
Avatar of gisvpn
gisvpn
Flag of United States of America image

ASKER

quick additional question, is there anyway of specifying a user name and password when executing this batch file ?
Avatar of sunnycoder
Avatar of SilentExpert
SilentExpert

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?
Avatar of gisvpn

ASKER

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
Avatar of gisvpn

ASKER

Im using a network account which does have administrator access on here.
ASKER CERTIFIED SOLUTION
Avatar of fcisler
fcisler

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial