Enable or Disable Windows Update Automatic Updates in Windows 10  

Page 48 of 76 FirstFirst ... 38464748495058 ... LastLast

  1. Posts : 3,453
       #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. Posts : 15,480
    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. Posts : 7,606
    Windows 10 Home 20H2
       #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. Posts : 5,452
    Windows 11 Home
       #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. Posts : 7,606
    Windows 10 Home 20H2
       #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. Posts : 5,452
    Windows 11 Home
       #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. Posts : 7,606
    Windows 10 Home 20H2
       #476

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

    Is that correct?
      My Computer


  8. Posts : 5,452
    Windows 11 Home
       #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. Posts : 7,606
    Windows 10 Home 20H2
       #478

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


  10. Posts : 5,452
    Windows 11 Home
       #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


 

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 Discussions
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 14:06.
Find Us




Windows 10 Forums