I have a wmi script that creates a share and sets permissions. works great
until it is run on a system that is behind a restrictive router ACL.
I am assigning permissions to users and groups in two domains. Direct access
to the second domin's DC is bloked by the router ACL. This causes the wmi
script and setting permissions via the gui to fail. But I can use rmtshare to
set the permissions of the users of the second domain.
Is there a way to call the functions rmtshare is calling to allow the script
to function the same way?