In a previous tip you learned that WMI network adapter information is separated into two classes. Win32_NetworkAdapter represents the hardware, and Win32_NetworkAdapterConfiguration contains the configuration details. To mix information from both classes...

To view the configuration details of a network adapter, you can specify the network adapter connection ID as it appears in your control panel. By linking the WMI result to the corresponding Win32_NetworkAdapterConfiguration class, you get to the actual...

In a previous tip you learned how to use a shortcut to quickly open the dialog with your network adapters. Today, you get a piece of code to access these network adapters programmatically and list the available NetConnectionIDs: Get-WmiObject Win32_NetworkAdapter...

To quickly access the settings for your network cards, use this line from within PowerShell: explorer.exe ' ::{7007ACC7-3202-11D1-AAD2-00805FC1270E} ' You can also create a new link on your desktop and use this shortcut as target path. ReTweet...

PowerShell supports regular expressions in a lot of areas which is why the following code fails: ' c:\test\subfolder\file' -split '\ ' Split expects a regular expression and fails when you use special characters like "\". To...

In a previous tip we introduced the command openfiles which lists and disconnects files that were opened remotely on your machine. Openfiles can also track open files on your local machine. You pay for it with a lower overall system performance because...

If you'd like to see which files are opened by network users on your machine, there is an internal command for it. All you need are local admin privileges, so you may want to launch PowerShell with full privileges first. And then, enter this: PS >...

Some users use Trim() to remove file extensions like this: ' c:\test\file.txt'.Trim('.txt ' ) c:\test\file This seems to work great, but in reality, Trim() removes all the characters you submitted from the beginning and end of the text...

PowerShell enhances many .NET types and adds additional information. These changes are defined in xml files. To list all .NET types that get enhanced by default, use this: Select-XML $env:windir\System32\WindowsPowerShell\v1.0\types.ps1xml -Xpath / Types...

There are two great ways to analyze the results a cmdlet returns: you can send the results to Get-Member to get a formal analysis, telling you the properties, methods and data types, and you can send them to Select-Object to view the actual property content...