Get SqlDscManagedComputer - dsccommunity/SqlServerDsc GitHub Wiki

Get-SqlDscManagedComputer

SYNOPSIS

Returns the managed computer object.

SYNTAX

Get-SqlDscManagedComputer [[-ServerName] <String>] [<CommonParameters>]

DESCRIPTION

Returns the managed computer object, by default for the node the command is run on.

EXAMPLES

EXAMPLE 1

Get-SqlDscManagedComputer

Returns the managed computer object for the current node.

EXAMPLE 2

Get-SqlDscManagedComputer -ServerName 'MyServer'

Returns the managed computer object for the server 'MyServer'.

PARAMETERS

-ServerName

Specifies the server name for which to return the managed computer object.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: (Get-ComputerName)
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

[Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer]

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️