Send-XenOemPatchStream
\[Removed\] Uploads an OEM patch stream to a XenServer host.
Syntax
Send-XenOemPatchStream -XenHost <string> -Path <string>
[-ProgressDelegate <HTTP.UpdateProgressDelegate>]
[-CancellingDelegate <HTTP.FuncBool>] [-TimeoutMs <int>] [-Proxy <IWebProxy>]
[-CertificateValidationCallback <RemoteCertificateValidationCallback>]
[-NoWarnNewCertificates] [-NoWarnCertificates] [-TaskRef <string>] [-BestEffort]
[-SessionOpaqueRef <string>] [-WhatIf] [-Confirm] [<CommonParameters>]
Description
REMOVED. The server no longer serves /oem\_patch\_stream.
Streams the given local file to the server as an OEM patch.
Parameters
-BestEffort
If set, the cmdlet continues processing further objects instead of throwing a terminating error when an operation fails for one object.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-CancellingDelegate
A delegate polled during the transfer; returning true cancels it.
| Attribute | Value |
|---|---|
| Type | HTTP.FuncBool |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-CertificateValidationCallback
A callback used to validate the server's TLS certificate.
| Attribute | Value |
|---|---|
| Type | RemoteCertificateValidationCallback |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-Confirm
Prompts for confirmation before running the cmdlet.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
| Aliases | cf |
-NoWarnCertificates
If set, no warning is issued for certificate validation failures.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-NoWarnNewCertificates
If set, no warning is issued when the server presents a certificate that has not been seen before.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-Path
The path of the local file to read from or write to.
| Attribute | Value |
|---|---|
| Type | string |
| Required | True |
| Position | Named |
| Accepts pipeline input | False |
-ProgressDelegate
A delegate called as the upload proceeds, for reporting progress.
| Attribute | Value |
|---|---|
| Type | HTTP.UpdateProgressDelegate |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-Proxy
The web proxy to use for the request.
| Attribute | Value |
|---|---|
| Type | IWebProxy |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-SessionOpaqueRef
The session object on which to run the cmdlet. This overrides the default session and lets you target a specific open XenServer connection.
| Attribute | Value |
|---|---|
| Type | string |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-TaskRef
The opaque reference of a task to track the transfer with.
| Attribute | Value |
|---|---|
| Type | string |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-TimeoutMs
The timeout of the HTTP request, in milliseconds.
| Attribute | Value |
|---|---|
| Type | int |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Attribute | Value |
|---|---|
| Type | SwitchParameter |
| Required | False |
| Position | Named |
| Accepts pipeline input | False |
| Aliases | wi |
-XenHost
The address of the server to transfer data with.
| Attribute | Value |
|---|---|
| Type | string |
| Required | True |
| Position | Named |
| Accepts pipeline input | False |
Inputs
-
None
Outputs
-
void
Examples
Example 1: Upload a patch stream
PS> Send-XenOemPatchStream -XenHost "myserver" -Path "C:\upload.dat"
Streams the local file to the server.
Example 2: See what would happen first
PS> Send-XenOemPatchStream -XenHost "myserver" -Path "C:\upload.dat" -WhatIf
-WhatIf reports the upload without performing it.
Example 3: Set a timeout for the transfer
PS> Send-XenOemPatchStream -XenHost "myserver" -Path "C:\upload.dat" -TimeoutMs 600000
Gives the transfer ten minutes.
Related links
-
Using the XenServer PowerShell module