# Set up and Install Security Token Service (STS)

1. From TFS source control, bring down the DevSetup and Framework contents under Osprey\Main:
2. Open a Powershell command window; browse to \Osprey\Main\DevSetup and run the Powershell command .\DBInstall.ps1 localhost OspreyApp OspreyAuth -hostname localhost -dev.
   Note: in Windows 8.1, powershell execution poliy is defaulted to Restricted (you can view your current execution policy using cmd get-executonpolicy). To run scripts: change your PS execution policy to unrestricted using cmd Set-Executionpolicy –Executionpolicy unrestricted. It is recommended to revert it back to Restricted after running the script. (See about_Execution_Policies for more information.
   The required databases OspreyApp and OspreyAuth are now created with IdentityServerConfiguration.
3. Locate the latest version of OspreyInstaller_DevLocalhost.msi in one of the subfolders under \\nastnmn0204\SoftCM_Common\Osprey\Main-Builds\{MostRecent}\Installs\Dev 2. Run the installer, accepting default values.