D8TA Posted May 20, 2005 Share Posted May 20, 2005 I noticed I have users who are disabling services. I am trying to figure out how to re-enable a disable sevice via the command line. I am going to add this to a login script so everytime a user logs in these services will re-enable, if disabled, and restart or start. Link to comment Share on other sites More sharing options...
Martin Zugec Posted May 20, 2005 Share Posted May 20, 2005 Which OS? Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 Oops, sorry. Windows XP Link to comment Share on other sites More sharing options...
jondercik Posted May 20, 2005 Share Posted May 20, 2005 Use GPO's Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 Currently the PCs I manage aren't in a domain environment and that is what I need something from a login script. Hopefully in the near future all these machines will be part of AD.Which takes me back to my original question, how do I re-enable a disable sevice via the command line. I am going to add this to a login script so everytime a user logs in these services will re-enable, if disabled, and restart or start. Link to comment Share on other sites More sharing options...
The-VOICE Posted May 20, 2005 Share Posted May 20, 2005 To get you started from a command line type:net start /?orsc /? Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 Thanks but I know the net start or sc commands. I keep getting this error message:C:\>sc \\pc11091-vm config icollectservice start=auto[sC] OpenSCManager FAILED 1722:The RPC server is unavailable.The RPC service is started and running am I missing something? Link to comment Share on other sites More sharing options...
jondercik Posted May 20, 2005 Share Posted May 20, 2005 use local gpos Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 Under what setting, I am looking through them now.I would still like a command line syntax for use with a login script. Link to comment Share on other sites More sharing options...
thomasd Posted May 20, 2005 Share Posted May 20, 2005 You can use gpedit on the PC's.It will give you the same benefit as GPO's in a domain, but you have to apply it on all the PC's seperatly.Just click start, run, and type gpedit.mscHere you have all the functions to lock down the PC, but be careful not to shut yourself out of the system. Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 I am not finding anything on the services??? I have looked through all the tabs within Group Policy, where can I find the area for the services? I have utilized the Group Policy for a few items and deployed through Radia. But that is one issue I have is users are Disabling the Radia services so I am unable to deploy these settings. Thus the need for a login script, everyone needs to log into the network. Link to comment Share on other sites More sharing options...
The-VOICE Posted May 20, 2005 Share Posted May 20, 2005 I would start by restricting users from controlling services. IMHO it sounds like you're approaching this backwards. Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 I would start by restricting users from controlling services. IMHO it sounds like you're approaching this backwards.<{POST_SNAPBACK}>How would I go about restricting the services within group policy? Your right I am, this would prevent them from doing it again after I have the service started again. Link to comment Share on other sites More sharing options...
Banditosway Posted May 20, 2005 Share Posted May 20, 2005 To re-enable a disabled service, you can also use a vbscript (if you're familar with using them). That could be run from command line too. In it you can specify which service you are looking for and check whether it's currently running or stopped. If stopped, then start it. (I can give an example if need be).To prevent users from stopping the services, then listen to the above postings and lock them down via Policies. Link to comment Share on other sites More sharing options...
D8TA Posted May 20, 2005 Author Share Posted May 20, 2005 Banditosway, could you give me an example using the service 'icollectservice'I am looking through the Policies but am not seeing anything that would allow me to specify just certain user(s) can make modification to certain Services. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now