---
title: File Rewriting
slug: ps/help/en_us/ics/25x/ag/1024
docTags: 
createdAt: 2026-08-27T06:20:57.714Z
---

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

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.

:::hint{type="info"}
Rewriting via Mobile devices is not supported/qualified.
:::

Windows resources: \\\server\[\share\[\path]]

Within these formats, the three components are:

- **Server (required)&#x20;**- 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 or the Server field for UNIX resources). |
| -- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| %  | Matches any character except slash (/)                                                                                                                                                                                        |
| ?  | Matches exactly one character                                                                                                                                                                                                 |

For details about the configuration, refer to the [File Rewriting Configuration Guide](https://help.ivanti.com/ps/help/en_US/ICS/vNow/25.x/frcg/landingpage.htm).
