< Back
New-AdbResource
Post
NAME New-AdbResource
SYNOPSIS
Create a new adb resource.
SYNTAX
New-AdbResource [[-Session] <Object>] [-Resource] <Object[]> [[-Type] <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
This command will create a new adb resource.
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
-Type <String>
The resource type to query.
Required? false
Position? 3
Default value
Accept pipeline input? false
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 resource.
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$item = Get-AdbItem -Name 'myitem'
PS C:\\> $item.name = 'myitem2'
PS C:\\> $item | New-AdbResource
Get an item, update it's name and post it back to the adb as a new item.
RELATED LINKS
SYNOPSIS
Create a new adb resource.
SYNTAX
New-AdbResource [[-Session] <Object>] [-Resource] <Object[]> [[-Type] <String>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
This command will create a new adb resource.
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
-Type <String>
The resource type to query.
Required? false
Position? 3
Default value
Accept pipeline input? false
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 resource.
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>$item = Get-AdbItem -Name 'myitem'
PS C:\\> $item.name = 'myitem2'
PS C:\\> $item | New-AdbResource
Get an item, update it's name and post it back to the adb as a new item.
RELATED LINKS