creating a service using Sc
I am not getting this working
sc create OracleDbConsoleConver binpath=D:\oracle\product\10
.2.0\db_2\BIN\nmesrvc.exe
This is the output:
DESCRIPTION:
Creates a service entry in the registry and Service Database.
USAGE:
sc <server> create [service name] [binPath= ] <option1> <option2>...
OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec>
(default = own)
start= <boot|system|auto|demand|disabled>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by / (forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>
I hope someone could guide me.
Thanks
March 3rd, 2011 11:30pm
Have I posted it in a wrong forum which doesn't handle this kind of questions, where should I post it? Please guide me.
Free Windows Admin Tool Kit Click here and download it now
March 4th, 2011 4:21am
Please post this query in the MSDN fourms the people over there are much more familiar with coding
http://social.msdn.microsoft.com/Forums/en/categories/http://www.virmansec.com/blogs/skhairuddin
March 4th, 2011 5:51am
It seems you are missing a space after the EQUAL sign.
Try this:
SC create OracleDbConsoleConver binpath= pathoftheexe start= starttype type= own DisplayName= "Displaynameoftheservice”
Please note there is a space after the equal "=" sign and not
before it
customize starttype, Displaynameoftheservice and pathoftheexe
as per your requirement
Thanks,
Madhurjya
MSFT
Madhurjya Bora OS performance Team, MSFT
Free Windows Admin Tool Kit Click here and download it now
March 6th, 2011 10:17pm