Skip to content

Instantly share code, notes, and snippets.

@BartVandyck
Last active February 19, 2016 10:04
Show Gist options
  • Save BartVandyck/799620e3f3a55974f5d3 to your computer and use it in GitHub Desktop.
Save BartVandyck/799620e3f3a55974f5d3 to your computer and use it in GitHub Desktop.
<#

.SYNOPSIS

 Short description of the function or script.

.DESCRIPTION
 Elaborate description of the function or script.

.PARAMETER <ParameterName>

 Description of the Parameter

.PARAMETER <ParameterName>
 Description of the Parameter 

.EXAMPLE

 Read computer names from Active Directory and retrieve their inventory information.

 Get-ADComputer –filter * | Select{Name="computerName";Expression={$_.Name}} | Get-Inventory.

.EXAMPLE 
Read computer names from a file (one name per line) and retrieve their inventory information

Get-Content c:\names.txt | Get-Inventory.

.NOTES
 You need to run this function as a member of the Domain Admins group; doing so is the only way to ensure you have permission to query WMI from the remote computers.

 Name          : <Name Function or Script>
 Author        : Bart Vandyck
            
 Last Modified : <Date>
 Version       : 2.0.9 (Stockholm)
 

.Link
http://www.capri-technology.be

#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment