Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Powershell to create Virtual directory with username

$
0
0

 Hello, I'm new to working with powershell and IIS.  I'm trying to figure out how to create a virtual directory via powershell and specifies the "connect as" username and password.

 

I can create the Virtual directory with:

 New-Item 'IIS:\Sites\www.test-site.com\robert-test\TestVirtual' -type VirtualDirectory -physicalPath \\FileServer\networkShare

 But how do I add the  "connect as" user information?

Sorry for the probably simple question.  Thanks!


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>