filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # criar o documento $XmlWriter = System.XMl.XmlTextWriter($filePath,$Null) ...

$filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # criar o documento          $XmlWriter = System.XMl.XmlTextWriter($filePath,$Null) de novo objeto           # Definir a formatação          $xmlWriter.Formatting = "Recuado"          $xmlWriter.Indentation = "4"# Escrever o Decleration XML          Elemento de raiz de gravação $xmlWriter.WriteStartDocument() #          $xmlWriter.WriteStartElement("configuration") # gravação do documento          $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, "debug", $null, "false")          $xmlWriter.WriteEndElement() $xmlWriter.WriteEndElement() #end de System. Web          $xmlWriter.WriteEndElement() #end do local          $xmlWriter.WriteEndElement() #end de configuração          $xmlWriter.WriteEndDocument()           # Concluir o documento          $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