lostangel556 Posted November 29, 2008 Posted November 29, 2008 Hi, In my previous post i figured out how to use WMI to share an drive remotely. Im now having an few issues setting the security permissions on the folder as well as setting the share permissions. I've seen that i can also use WMI to set the the share and security permissions for the shared folder using Win32_LogicalShareSecuritySetting, and Win32_LogicalFileSecuritySetting but am having difficulty figuring out how to get them to set the permissions. This is what i have so far CODE $strComputer = $Server $objWMIService = ObjGet("winmgmts:\\" & $strComputer & "\root\cimv2") $objNewShare = $objWMIService.Get("Win32_LogicalShareSecuritySetting") $objNewShare.SetSecurityDescriptor() ;Not exactly sure what to do at this bit
lostangel556 Posted November 29, 2008 Author Posted November 29, 2008 Just realied i posted this in the wrong section. so am moving it to the Activex/Com section now
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now