Author | external help file | Module Guid | Module Name | online version | schema |
---|---|---|---|---|---|
Paul Boyer |
psvault-ActiveDirectory-help.xml |
66f0b290-a051-4b8e-be84-b0a280c74a50 |
psvault-ActiveDirectory |
2.0.0 |
Cmdlet to quickly return information about a AD-joined computer
Get-ComputerData [-ComputerName] <String> [[-Path] <ParameterAttribute>] [<CommonParameters>]
Script returns:
- Operating System
- Operating System Version
- Hardware Vendor
- Hardware Model
- Serial Number
- Last logged on user
- Last logon date & time
This is returned to standard out. Optionally, the information can be exported to a CSV by supplying a value to -Path.
Get-ComputerData -ComputerName Computer001
Get-ComputerDate -ComputerName Computer001 -Path C:\Temp
Get-ComputerData -ComputerName Comp
Required. The name of the computer for which the script should query for information. The script does a wildcard lookup so partial names for the parameter are acceptable.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Path to save an output file. The script will automatically supply a file name with a *.CSV extension. Includes datestamp in file name.
Type: ParameterAttribute
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This script pulls custom attributes from AD DS. The Model, Hardware Vendor, Last Logged On User, and Last Logged On User Date & Time are custom attributes from the AD DS environment the script was composed in. YMMV when using this script in other environments without these fields.