I am using PsExec to access cmd on a Windows 7 computer on my network, and I want to turn on File and Printer Sharing
, followed by the Windows firewall without having to get up and walk all the way to the computer.
What commands do I need to use to do this?
Thanks
This command should take care of the File and Printer Sharing:
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
For the firewall:
netsh advfirewall set currentprofile state on
I've tried them just now, and its seems to work for me.
For any additional information see Microsofts KB article: http://support.microsoft.com/kb/947709
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다