Get-Item - Powershell 1.0 CmdLet
ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »
Get-Item
Description Get a file/registry object (or any other namespace object) Usage Options Example(s) Get the current directory. This represents the item at the current location (not its contents). PS C:\>get-item . Get the root directory of the C: drive. This represents only the directory, not its contents: PS C:\>get-item C:\ Get all items in the current directory. : PS C:\>get-item * Get all items in the C: drive: PS C:\>get-item C:\* List all properties of C:\Windows: PS C:\>(Get-Item C:\Windows) | Get-Member" Get the LastAccessTime property of C:\Windows: PS C:\>(get-item C:\Windows).LastAccessTime Get a registry key.: PS C:\>get-item hklm:\software\microsoft\exchange Get-Item will get registry keys and subkeys, but you must use Get-ItemProperty to get the registry values and data. In PowerShell, use a single asterisk (*) to get contents, instead of the traditional *.* The format is interpreted literally, so *.* would not retrieve directories or file names without a dot.