I've been using this script to create my users folders but I just find that the remote share folder is created with ReadOnly share.
My question is how can I create the share folder with $domainnamedomain
users with full control
?
Invoke-WmiMethod -Class win32_share -name Create -ArgumentList `
@($null,"",100,"hideshare$","",e:usershideshare,0) -computername "DestinationSRV"
I've found many threads with answers but not with the method I use.
Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…