in reply to
Create WebSites on IIS Server
However, when I run the code below, I receive an error that the syntax is not correct (I believe that it has something to do with how I am passing the server name) and that no OLE object could be obtained.
I don't have any expertise in neither Win32::OLE nor IIS, but it could be helpful if you did post the actual error. That way anybody willing to help you might have a starting point. Why should anybody run that snippet of code just to get the error you didn't post?