# Installation via installer (Windows Server)

> Source: https://ferron.sh/docs/v2/installation/installer-windows

Ferron can be installed on Windows Server using an installer script. This guide will walk you through the installation process.

## Installation steps

### 1. Run the installer

To install Ferron web server, run the following command:

```batch
powershell -c "irm https://get.ferron.sh/v2-win | iex"
```

You will be prompted to choose the installation type.

### 2. Access the web server

By default, Ferron serves content from the `%SystemDrive%\ferron\wwwroot` directory. Open a web browser and navigate to `http://localhost` to check if the server is running and serving the default `index.html` file.

If you see a "Ferron is installed successfully!" message on the page, the web server is installed successfully and is up and running.

## File structure

Ferron installed via the installer for Windows Server has following file structure:

- _%SystemDrive%\ferron\ferron.exe_ - Ferron web server
- _%SystemDrive%\ferron\ferron-passwd.exe_ - Ferron user password generation tool
- _%SystemDrive%\ferron\ferron-precompress.exe_ - Ferron static files precompression tool
- _%SystemDrive%\ferron\ferron-yaml2kdl.exe_ - Ferron configuration conversion tool
- _%SystemDrive%\ferron\log\access.log_ - Ferron access log in Combined Log Format
- _%SystemDrive%\ferron\log\error.log_ - Ferron error log
- _%SystemDrive%\ferron\wwwroot_ - Ferron's web root
- _%SystemDrive%\ferron\ferron.kdl_ - Ferron configuration

## Managing the Ferron service

### Stopping the service

To stop the Ferron service, run:

```batch
net stop ferron
```

### Restarting the service

To restart the service:

```batch
net stop ferron
net start ferron
```