I get this error from the following script: $vdir = ([wmiclass]" \\.\root\MicrosoftIISv2:IIsWebDirectorySetting").CreateInstance () $vdir.Name = "W3SVC/1/ROOT/" $vdir.AuthFlags = 5 # AuthNTLM | AuthAnonymous $vdir.EnableDefaultDoc = $TRUE $vdir.DirBrowseFlags = 0x4000003E # date, time, size, extension...