---
title: File Rewriting Configuration Guide
slug: ps/help/en_us/ics/com/frcg
docTags: 
createdAt: 2026-08-03T09:58:43.429Z
---

## File Rewriting

A file resource profile controls access to resources on Windows server shares.

File rewriting is a standard feature on all Connect Secure devices.

When creating a file resource profile, you must use the following formats when defining a resource policy's primary resource as well as its autopolicy resources.

Windows resources:

```bash
\\server[\share[\path]]
```

Within these formats, the three components are:

- **Server** (required) - Possible values:
  - **Hostname** - You may use the system variable \<username> when defining the hostname.
  - **IP address** - The IP address needs to be in the format: a.b.c.d

:::Paragraph{indent="2"}
The leading two back slashes are required for Windows, non-Nfs resources.
:::

- **Share** (required, Windows only) - The system variable \<username> is allowed. Note that when the system tries to connect to a Windows file share, it connects to ports 445 and 139.
- **Path** (optional) - Special characters allowed include:

| \* | Matches any character. Note that you cannot use the \* wildcard character when defining a resource profile's primary resource (that is, the Server/share field for Windows resources). |
| -- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| %  | Matches any character except slash (/)                                                                                                                                                 |
| ?  | Matches exactly one character                                                                                                                                                          |

Valid Windows resources include:

```bash
\\pulsesecure.net\dana
\\10.11.0.10\share\web
\\10.11.254.227\public\test.doc
```

::::LinkArray{itemsPerRow="2" contentSource="CUSTOM"}
:::LinkArrayItem
::Image[[creating\_a\_file\_rewritin.htm](docId\:ZisFQKPEUXv7MWY7QqQcg)]{src="https://api.archbee.com/api/optimize/wxZG1KsS4xNkVZYoiu_o9/BF9owFob2WQmC6mhtCpQZ_icon-arrow-white.png" size="10" width="49" height="49" darkWidth="49" darkHeight="49" position="center" initialPath="resources/images/icon-arrow-white.png" githubPath="frcg/resources/images/icon-arrow-white.png" showCaption="false"}

[Creating a File Rewriting Resource Profile](docId\:ZisFQKPEUXv7MWY7QqQcg)
:::

:::LinkArrayItem
::Image[[creating\_a\_file\_access\_c.htm](docId\:TtoijEGPGGaWPjuKC29O3)]{src="https://api.archbee.com/api/optimize/wxZG1KsS4xNkVZYoiu_o9/BF9owFob2WQmC6mhtCpQZ_icon-arrow-white.png" size="10" width="49" height="49" darkWidth="49" darkHeight="49" position="center" initialPath="resources/images/icon-arrow-white.png" githubPath="frcg/resources/images/icon-arrow-white.png" showCaption="false"}

[Creating a File Access Control Autopolicy](docId\:TtoijEGPGGaWPjuKC29O3)
:::

:::LinkArrayItem
::Image[[creating\_a\_single\_sign\_o.htm](docId\:Jn6yEGhAzP5Z9LSassSag)]{src="https://api.archbee.com/api/optimize/wxZG1KsS4xNkVZYoiu_o9/BF9owFob2WQmC6mhtCpQZ_icon-arrow-white.png" size="10" width="49" height="49" darkWidth="49" darkHeight="49" position="center" initialPath="resources/images/icon-arrow-white.png" githubPath="frcg/resources/images/icon-arrow-white.png" showCaption="false"}

[Creating a Single Sign-On Autopolicy (Windows Only)](docId\:Jn6yEGhAzP5Z9LSassSag)
:::
::::

