filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # creare il documento $XmlWriter = nuovo oggetto System.XMl.XmlTextWriter($filePath,$Null) ...

$filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # creare il documento          $XmlWriter = nuovo oggetto System.XMl.XmlTextWriter($filePath,$Null)           # Impostare la formattazione          $xmlWriter.Formatting = "Rientrato"          $xmlWriter.Indentation = "4"# Consente di scrivere il Decleration XML          Elemento di primo livello scrittura # $xmlWriter.WriteStartDocument()          scrittura di # $xmlWriter.WriteStartElement("configuration") il documento          $xmlWriter.WriteStartElement("location")          $xmlWriter.WriteAttributeString ($null, "inheritInChildApplications", $null, "false")$xmlWriter.WriteElementString ("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 di System. Web          $xmlWriter.WriteEndElement() #end di posizione          $xmlWriter.WriteEndElement() #end di configurazione          $xmlWriter.WriteEndDocument()           # Fine 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