SOURCES:
http://techtasks.com/code/viewbookcode/1199
# This code enables/disables the Netbios over TCP/IP setting.
# ------ SCRIPT CONFIGURATION ------
use Win32::OLE qw(in);
use constant SET_NETBIOS => 1;
# 0 = Use setting from DHCP; 1 = Enable; 2 = Disable
$strComputer = '.';
# ------ END CONFIGURATION ---------
$objWMIService = Win32::OLE->GetObject('winmgmts:\\\\' . $strComputer . '\\root\\cimv2');
$colNicConfigs = $objWMIService->ExecQuery('SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True');
foreach my $objNicConfig (in $colNicConfigs) {
$intNetBIOS = $objNicConfig->SetTCPIPNetBIOS(SET_NETBIOS);
print $objNicConfig->Description . ': successfully set NetBIOS over TCP/IP to ' . SET_NETBIOS, "\n";
}
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!