# convert virtual dir to applicatiion

**URL:** https://forums.powershell.org/t/convert-virtual-dir-to-applicatiion/13460
**Category:** DSC
**Created:** [November 22, 2019, 1:58pm UTC](https://forums.powershell.org/t/convert-virtual-dir-to-applicatiion/13460 "2019-11-22T13:58:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![efff-dd](https://avatars.discourse-cdn.com/v4/letter/e/e68b1a/32.png) [@efff-dd](https://forums.powershell.org/u/efff-dd)
#### Post date: [November 22, 2019, 1:58pm UTC](https://forums.powershell.org/t/convert-virtual-dir-to-applicatiion/13460/1 "2019-11-22T13:58:41Z")

</div>

existing site has virtual directory but I to convert to applicationpool under DSC.

if i create an application pool the resource that it points to are local and i need to access remote file share.

```
Applications = @()
VirtualDirectories = @(
@{
Name = 'virtualfolder1'
PhysicalPath = "\\fileshare\outthere"
Ensure = "Present"

}
@{
Name = 'virtualfolder2'
PhysicalPath = "\\fileshare\outthere2"
Ensure = 'Present'

}
)
}
```

---

<div class="post-metadata">

### Author: ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)
#### Post date: [May 16, 2024, 9:16pm UTC](https://forums.powershell.org/t/convert-virtual-dir-to-applicatiion/13460/2 "2024-05-16T21:16:17Z")

</div>


