Skip to content

ConvertFrom SqlDscServerPermission

dscbot edited this page Mar 3, 2024 · 2 revisions

ConvertFrom-SqlDscServerPermission

SYNOPSIS

Converts a ServerPermission object into an object of the type Microsoft.SqlServer.Management.Smo.ServerPermissionSet.

SYNTAX

ConvertFrom-SqlDscServerPermission [-Permission] <ServerPermission> 
 [<CommonParameters>]

DESCRIPTION

Converts a ServerPermission object into an object of the type Microsoft.SqlServer.Management.Smo.ServerPermissionSet.

EXAMPLES

EXAMPLE 1

[ServerPermission] @{
    State = 'Grant'
    Permission = 'Connect'
} | ConvertFrom-SqlDscServerPermission

Returns an object of [Microsoft.SqlServer.Management.Smo.ServerPermissionSet] with all the permissions set to $true that was part of the [ServerPermission].

PARAMETERS

-Permission

Specifies a ServerPermission object.

Type: ServerPermission
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
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

[Microsoft.SqlServer.Management.Smo.ServerPermissionSet]

NOTES

RELATED LINKS

Home

Commands

Resources

Usage

Clone this wiki locally