title: Powershell Reset Windows Update
body: <p>I currently installed a fresh official Windows 7 Ultimate on my MacbookPro with BootCamp.</p>
  
  <p>Everything is running good except Windows Update. Stuck on Searching for updates..</p>
  
  <p>So I made a lot of google searches (for about 4 hours now) and I tried many things such as the FixIt tools from MS and other tricks but nothing is working.</p>
  
  <p>Now i'm trying this:
  <a href="http://www.sevenforums.com/performance-maintenance/372790-very-high-memory-sometimes-cpu-usage-svchost-exe-up-1-gb-post3095241.html#post3095241" rel="nofollow">http://www.sevenforums.com/performance-maintenance/372790-very-high-memory-sometimes-cpu-usage-svchost-exe-up-1-gb-post3095241.html#post3095241</a></p>
  
  <p>I'm now at using PowerShell and entering this command line:</p>
  
  <pre><code>sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
  </code></pre>
  
  <p>I always get this error:</p>
  
  <pre><code>Missing closing ')' in expression.
  At line:1 char:23
  + sc.exe sdset bits D:(A &lt;&lt;&lt;&lt; ;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRS
  DRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
      + CategoryInfo          : ParserError: (CloseParenToken:TokenId) [], Paren
     tContainsErrorRecordException
      + FullyQualifiedErrorId : MissingEndParenthesisInExpression
      enter code here
  </code></pre>
  
  <p>I took a look at the commande line and I dont see any missing ')', and made some other google search for this command line from other websites and always give the same error</p>
  
  <p>Whats wrong..!?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I tried this without success (same error)</p>
  
  <pre><code>$str = "sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)"
  
  Invoke-Expression $str
  </code></pre>