Tuesday, January 22, 2019

Start Menu stops responding to left Mouse clicks and does not show any applications on server 2016


Start Menu stops responding to left Mouse clicks and does not show any applications on server 2016


  1. Add "!ctx_localappdata!\Microsoft\Windows\Usrclass.dat*" to Exclusions in "Exclusion List - Directories" and "Exclusion List - Files" policy. 
  2. Add "!ctx_localappdata!\packages" to Exclusions in "Exclusion List - Directories" and "Exclusion List - Files" policy.

Wednesday, January 16, 2019

SC command to config and query Windows services remotely

Command to remotely change service setting from  Disbale to Delayed Auto

sc \\XXXXX config "Wsearch" start=delayed-auto

Command to remotely check the service status
  
sc \\XXXXX query wsearch

SERVICE_NAME: wsearch
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 1  STOPPED
        WIN32_EXIT_CODE    : 1077  (0x435)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

Command to remotely start the service status

sc \\XXXXX start wsearch

SERVICE_NAME: wsearch
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x1
        WAIT_HINT          : 0x7530
        PID                : 1520
        FLAGS              :


Monday, January 14, 2019

Powershell command to run gpupdate /force remotely

Powershell command to run gpupdate /force remotely

Invoke-Command -ComputerName XXXXXXX -ScriptBlock {Gpupdate /force}