Set-DattoRMMSite

SYNOPSIS

Updates the site identified by the given site Uid

SYNTAX

UpdateData (Default)

Set-DattoRMMSite -SiteUID <String> -Data <Object> [-WhatIf] [-Confirm] [<CommonParameters>]

Update

Set-DattoRMMSite -SiteUID <String> [-Name <String>] [-Description <String>] [-Note <String>] [-OnDemand]
 [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Set-DattoRMMSite cmdlet updates the site identified by the given site Uid

EXAMPLES

EXAMPLE 1

Set-DattoRMMSite -SiteID 12345 -Name 'NewSiteName' -Description 'NewDescription'

Updates the site with the defined data

EXAMPLE 2

Set-DattoRMMSite -Data $JsonBody

Updates the site with the structured JSON object

PARAMETERS

-SiteUID

UID of the site

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

Name of the site

Type: String
Parameter Sets: Update
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

Description of the site

Type: String
Parameter Sets: Update
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Note

Note for the site

Type: String
Parameter Sets: Update
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-OnDemand

Is the site OnDemand

By default, if this switch is not specified, the site with be set to managed

Type: SwitchParameter
Parameter Sets: Update
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Data

JSON body

Do NOT include the “Data” property in the JSON object as this is handled by the Invoke-DattoRMMRequest function

Type: Object
Parameter Sets: UpdateData
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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.

INPUTS

OUTPUTS

NOTES

N/A

https://celerium.github.io/Celerium.DattoRMM/site/Site/Set-DattoRMMSite.html

https://zinfandel-api.centrastage.net/api/swagger-ui/index.html