Page 48 of 52 FirstFirst ... 384647484950 ... LastLast
  1.    03 Dec 2017 #470

    Quote Originally Posted by Matthew Wai 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
    Join Date : Dec 2015
    Posts : 6,746
    Windows10

    Quote Originally Posted by Superfly 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
    Join Date : Mar 2016
    Posts : 510
    Windows 10 Home

    Quote Originally Posted by TairikuOkami 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.    03 Dec 2017 #473
    Join Date : Oct 2014
    Trnava
    Posts : 3,045
    10.4 Home 1709 x64

    Quote Originally Posted by Matthew Wai 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
    Join Date : Mar 2016
    Posts : 510
    Windows 10 Home

    Quote Originally Posted by TairikuOkami 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.    03 Dec 2017 #475
    Join Date : Oct 2014
    Trnava
    Posts : 3,045
    10.4 Home 1709 x64

    Quote Originally Posted by Matthew Wai 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
    Join Date : Mar 2016
    Posts : 510
    Windows 10 Home

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

    Is that correct?
      My ComputerSystem Spec
  8.    03 Dec 2017 #477
    Join Date : Oct 2014
    Trnava
    Posts : 3,045
    10.4 Home 1709 x64

    Quote Originally Posted by Matthew Wai 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
    Join Date : Mar 2016
    Posts : 510
    Windows 10 Home

    In the future, if I want the auto-checking back, what should I do?
      My ComputerSystem Spec
  10.    03 Dec 2017 #479
    Join Date : Oct 2014
    Trnava
    Posts : 3,045
    10.4 Home 1709 x64

    Quote Originally Posted by Matthew Wai 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 52 FirstFirst ... 384647484950 ... LastLast


Similar Threads
Tutorial Category
Performance & Maintenance 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 settings in memory and draws a small amount of power,...
Tutorials
User Accounts Enable or Disable Elevated Administrator account in Windows 10
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...
Tutorials
Customization Enable or Disable Lock Screen in Windows 10
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...
Tutorials
Customization Enable or Disable Action Center in Windows 10
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 apps....
Tutorials
General Tips Enable or Disable Aero Shake in Windows 10
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...
Tutorials
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 19:22.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums