Create new service in Windows Server 2008.

Posted on 2012-08-30
Last Modified: 2013-02-01

In windows 2000, we have used following syntax to create new service.

From resource kit folder :

Instsrv.exe myservice “C:\Program Files\Resrouce Kit\srvany.exe”

And We migrted recently to windows 2008 and want to create same service in 2008..

what i did was i took srvany.exe from 2003 and put into 2008 (c/windows/system32) and executed following command from c prompt..

sc create myservice binPath=“C:\windows\system32\srvany.exe”

when i execute above command, it is showing description, usage, help etc.. but it is not sucessfully creating my service.

Can you please help me..

Question by:RNithik
    1 Comment
    LVL 44

    Accepted Solution

    You need a \\ServerName between sc and create, and you need a space after the equals sign.


    Without the \\servername, you're using 'Syntax2' which displays help information.

    Featured Post

    Gigs: Get Your Project Delivered by an Expert

    Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

    Join & Write a Comment

    Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
    Many admins will agree: WSUS is is a nice invention but using it on the client side when updating a newly installed computer is still time consuming as you have to do several reboots and furthermore, the procedure of installing updates, rebooting an…
    Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now