filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # créer le Document $XmlWriter = new-Object System.XMl.XmlTextWriter($filePath,$Null) ...

$filePath = "$env:SystemDrive\inetpub\wwwroot\web.config" # créer le Document          $XmlWriter = new-Object System.XMl.XmlTextWriter($filePath,$Null)           # Définir la mise en forme          $xmlWriter.Formatting = « En retrait »          $xmlWriter.Indentation = « 4 »# Écrire la Decleration XML          Élément racine de $xmlWriter.WriteStartDocument() # écriture          écriture de # $xmlWriter.WriteStartElement("configuration") le Document          $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 d'emplacement          $xmlWriter.WriteEndElement() #end de configuration          $xmlWriter.WriteEndDocument()           # Fin du Document          $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