Enable or Disable Windows Update Automatic Updates in Windows 10  

Page 48 of 60 FirstFirst ... 38464748495058 ... LastLast
  1.    03 Dec 2017 #470

    Matthew Wai said: View Post
    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 ComputerSystem Spec

  2.    03 Dec 2017 #471

    Superfly said: View Post
    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 ComputerSystem Spec

  3.    03 Dec 2017 #472

    TairikuOkami said: View Post
    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 ComputerSystem Spec

  4. TairikuOkami's Avatar
    Posts : 3,511
    Home 1809 x64 10.0.17763.194
       03 Dec 2017 #473

    Matthew Wai said: View Post
    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 ComputerSystem Spec

  5.    03 Dec 2017 #474

    TairikuOkami said: View Post
    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 ComputerSystem Spec

  6. TairikuOkami's Avatar
    Posts : 3,511
    Home 1809 x64 10.0.17763.194
       03 Dec 2017 #475

    Matthew Wai said: View Post
    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 ComputerSystem Spec

  7.    03 Dec 2017 #476

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

    Is that correct?
      My ComputerSystem Spec

  8. TairikuOkami's Avatar
    Posts : 3,511
    Home 1809 x64 10.0.17763.194
       03 Dec 2017 #477

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

    Is that correct?
    Yes
      My ComputerSystem Spec

  9.    03 Dec 2017 #478

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

  10. TairikuOkami's Avatar
    Posts : 3,511
    Home 1809 x64 10.0.17763.194
       03 Dec 2017 #479

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


 
Page 48 of 60 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
How to Enable or Disable Built-in Elevated Administrator Account in Windows 10 This tutorial will show you how to enable or disable the hidden built-in elevated Administrator account in Windows 10. You must be signed in as an administrator...
The lock screen is the screen you see when you lock your PC (or when it locks automatically after you haven't been using it for a while). The lock screen will also show at startup, and when you are signed out and idle for one minute. You will need...
Performance & Maintenance Enable or Disable Hibernate in Windows 10 in Tutorials
How to Enable or Disable Hibernate in Windows 10 Hibernate is a power-saving state designed primarily for laptops, and might not be available for all PCs (PCs with InstantGo don't have the hibernate option). While sleep puts your work and...
How to Enable or Disable the Action Center in Windows 10 The Action Center in Windows 10 collects and shows toast notifications and alerts from traditional Windows applications and system notifications, alongside those generated from modern...
Your screen(s) can get cluttered if you have a lot of opened app windows. Aero Shake lets you quickly minimize all opened windows except the current active window by shaking its title bar. Shaking the title bar again will restore all the minimized...

Tags for this Thread

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 01:01.
Find Us