Come and Check our BETA Alpha version of Powershellcenter.net
Send me your comment to Powershell@powershellcenter.com

Synopsis

Updates the settings of a geographic location instance.

Syntax

Update-SCOMLocation [-Location] <EnterpriseManagementObject> [-ComputerName <String[]>] [-Credential <PSCredential>] [-DisplayName <String>] [-Latitude <String>] [-Longitude <String>] [-PassThru [<SwitchParameter>]] [-SCSession <Connection[]>] [<CommonParameters>]

Detailed Description

The Update-SCOMLocation cmdlet updates the settings of a geographic location instance.

Parameters

-ComputerName [<String[]>]

Specifies a computer to establish a connection with. The computer must be running the System Center Data Access service. The default is the computer for the current management group connection.

Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name. To specify the local computer, type the computer name, "localhost", or a dot (.).

Required?   false
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-Credential [<PSCredential>]

Specifies a user account under which the management group connection will run. It must have access to the server that is specified in the ComputerName parameter if specified. The default is the current user.

Enter a PSCredential object, such as one that is returned by the Get-Credential cmdlet.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-DisplayName [<String>]

Specifies the display name of the location.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-Latitude [<String>]

Specifies the latitude for a location in decimal degrees.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-Location [<EnterpriseManagementObject>]

Specifies the location instance to update. To get a location instance, use the Get-SCOMLocation cmdlet.

Required?   true
Position?   1
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-Longitude [<String>]

Specifies the longitude for a location in decimal degrees.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

-PassThru [<SwitchParameter>]

Indicates that the updated location instance is returned to the pipeline.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   false
Accept wildcard characters?   false

-SCSession [<Connection[]>]

Specifies a connection to a management server. The default is the current management group connection.

Enter a Management group connection object, such as one returned by the Get-SCManagementGroupConnection cmdlet.

Required?   false
Position?   named
Default value?  
Accept pipeline input?   true (ByValue)
Accept wildcard characters?   false

Input Type

Return Type

Notes

Examples

EXAMPLE 1

PS> PS C:\>Get-SCOMLocation -DisplayName "Los Angeles, CA" | Update-SCOMLocation -Latitude 33.942809 -Longitude -118.4047064

This command updates the latitude and longitude of the Los Angeles, CA location instance.