Set-OBMachineSetting

Sets a OBMachineSetting object for the server.

Syntax

Set-OBMachineSetting
   [-EncryptionPassphrase] <SecureString>
   [-Confirm]
   [-WhatIf]
Set-OBMachineSetting
   [-WorkDay] <DayOfWeek[] {Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}>
   [-StartWorkHour] <TimeSpan>
   [-EndWorkHour] <TimeSpan>
   [-WorkHourBandwidth] <UInt32>
   [-NonWorkHourBandwidth] <UInt32>
   [-Confirm]
   [-WhatIf]
Set-OBMachineSetting
   [-NoProxy]
   [-Confirm]
   [-WhatIf]
Set-OBMachineSetting
   [-NoThrottle]
   [-Confirm]
   [-WhatIf]
Set-OBMachineSetting
   [-ProxyServer] <String>
   [-ProxyPort] <Int32>
   [[-ProxyUsername] <String>]
   [[-ProxyPassword] <SecureString>]
   [-Confirm]
   [-WhatIf]

Description

The Set-OBMachineSetting cmdlet sets a OBMachineSetting object for the server that includes proxy server settings for accessing the internet, network bandwidth throttling settings, and the encryption passphrase that is required to decrypt the files during recovery to another server.

This cmdlet supports WhatIf and Confirm parameters with a medium impact. The medium impact signifies that the cmdlet will not prompt the user for confirmation by default. The WhatIf parameter gives a verbose description of what the cmdlet does without performing any operation. The Confirm parameter specifies whether the cmdlet should prompt the user. Using -Confirm:$FALSE will override the prompt.

ps_mob_user_group_remark

Examples

EXAMPLE 1

PS C:\>ConvertTo-SecureString -String Notag00pa55word -AsPlainText -Force | Set-OBMachineSetting

This example sets encryption passphrase for a computer.

EXAMPLE 2

PS C:\>$spwd = ConvertTo-SecureString -String Notag00pa55word -AsplainText -Force



PS C:\>Set-OBMachineSetting -ProxyServer http://proxycontoso.com -ProxyPort <your proxy port> -ProxyUsername contoso\johnj99 -ProxyPassword $spwd

This example sets proxy settings for a server.

EXAMPLE 3

PS C:\>$mon = [System.DayOfWeek]::Monday



PS C:\>$tue = [System.DayOfWeek]::Tuesday



PS C:\>Set-OBMachineSetting -WorkDay $mon, $tue -StartWorkHour "9:00:00" -EndWorkHour "18:00:00" -WorkHourBandwidth (512*1024) -NonWorkHourBandwidth (2048*1024)

This example sets throttling settings.

EXAMPLE 4

PS C:\>Set-OBMachineSetting -NoThrottle

This example specifies that network bandwidth throttling will not be used by this server.

EXAMPLE 5

PS C:\>Set-OBMachineSetting -NoProxy

This example specifies that this server does not use a unique proxy server configuration.

Required Parameters

-EncryptionPassphrase

Sets the encryption passphrase to be used to encrypt the backed up data.

Type:SecureString
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-EndWorkHour

Specifies the hour that ends the work hours range.

Type:TimeSpan
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NoProxy

Specifies that unique proxy server settings are not to be used for online backups.

Type:SwitchParameter
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NoThrottle

Specifies that network throttling is not used with online backups. Data transfers of backed up items from the local server to the mob_name_1 server will use bandwidth as needed.

Type:SwitchParameter
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NonWorkHourBandwidth

Specifies the bandwidth throttling setting to be used to limit the network bandwidth consumed by data transfers during non-work hours.

Type:UInt32
Position:6
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ProxyPort

Specifies the port number to be used on the proxy server.

Type:Int32
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ProxyServer

Specifies the proxy server to be used when connecting to the mob_name_1 server.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-StartWorkHour

Specifies the hour that starts the range of work hours.

Type:TimeSpan
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WorkDay

Specifies the array of work days using the using [DayOfWeek] system variables.

Type:DayOfWeek[] {Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday}
Position:2
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WorkHourBandwidth

Specifies the bandwidth throttling setting to be used to limit the network bandwidth consumed by data transfers during work hours.

Type:UInt32
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-ProxyPassword

Specifies authentication password to be used for proxy setting.

Type:SecureString
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ProxyUsername

Specifies the username to be used for proxy server authenication.

Type:String
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Internal.CloudBackup.Commands.OBMachineSetting

Outputs

Microsoft.Internal.CloudBackup.Commands.OBMachineSetting