You might want to see if that folder actually got shared on the remote machine. Your code does get a return value from the objNewShare.Create method, but it ignores the result. So, you have no way of knowing if the sahre was actually created or not, or why it failed. Also, your code creates the share, but it never sets up any permissions for any groups or users on that share.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007