Use batch processing to enable or disable some VMware services

Source: Internet
Author: User

 

If you use VMWare, you can try it out.CodeNeed to change, please change it by yourself

 

@ Echo off & title enable or disable VMware services

Echo enables or disables VMware services

Echo/

Echo 1. Input o to enable VMware services

Echo/

Echo 2. Input C to disable VMware services

Echo.

Set/P Var = enter:

If/I '% var %' = 'l' (goto start) else goto stop

 

: Start

 

Echo.

Net start "VMware agent service"

Net start "vmnetdhcp"

Net start "VMware NAT service"

Net start "vmusbarbservice"

Goto end

 

: Stop

 

Echo.

Net stop "VMware agent service"

Net stop "vmnetdhcp"

Net stop "VMware NAT service"

Net stop "vmusbarbservice"

Goto end

 

: End

 

Echo/

Echo finished. Press any key to exit ......

Pause> NUL

 

 

Correct the error if any.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.