Send-WebDAV Cmdlet

Parameters   Output Objects   Configuration Settings  

The Send-WebDAV cmdlet implements an easy-to-use interface to the Web Distributed Authoring and Versioning protocol (WebDAV).

Syntax

Send-WebDAV [parameters]

Remarks

The cmdlet allows the adding new resources and posting data to existing resources.

Depth is used to determine how the properties are retrieved. A depth of "0" will return only the properties associated with ResourceURI. A depth of "1" will return those properties, plus those of the member URIs. A depth of "infinity" (default) will return all properties of all the resources in the hierarchy.

The cmdlets support pipeline input for some of their parameters. Prebuilding an object and piping it to the cmdlet is very useful, but should be used with caution to prevent security conflicts. Steps have been taken to decrease the risk of a possibly accidental pipe to the cmdlet, for instance, the Credential parameter cannot be piped to the cmdlet and must be specified manually.


# create a new resource at http://localhost/temp/test.html
send-webdav -uri http://localhost/temp/ -localfile C:\test.html -method put
# create a new resource at http://localhost/test1.html
send-webdav -uri http://localhost/test1.html -localfile C:\test.html -method put
# post data to an existing resource 
send-webdav -uri http://localhost/temp -data $data -method post

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
AuthenticationModeThe authentication mode to use when presenting login credentials to the server.
CertPasswordThe password to the certificate store.
CertStoreThe name of the certificate store for the client certificate.
CertStoreTypeThe type of certificate store for the client certificate.
CertSubjectThe subject of the certificate used for client authentication.
ConfigSpecifies one or more configuration settings.
CredentialThe PSCredential object to use for user/password authentication.
DataThe data to be sent to the server.
FirewallHostName or IP address of firewall.
FirewallPasswordA password if authentication is to be used when connecting through the firewall.
FirewallPortThe port of the firewall to which to connect.
FirewallTypeDetermines the type of firewall to connect through.
FirewallUserA user name if authentication is to be used connecting through a firewall.
ForceForces the cmdlet to accept the default behavior instead of querying the user.
LocalFileThe local file specifying the data to sent to the resource.
LocalIPThe IP address of the local interface to use.
LogFileThe location of a file to which debug information is written.
MethodSpecifies the HTTP operation to perform.
PasswordThe password to use for authentication.
ProxyAutoDetectSpecifies if proxy information is automatically detected.
ProxyPasswordThe password to authenticate with.
ProxyPortThe TCP port of the Proxy .
ProxyServerName or IP address of a proxy server (optional).
ProxyUserThe User value to authenticate with.
SSLAcceptThe encoded public key of the certificate which is to be trusted explicitly.
TimeoutThe maximum time allowed for the operation.
URIThe URI where to perform the DAV operation.
UserThe username to use for authentication.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

DAVFileThis object is created after a file has finished transferring.

Configuration Settings


The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.

UseInternalSecurityAPITells the cmdlet whether or not to use the system security libraries or an internal implementation.

 
 
Copyright (c) 2021 /n software inc. - All rights reserved.
NetCmdlets 2020 - Version 20.0 [Build 7877]