Enable or Disable Windows Update Automatic Updates in Windows 10  

Page 48 of 63 FirstFirst ... 38464748495058 ... LastLast
  1. Superfly's Avatar
    Posts : 3,272
       #470

    Matthew Wai said:
    I just ran the above on PowerShell (Admin) and got the following error:
    Attachment 166536
    Environment variables are different in PS ... use Cmd rather.

    or change it to
    [System.Environment]::ExpandEnvironmentVariables("%WINDIR%")

    or..

    $env:windir

    for C:\Windows
      My Computer

  2. cereberus's Avatar
    Posts : 11,331
    Windows10
       #471

    Superfly said:
    Environment variables are different in PS ... use Cmd rather.

    or change it to
    [System.Environment]::ExpandEnvironmentVariables("%WINDIR%")

    or..

    $env:windir

    for C:\Windows
    On another forum, I got all sorts of abuse from some people when I said powershell was not 100% compatible with command, with comments referring to speaking out of a different orifice!

    It would be nice if powershell was clever enough to recognise cmds command and warn you even if automatically converting to powershell was too difficult.

    It does not even need to be perfect e.g. This looks like a CMD command. Try executing in a legacy command prompt.
      My Computer

  3. Matthew Wai's Avatar
    Posts : 2,078
    Windows 10 Home 1903
       #472

    TairikuOkami said:
    Run it in CMD.
    Thanks. It worked on CMD. It read the following:
    Code:
    C:\Windows\system32>takeown /f "%WINDIR%\System32\UsoClient.exe" /a
    SUCCESS: The file (or folder): "C:\Windows\System32\UsoClient.exe" now owned by the administrators group.
    C:\Windows\system32>icacls "%WINDIR%\System32\UsoClient.exe" /remove "Administrators" "Authenticated Users" "Users" "System"
    processed file: C:\Windows\System32\UsoClient.exe
    Successfully processed 1 files; Failed processing 0 files
    Does it mean UsoClient.exe cannot be run anymore?
      My Computer

  4. TairikuOkami's Avatar
    Posts : 4,116
    Home 2004 x64 10.0.19041.264
       #473

    Matthew Wai said:
    Does it mean UsoClient.exe cannot be run anymore?
    It seems, that I have forgotten to remove inheritance, last time I did it manually, so it did not occur to me.
    Code:
    takeown /f "%WINDIR%\System32\UsoClient.exe" /a
    icacls "%WINDIR%\System32\UsoClient.exe" /inheritance:r /remove "Administrators" "Authenticated Users" "Users" "System"
    Re-checked, the task fails to run and exe as well. Manual checking works fine.

      My Computer

  5. Matthew Wai's Avatar
    Posts : 2,078
    Windows 10 Home 1903
       #474

    TairikuOkami said:
    Re-checked, the task fails to run and exe as well. Manual checking works fine.
    Do you mean UsoClient.exe cannot be run automatically by Task Scheduler but can be run manually by the user?
      My Computer

  6. TairikuOkami's Avatar
    Posts : 4,116
    Home 2004 x64 10.0.19041.264
       #475

    Matthew Wai said:
    Do you mean UsoClient.exe cannot be run automatically by Task Scheduler but can be run manually by the user?
    It can be run only by trusted installer and app packages.
      My Computer

  7. Matthew Wai's Avatar
    Posts : 2,078
    Windows 10 Home 1903
       #476

    In a word, auto-checking for updates will not happen, but manual checking can be performed.

    Is that correct?
      My Computer


  8. TairikuOkami's Avatar
    Posts : 4,116
    Home 2004 x64 10.0.19041.264
       #477

    Matthew Wai said:
    In a word, auto-checking for updates will not happen, but manual checking can be performed.

    Is that correct?
    Yes
      My Computer

  9. Matthew Wai's Avatar
    Posts : 2,078
    Windows 10 Home 1903
       #478

    In the future, if I want the auto-checking back, what should I do?
      My Computer

  10. TairikuOkami's Avatar
    Posts : 4,116
    Home 2004 x64 10.0.19041.264
       #479

    Matthew Wai said:
    In the future, if I want the auto-checking back, what should I do?
    Code:
    icacls "%WINDIR%\System32\UsoClient.exe" /reset
      My Computer


 
Page 48 of 63 FirstFirst ... 38464748495058 ... LastLast

Tutorial Categories

Enable or Disable Windows Update Automatic Updates in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:34.
Find Us




Windows 10 Forums