Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

net share will not share home directory

$
0
0

Hi guys, 

quite new to powershell

im trying to create and share a home directory. This is the script i'm using but the folder will not share. 

 mkdir c:\home

 net share home=c:\home /GRANT:Users,FULL

 icacls "c:\home" /grant "domain admins:(OI)(CI)F" /inheritance:r

 icacls "c:\home" /grant "administrators:(OI)(CI)F" /inheritance:r

 icacls "c:\home" /grant "users:R"

When i go to the folder properties and sharing, there is no network path there and under advanced sharing i would have expected the 'share this folder' tickbox to be checked but it is not.

Any ideas? 


Viewing all articles
Browse latest Browse all 6937

Trending Articles