Integrating a Shared Storage on a Server (IIS/Windows Server 2019/2022)

This article explains how to configure an IIS website that has content stored on shared storage. In this example, a new website and a new user will be created for this purpose.

  • You have installed Windows Server 2019 or Server 2022 as your operating system on your server.

  • You have logged in as administrator.

  • You have set the access permissions for the desired server in the Cloud Panel in the detailed view of the shared storage and have taken note of the login details for the shared storage.

Creating a User:

  • Open the Server Manager.

  • Click Tools > Computer Management.

  • In the navigation bar on the left, click Local Users and Groups > Users.

  • Click Action > New User in the menu bar. The New User window opens.

  • In the User Name field, enter your desired user name.

  • Enter a secure password in the Password field and repeat it.

  • Uncheck the User must change password option the next time you log on box.

  • Select the User cannot change password option.

  • Activate the option Password never expires.

  • Click Create. The user is created.

  • Click Close.

Adding Shared Storage Credentials to the User Account and Administrator Account

  • Open the command prompt.

  • To allow the user to access the shared storage, enter the credentials in the following format:
    runas /user:LOCAL_USER "cmdkey /add:vid12345.pre1.lan /user:pre1\uid12345 /pass:**********
    For example: runas /user:usrsite1 "cmdkey /add:vid12345.pre1.lan /user:pre1\uid12345 /pass:**********

  • To allow the administrator to access the shared storage, enter the credentials in the following format:
    cmdkey /add:vid12345.pre1.lan /user:pre1\uid12345 /pass:**********

Creating a Website in the Internet Information Services (IIS) Manager

  • Open the Internet Information Services (IIS) Manager.

  • Right-click the Sites node in the Connections area of the left navigation bar.

  • Click Add website.

  • Enter the desired site name in the Site name field.

  • Optional: Click Select.

  • Optional: In the Application Pool list, select the application pool.
    Please note: The name of the website and the name of the selected application pool must be identical!

  • In the Physical Path field, enter the CIFS path of the shared storage in the following format:

  • In the IP Address list, select the IP address of your server.

  • Click OK. The website is set up and can be reached at the IP address of the server. Shared storage is now used as webspace.

Allow Access to the Website's Table of Contents

To allow access to the site's table of contents, you must configure anonymous authentication.

  • In the navigation bar on the left, under Connections > Sites, click the newly created website.

  • Double-click Authentication.

  • Right-click Anonymous Authentication.

  • Click Edit.

  • Activate the Identity of application pool option.

  • Click OK. The configured user is used as the application pool identity.

Configuring the Application Pool

When a new website is created, a new application pool of the same name is created. To configure the new application pool:

  • Go to the Application Pool node in the Connections area of the left navigation bar.

  • Right-click the new application pool and click Advanced Settings. The Advanced Settings window opens.

  • Click the icon next to Identity. The Application Pool Identitywindow opens.

  • Enable the Custom Account option.

  • Click Set.

  • Enter the username of the account you created.

  • Enter the desired password and repeat it.

  • Click OK.

  • In the Advanced Settings window, click the cell next to Load User Profile.

  • Select True from the list.

  • Click OK. The application pool is configured.