How to get network connection properties in Windows power shell script using WMI object
hi all,
i want to check following things through windows power shell on windows 2003 server
check in network connection properties, if "client microsoft networks" , "file , printer sharing microsoft network" checked.
if checked want return value true , if not false,
can please 1 me doing through power shell
i tried wmi classes get-wmiobject win32_networkadapterconfiguration , other none of cmd let returned property want.
any on appreciated
thanks , regards,anil
hi,
based on research, there no direct way windows 2003 powershell 2.0. use snetcfg.exe enable "file , printer sharing microsoft network":
more details:
in addition that, powershell v3 more information when managing network interfaces, use command: get-netadapterbinding
for more details:
http://thewannabesysadm.in/2012/12/10/managing-network-interfaces-with-powershell-v3/
yan li
cataleya li
technet community support
Windows Server > Windows PowerShell
Comments
Post a Comment