#PSTip Optimizing WMI object retrieval
Whenever we use WMI cmdlets to query either local or remote machines, we need to keep the following points in mind:
Read MoreWhenever we use WMI cmdlets to query either local or remote machines, we need to keep the following points in mind:
Read MoreIn the previous tip we showed you how to modify WMI object properties using Get-WmiObject cmdlet and the Put method. Today I want to show you another streamlined way to do the same using the Set-WmiInstance cmdlet.
Read MoreGet-WmiObject and object modification! Sounds contradictory? Not really. That is the beauty of PowerShell and its object-based nature. Let us see an example to understand this.
Read MoreIn the previous tip, we’ve showed you how to get a function definition using cool and unusual technique. Can we use the Get-Command cmdlet to get the same result?
Read MoreGetting the content of an object is usually done with the Get-Content cmdlet. For example, getting the content of the Windows hosts file:
Read MorePowerShell 3.0 introduced important changes to the Update-TypeData cmdlet which includes specifying the dynamic type data. Using these new features of Update-TypeData cmdlet, we can add extended types without using the types.
Read More