Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs
[715] Services - advanced actions    « Back to Category
Author: Andy Kwak, Created on: Mar 28, 2007 6:11 PM
Keywords: .net, Registry, VBScript, sc.exe, service
Categories: Windows Server, PowerGUI Library
Rating:


Exposes the following actions for services:

Delete service - removes the service using the sc delete command line exe.

Modify Path to executable - changes the command line used to run the service. This is done by accessing the registry entry for the service.

These actions demonstrate the following:
- Invoke .net classes to display MessageBoxes
- Use conditional logic
- Invoke a command line utility (sc.exe)
- Invoke VBScript (to call InputBox)
- Read and write the registry using registry provider

I added these actions because they are 2 things you can't do from the Services control panel applet, which I've had to do on occasion.

Use caution with these, as you could delete services and change paths to something invalid!

Document Rating
Rating:

Downloads
Click to download this attachment deleteservice.action (903 bytes)
Downloaded 2650 Times
Click to download this attachment modifypath...ble.action (1.0 K)
Downloaded 2284 Times
Related Documents
No Related Documents