Shirker's blog about IT stuff

Wednesday, June 3, 2015

shutdown a windows PC with PHP

$runcmd="net rpc SHUTDOWN -C \"This system was left on a fter hours and is being shutdown\" -f -I \"".$ip."\" -U ".$ldap_id."%".$ldap_pas s." 2>&1 /dev/null"; 
Posted by shirker at 10:55 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2018 (1)
    • ►  April (1)
  • ►  2017 (1)
    • ►  August (1)
  • ►  2016 (3)
    • ►  September (1)
    • ►  January (2)
  • ▼  2015 (11)
    • ►  August (3)
    • ▼  June (6)
      • Linux: troubleshoot connection with traceroute and...
      • nmap: scanning for conficker
      • How to match newlines in sed
      • tcpdump tutorial from danielmiessler.com
      • shutdown a windows PC with PHP
      • Cisco 2691 ADSL configuration
    • ►  April (1)
    • ►  January (1)
  • ►  2014 (19)
    • ►  September (1)
    • ►  August (6)
    • ►  July (2)
    • ►  May (2)
    • ►  April (2)
    • ►  January (6)
  • ►  2013 (27)
    • ►  December (1)
    • ►  November (1)
    • ►  October (8)
    • ►  September (17)
Simple theme. Powered by Blogger.