title: set property syntax in Powershell
body: <p>I am new to PowerShell, I am trying to change a property of an IIS website using the following syntax (which doesn't work)</p>
  
  <pre><code>(get-item 'IIS:\Sites\Default Website').logFile.directory = 'd:\'
  </code></pre>
  
  <p>It doesn't show any error but doesn't change the property either.</p>
  
  <p>Anybody help?</p>