Can't I get permissions using net use in the exec () of PHP? What to do with it

Source: Internet
Author: User
Can't I get permissions using net use in the exec () of PHP?
EXEC (' net use \\\\192.168.2.102\\ipc$ ' 1 "/user:" Administrator ");

I can't even write this.

EXEC (' net use \\\\192.168.2.102\\ipc$ ');
This allows you to create a ipc$ but without administrator privileges




I just want to use the cmd command to get the remote machine administrator permissions and then go to start a service, the above content in the cmd window to execute no problem
How do you write this net use in your code?

------Solution--------------------
Yes, and I can't get permission.
But you can work it out.
Web-style Balancing program writes commands that need to be executed to the transition file
A PHP program that runs as a command line acts as a waiting process, checking to see if there are any commands to execute in the transition file
If any, execute
  • 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.