Tag: PSTip (Page 53/54)

#PSTip A hidden gem of the Test-Connection cmdlet

PowerShell equivalent of the ping.exe utility is the Test-Connection cmdlet. One of the hidden and less known capabilities of Test-Connection…

Read More

#PSTip Getting WMI associated classes in PowerShell 3.0

In Windows PowerShell 2.0, retrieving WMI associations and references required complex WMI queries. For example, if you wanted to get…

Read More

#PSTip How to convert .NET Framework objects into HTML

The ConvertTo-Html cmdlet converts Microsoft .NET Framework objects into HTML that can be displayed in a Web browser. In the…

Read More

#PSTip Getting system modules only

When we use the Get-Module -ListAvailable command to list installed modules, we get a list of modules from two default…

Read More

#PSTip How to create a share in Windows Server 2012

Quite easy, with a one-liner. Windows Server 2012 provides Windows PowerShell cmdlets and WMI objects to manage SMB file servers…

Read More

#PSTip Selecting/copying the current line in PowerShell ISE

Very often, I end up selecting and copying the current line from ISE script editor to a console prompt or into a document or email I am working on. If you have looked at ISE menu or keyboard shortcuts closely, there is no keyboard shortcut or ISE menu item to select current line.

Read More