# Using XboxWDPDriver.exe for testing or production management
XboxWDPDriver.exe, from the TestAppXbox project, is used to target WDP on Xbox One to assist in automated testing as well as being useful for production development scenarios.
The app has built in help for most of its operations which can be accessed with with the /? flag.
Scripts or other executables could be written to interface with XboxWDPDriver.exe to make simpler command line calls, and can mimic things like the Xb*.exe command line tools that may be familiar to some Xbox developers. An example of such a script is provided in the Tools directory when building the TestAppXbox project (XbUser.cmd).
| /ip | The system IP address for the Xbox One console (required if no default console is set). |
| /User | WDP username (if required, will be stored after the first connection starting with Windows 8). |
| /Pwd | WDP password (if required, will be stored after the first connection starting with Windows 8). |
| /Op | The operation to run. Run XboxWDPDriver without this parameter to get a list of all available operations. |
Supported operations are the following:
connect
info
xbluser
install
reboot
processes
systemPerf
config
file
### The connect operation
The ip parameter is required if no default console is configured. You can set a default console or list the current default console by using the 'connect' operation.
```shell
XboxWDPDriver.exe /ip:10.0.0.1 /op:connect
```
or
```shell
XboxWDPDriver.exe /op:connect
### The info operation
Lists some basic information about the operating system and device name of this Xbox One console.
```shell
XboxWDPDriver.exe /op:info
```
### The xbluser operation
Controls listing and managing users on the console.
Usage:
/subop:list
Lists all Xbox Live Users on the console
/subop:signin \<user identifier (/msa:\<msa\> or /id:\<id\>)> [/msapwd:\<password\>]
Signs in the given user, adding them to the console if necessary
/subop:signout \<user identifier (/msa:\<msa\> or /id:\<id\>)>
Signs the given user out of the console
/subop:addsponsored
Adds a sponsored user to the console
/subop:autosignin \<user identifier (/msa:\<msa\> or /id:\<id\>)\> \<state (/on or /off)\>
Turns autosignin on or off for a given user
/subop:delete \<user identifier (/msa:\<msa\> or /id:\<id\>)\>
Allows file operations on some known folders on the console (application specific storage via LocalAppData and development files via DevelopmentFiles).
LocalAppData operations require the package full name be provided.
Usage:
/subop:knownfolders
Lists all available known folder ids on the console
Lists the directory contents at the given knownfoldid and optionally subpath.
/subop:download /knownfolderid:\<knownfolderid\> /filename:\<name of the file to download\> /destination:\<filepath for storing the file\> [/subpath:\<subpath\>] [/packagefullname:\<packageFullName\>]
Downloads the requested file to the desired destination.
/subop:upload /knownfolderid:\<knownfolderid\> /filepath:\<filepath of the file to upload\> [/subpath:\<subpath\>] [/packagefullname:\<packageFullName\>]
Uploads a file to the requested folder.
/subop:rename /knownfolderid:\<knownfolderid\> /filename:\<name of the file to rename\> /newfilename:\<new filename\> [/subpath:\<subpath\>] [/packagefullname:\<packageFullName\>]
Renames a given file.
/subop:delete /knownfolderid:\<knownfolderid\> /filename:\<name of the file to delete\> [/subpath:\<subpath\>] [/packagefullname:\<packageFullName\>]