Skip to content

VSKUMBHANI/WindowsBlogs

Repository files navigation

Commands

Note: Run CMD as Administrator

CloseOutlookIMAP is used to Close the Outlook application which is run in the background after closing it.

+==========================+

|Disable Drive Redirection:| reg add "HKLM\SOFTWARE\Microsoft\Terminal Server Client" /v DisableDriveRedirection /t REG_DWORD /d 1 /f

+==========================+

Disable Printer Redirection: reg add "HKLM\SOFTWARE\Microsoft\Terminal Server Client" /v DisablePrinterRedirection /t REG_DWORD /d 1 /f

+==========================+

Enable Admin Share: reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f

+==========================+

Query to check if reg entry is there: reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"

+==========================+

Delete the reg key: reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v LocalAccountTokenFilterPolicy /f

+==========================+

Hide application from Program and Features: reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall(application name)" /v SystemComponent /t REG_DWORD /d 1 /f

+==========================+

+==========================+

"Access Denied" on saving Office documents while not having delete permission

Ref: https://support.microsoft.com/en-us/topic/-access-denied-error-message-when-you-save-a-workbook-to-a-unc-share-in-excel-2010-or-excel-2013-4df84394-0cca-a756-436b-9494331218e7

reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\General" /v EnableSimpleCopyForSaveToUNC /t REG_DWORD /d 1 /f

+==========================+

Add secound in taskbar clock
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSecondsInSystemClock /t REG_DWORD /d 1 /f
+==========================+

Clear Run history...
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_TrackProgs /t REG_DWORD /d 0 /f
+==========================+

Ref Link: https://stackoverflow.com/questions/25736268/how-to-register-a-windows-service-but-avoid-it-being-listed-in-the-services-cons
+==========================+

Hide the service from Services.msc
sc sdset (name of service) D:(D;;DCLCWPDTSD;;;IU)(D;;DCLCWPDTSD;;;SU)(D;;DCLCWPDTSD;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
+==========================+

Restore the service from Services.msc
sc sdset (name of service) D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
+==========================+

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published