Update-SCOMLocation
Updated: September 10, 2012
Applies To: System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager
Update-SCOMLocation
Syntax
Parameter Set: FromLocation Update-SCOMLocation [-Location] <EnterpriseManagementObject> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-DisplayName <String> ] [-Latitude <String> ] [-Longitude <String> ] [-PassThru] [-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 (.).
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
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.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-DisplayName<String>
Specifies the display name of the location.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-Latitude<String>
Specifies the latitude for a location in decimal degrees.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
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.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-Longitude<String>
Specifies the longitude for a location in decimal degrees.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-PassThru
Indicates that the updated location instance is returned to the pipeline.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
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.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Examples
-------------------------- EXAMPLE 1 --------------------------
This command updates the latitude and longitude of the Los Angeles, CA location instance.
PS C:\>Get-SCOMLocation -DisplayName "Los Angeles, CA" | Update-SCOMLocation -Latitude 33.942809 -Longitude -118.4047064
