< Back

Set-AdbResource

Fri Jan 10, 2020 7:20 pm

NAME Set-AdbResource



SYNOPSIS

Update an existing adb resource.





SYNTAX

Set-AdbResource [[-Session] <Object>] [-Resource] <Object[]> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

This command will put the specified adb resource and update it if it

already exists.





PARAMETERS

-Session <Object>

The adb session.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Resource <Object[]>

The resource object.



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Adb document.





OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$item = Get-AdbItem -Name 'myitem'



PS C:\\> $item.properties.hostname = 'newhostname'

PS C:\\> $item | Set-AdbResource

Get an item, update it's hostname and put it back to the adb.











RELATED LINKS