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.

internet proerty

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:

http://social.technet.microsoft.com/forums/windowsserver/en-us/526dc18f-be15-46b7-98a4-7d7878068f28/how-to-enable-file-and-printer-sharing-for-microsoft-networks-checkbox-with-powershell-script

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/

regards,

yan li


cataleya li
technet community support




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...