Use-Powershell
26 April 2013
Sharing multiple folders
net share command can be used to share folders and grant permissions
for ($i=1; $i -le 100; $i++){
$share = 'T' +$i
$user= 'ST_Samba.T' + $i
net share $share=E:\Software\$share "/grant:$user,full"
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment