--- external help file: SnipeItPS-help.xml Module Name: SnipeitPS online version: schema: 2.0.0 --- # Set-SnipeItAsset ## SYNOPSIS Update a specific Asset in the Snipe-it asset system ## SYNTAX ``` Set-SnipeItAsset [-id] [[-Name] ] [[-Status_id] ] [[-Model_id] ] [[-last_checkout] ] [[-assigned_to] ] [[-company_id] ] [[-serial] ] [[-order_number] ] [[-warranty_months] ] [[-purchase_cost] ] [[-purchase_date] ] [[-requestable] ] [[-archived] ] [[-rtd_location_id] ] [-url] [-apiKey] [[-customfields] ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION Long description ## EXAMPLES ### EXAMPLE 1 ``` Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" ``` ### EXAMPLE 2 ``` Set-SnipeItAsset -id 1 -status_id 1 -model_id 1 -name "Machine1" -CustomValues = @{ "_snipeit_os_5 = "Windows 10 Pro" } ``` ## PARAMETERS ### -apiKey Users API Key for Snipeit, can be set using Set-SnipeItInfoeItInfo command ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 17 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -archived Whether or not the asset is archived. Archived assets cannot be checked out and do not show up in the deployable asset screens ```yaml Type: Boolean Parameter Sets: (All) Aliases: Required: False Position: 14 Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -assigned_to The id of the user the asset is currently checked out to ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 6 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -company_id The id of an associated company id ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 7 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -customfields Hastable of custom fields and extra fields that need passing through to Snipeit ```yaml Type: Hashtable Parameter Sets: (All) Aliases: Required: False Position: 18 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -id ID of the Asset ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: True Position: 1 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -last_checkout Date the asset was last checked out ```yaml Type: DateTime Parameter Sets: (All) Aliases: Required: False Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Model_id Model ID of the asset, this can be got using Get-Model ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Name Asset name ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -order_number Order number for the asset ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 9 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -purchase_cost Purchase cost of the asset, without a currency symbol ```yaml Type: Double Parameter Sets: (All) Aliases: Required: False Position: 11 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -purchase_date Date of asset purchase ```yaml Type: DateTime Parameter Sets: (All) Aliases: Required: False Position: 12 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -requestable Whether or not the asset can be requested by users with the permission to request assets ```yaml Type: Boolean Parameter Sets: (All) Aliases: Required: False Position: 13 Default value: False Accept pipeline input: False Accept wildcard characters: False ``` ### -rtd_location_id The id that corresponds to the location where the asset is usually located when not checked out ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 15 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -serial Serial number of the asset ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 8 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -Status_id Status ID of the asset, this can be got using Get-Status ```yaml Type: String Parameter Sets: (All) Aliases: Required: False Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -url URL of Snipeit system, can be set using Set-SnipeItInfoeItInfo command ```yaml Type: String Parameter Sets: (All) Aliases: Required: True Position: 16 Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -warranty_months Number of months for the asset warranty ```yaml Type: Int32 Parameter Sets: (All) Aliases: Required: False Position: 10 Default value: 0 Accept pipeline input: False Accept wildcard characters: False ``` ### -Confirm Prompts you for confirmation before running the cmdlet. ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: cf Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### -WhatIf Shows what would happen if the cmdlet runs. The cmdlet is not run. ```yaml Type: SwitchParameter Parameter Sets: (All) Aliases: wi Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False ``` ### CommonParameters This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). ## INPUTS ## OUTPUTS ## NOTES ## RELATED LINKS