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, "자동 생성, IsolateApps")          $xmlWriter.WriteEndElement() $xmlWriter.WriteStartElement("compilation")          $xmlWriter.WriteAttributeString ($null, $null, "defaultLanguage" "c#")          $xmlWriter.WriteAttributeString ($null, "디버그", $null, "false")          system.web의 $xmlWriter.WriteEndElement() $xmlWriter.WriteEndElement() #end          $xmlWriter.WriteEndElement() #end의 위치          구성의 #end $xmlWriter.WriteEndElement()          $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