#PSTip Getting the content of an object
Getting the content of an object is usually done with the Get-Content cmdlet. For example, getting the content of the Windows hosts file:
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 MoreConsider the following PowerShell 2.0 command: Get-Service -Name wuauserv -ComputerName Server1 | Stop-Service What do you think is happening here? You get the Windows Update service from Server1 and stop it, right?
Read MoreI’m kind of guy who loves tiny little tricks. Tricks in PowerShell are almost like Easter eggs in the games of old times, very rewarding when you find them – but in PowerShell besides pure joy of being able to find something cool, you can move it to …
Read MoreThe traditional or PowerShell 2.0 way of retrieving only files is: Get-ChildItem $env:windir | Where-Object { ! $_.PSIsContainer } The new parameter -File of the Get-ChildItem cmdlet simplifies the filtering:
Read MorePowerShell equivalent of the ping.exe utility is the Test-Connection cmdlet. One of the hidden and less known capabilities of Test-Connection is the abitlity to ping a computer using another computer as the source.
Read More