filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # Создать документ $XmlWriter = System.XMl.XmlTextWriter($filePath,$Null) ...

$filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # Создать документ          $XmlWriter = System.XMl.XmlTextWriter($filePath,$Null) нового объекта           # Задать форматирование          $xmlWriter.Formatting = «Отступ»          $xmlWriter.Indentation = «4»# Записи XML Decleration          $xmlWriter.WriteStartDocument() # записи корневого элемента          # $xmlWriter.WriteStartElement("configuration") запись документа          $xmlWriter.WriteStartElement("location")          $xmlWriter.WriteAttributeString ($null, "inheritInChildApplications", $null, "false")$xmlWriter.WriteElementString ("system.webServer", $null)          $xmlWriter.WriteStartElement("system.web")$xmlWriter.WriteStartElement("machineKey")          $xmlWriter.WriteAttributeString ($null, "validationKey" $null "AutoGenerate, IsolateApps")          $xmlWriter.WriteEndElement() $xmlWriter.WriteStartElement("compilation")          $xmlWriter.WriteAttributeString ($null, "defaultLanguage", $null, "c#")          $xmlWriter.WriteAttributeString ($null, "Отладка", $null, "false")          $xmlWriter.WriteEndElement() $xmlWriter.WriteEndElement() #end из system.web          $xmlWriter.WriteEndElement() #end местоположения          $xmlWriter.WriteEndElement() #end конфигурации          $xmlWriter.WriteEndDocument()           # Завершить документ          $xmlWriter.Finalize          $xmlWriter.Flush          $xmlWriter.Close()
English
English (United States)
Español (España)
Spanish (Spain)
Français (France)
French (France)
italiano
Italian
한국어
Korean
Português
Portuguese
Русский
Russian