YAGMURADAM Posted August 25, 2011 Share Posted August 25, 2011 Bat Dosyasıyla Servisleri(Hizmetleri) Açıp Kapatma [b]Program hakkında bilgiler:[/b] Bugün sizlere laım olacağını düşündüğüm bir işlemi anlatacağım. Windows servislerinde(hizmetlerinde) her zaman çalışmasına gerek duymadığımız programlara ait servisleri(hizmetleri) geçici olarak devre dışı bırakabiliriz.Bunu bir bat dosyasıyla devre dışı bırakıp yine bat dosyasıyla servisi yeniden aktif hale getirebiliriz.Hazırsanız başlayalım. 1.Önce hangi hizmeti kapatacağımızı belirleyelim.Bunun için Başlat>Çalıştır >services.msc diyoruz. 2.Diyelim ki acronisin Acronis Nonstop Backup Service hizmetini geçici kapatacaksınız. [img]http://i.imgur.com/TyvIA.png[/img] İlgili hizmete sağ tıklayıp özellikleri seçiyoruz. [img]http://i.imgur.com/YAgfD.png[/img] 3.Açılan ekranda hizmet adını kopyalayınız. [img]http://i.imgur.com/XlX4D.png[/img] 4.Şimdi bir not defteri açın ve şu ibareyi yazın ve bir boşluk bırakın. net stop [img]http://i.imgur.com/iJi2q.png[/img] ve ardından kopyaladığınız hizmet adını boşluktan sonra yapıştırın. net stop afcdpsrv [img]http://i.imgur.com/c6780.png[/img] Şimdi not defterine Dosya>Farklı kaydet Tüm dosyalar deyip ilgili hizmetin görünen adını(istediğiniz ismi koyabilirsiniz)yazıp uzantısını bat. olarak kaydedin. Bat dosyasını çalıştırdığınızda ilgili servis kapatılacaktır.Eğer otomatik açılmalı ise bir sonraki açılışta aktif olur. Peki aynı hizmeti açmak istersem ne yapacağım? O da kolay. Düzenlediğiniz bat dosyasını sağ tıklayıp düzenle deyin. ve net stop komutu yerine net start yazıp farklı kaydet deyin ve hizmet adını yazıp tüm dosyalar seçeneği aktifken uzantısını yine bat olarak değiştirip kaydedin. Örnek komut: net start afcdpsrv Unutmadan bir bat dosyasında birden fazla hizmeti açıp kapatabilirsiniz. Her satırda bir komut yazarsanız cmd.exe bunları sırayla uygular. Gülegüle kullanın.Saygılarımla Link to comment Share on other sites More sharing options...
SimpsoN_Bart Posted August 25, 2011 Share Posted August 25, 2011 [font="Georgia"]Güzel paylaşım eline sağlık daha fazlası için cmd ye net/? yazarsanız daha birçok işlevi olduğunu görebilirsiniz. [/font] Misal Kullanıcı hesaplarını öğrenmek için; [codebox]net user[/codebox] Windows'un hangi hizmetlerini başlattığını öğrenmek içinde; [codebox]net start[/codebox] [font="Georgia"]daha fazlası sizin isteğinize bağlı..[/font] Link to comment Share on other sites More sharing options...
siirt56 Posted August 26, 2011 Share Posted August 26, 2011 (edited) Gerekli bişey ama kardeş bazı servisleri durdurunca Tekrardan açıla biliyor ÖR:Kurtarma bölümünde; hizmet hata görürse Hizmedi tekrardan başlat bunu engeleye bilirmiyiz? Demek istediğim bu [img]http://a1108.hizliresim.com/11/8/26/4478.jpg[/img] Edited August 26, 2011 by siirt56 Link to comment Share on other sites More sharing options...
kinghard1 Posted July 1, 2014 Share Posted July 1, 2014 paylasim icin tesekkurler. Link to comment Share on other sites More sharing options...
ekran Posted July 1, 2014 Share Posted July 1, 2014 (edited) sc komutu ile mmc konsolda yapacagın tüm service işlemlerini yapabilirsin.! Net startın gelişmiş halidir. USAGE: sc <server> [command] [service name] <option1> <option2>... The option <server> has the form "\\ServerName" Further help on commands can be obtained by typing: "sc [command]" Commands: query-----------Queries the status for a service, or enumerates the status for types of services. queryex---------Queries the extended status for a service, or enumerates the status for types of services. start-----------Starts a service. pause-----------Sends a PAUSE control request to a service. interrogate-----Sends an INTERROGATE control request to a service. continue--------Sends a CONTINUE control request to a service. stop------------Sends a STOP request to a service. config----------Changes the configuration of a service (persistent). description-----Changes the description of a service. failure---------Changes the actions taken by a service upon failure. failureflag-----Changes the failure actions flag of a service. sidtype---------Changes the service SID type of a service. privs-----------Changes the required privileges of a service. managedaccount--Changes the service to mark the service account password as managed by LSA. qc--------------Queries the configuration information for a service. qdescription----Queries the description for a service. qfailure--------Queries the actions taken by a service upon failure. qfailureflag----Queries the failure actions flag of a service. qsidtype--------Queries the service SID type of a service. qprivs----------Queries the required privileges of a service. qtriggerinfo----Queries the trigger parameters of a service. qpreferrednode--Queries the preferred NUMA node of a service. qrunlevel-------Queries the run level of a service. qmanagedaccount-Queries whether a services uses an account with a password managed by LSA. delete----------Deletes a service (from the registry). create----------Creates a service. (adds it to the registry). control---------Sends a control to a service. sdshow----------Displays a service's security descriptor. sdset-----------Sets a service's security descriptor. showsid---------Displays the service SID string corresponding to an ar bitrary name. triggerinfo-----Configures the trigger parameters of a service. preferrednode---Sets the preferred NUMA node of a service. runlevel--------Sets the run level of a service. GetDisplayName--Gets the DisplayName for a service. GetKeyName------Gets the ServiceKeyName for a service. EnumDepend------Enumerates Service Dependencies. The following commands don't require a service name: sc <server> <command> <option> boot------------(ok | bad) Indicates whether the last boot should be saved as the last-known-good boot configuration Lock------------Locks the Service Database QueryLock-------Queries the LockStatus for the SCManager Database EXAMPLE: sc start MyService Edited July 1, 2014 by ekran Link to comment Share on other sites More sharing options...
Recommended Posts