What software is it?
What software is it?
run("cmd.exe /c sc stop someservice", "", @SW_HIDE)
$StopService = _RunDos("net stop servicename")
$StartService = _RunDos("net start servicename")
May need the RunAs function:
Runs an external program under the context of a different user.
RunAs ( "username", "domain", "password", logon_flag, "filename" [, "workingdir" [, show_flag [, opt_flag ]]] )
Stick it in the logon script or compile an .exe to start at logon or shove it in the Run registry.
I have scripts which stop and start various services all the time.
[ Example below ]
Code:; AutoIt Version: 220.127.116.11 ; Language: English ; Platform: WinXP ; Author: Matt ; Script Function: Delays TMLISTEN.EXE for a time between 5 and 20 mins ; Version: 1.1 Beta ; Date: Sept 2008 ;1.1 - added Random time element Opt("TrayIconHide", 1) DIM $time $time = Random(300000, 1200000, 1) Sleep($time) RunAsSet("administrator", @ComputerName, "LOCAL_ADMIN_PASSWORD") Run(@ComSpec & ' /c net start tmlisten', '', @SW_HIDE) RunAsSet() Exit
Last edited by mattx; 5th December 2009 at 01:01 AM.
PCounter has their own little messaging application for on their site for that don't they?
We use PCounter too. WBalance is their messenging system, but it only shows balance.
I too have thought about enabling the Messenger Service for better feedback, as it just won't let the kids know they don't have enough credit if they try to print.
You could in theory do both - a script and GPO method. Generally speaking using a GPO would be my approach.
PPopup.exe will display print confirmation dialogue, and department code window etc but it does not inform the user that they do not have enough credits. I'm told it's WBalance.exe that does this.
FragglePete, do you have a vanilla network? I'm keen to discuss this more with you to see. Then I can get back on to them.
WBalance gets loaded at logon, we automatically credit each Student account with 10p each day which is enough for 5 x A4 Mono and 2 x A4 Colour prints per day. If they want anymore they have to come and see us to ask and explain why. Problem is, the WBalance window is the first thing the kids close when they login, so any messenging that provides (and I've only seen it do the balance anyway) gets lost.
I'm going to look at this Popup app a bit more now, I'm intrigued.
That's interesting. We're a CC4 and WBalance.exe doesn't display any dialogue. I need to find another school with CC4 and Pcounter.
At the moment it is sending messages through the messenger service which is not what it is supposed to do.
I'm not sure if it's RM policies in place blocking it.
Can you try altering your credit to 0 and printing, on a user that shouldn't be allowed to print with 0 credits. Does the dialogue display with a 'Messenger service' title or WBalance?
This is what I keep getting when I try to do it remotely. How do I know if the CMD is successful without going round each machine?
Shorten the "start=Automatic" to "start=auto".
The command is failing because it doesn't recognise "Automatic".
To check the config, "sc \\machine_name qc messenger".
Last edited by TheLibrarian; 8th December 2009 at 10:22 AM.
Edu-IT (8th December 2009)
The command help isn't exactly clear.
I've just tried it, you have to have a space between "start=" and "auto", so it should read "sc \\machine_name config messenger start= auto".
That *does* work here, I've just tested it.
There are currently 1 users browsing this thread. (0 members and 1 guests)