|
Answer» I am righting a new .bat command to put on end user desktops. basically it is Net Stop Spooler Net Start Spooler
Basically it restarts the spooler.
However within this command they NEED to have administrator rights. if I add
login administrator
to the beginning of the script it does not work.
Any ideas? start the .bat with the following:
net use \\computername /USER:administratorname passwordyou might want to also get it wait a few seconds before restarting. (form experience)
something like;
ping LOCALHOST >nulNice,
Now one more question. from command prompt, how do I see all logins and what machine they logged into over the last 24 HRS?
This has been a stumper for a while
Thanks Again!!why not put this at the end of the batch file: Code: [Select]echo %computername% %logonserver% %userdomain% %username% logged in at %date% %time% >> "C:\Documents and Settings\somefile.txt" this will put all of that info into a TEXT file on the hard DRIVE. to make it go to your server you will have to change the output file Code: [Select]"C:\Documents and Settings\somefile.txt" to where ever your server is.
|