Posted On March 31, 2019

Disable / Enable Admin Shares

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Disable / Enable Admin Shares

Restore Administrative Shares

To restore administrative shares so that they are automatically created in Windows:
  1. Click Start, and then click Run.
  2. In the Open box, type regedit, and then click OK.
  3. Locate and then click the AutoShareServer value in the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
    Note The AutoShareServer value must be set as a REG_DWORD type. When this value is set to 0 (zero), Windows does not automatically create administrative shares. This setting does not apply to the IPC$ share or to shares that you create manually.
  4. Either delete the AutoShareServer value or set the value to 1. To do so, use one of the following methods:
    • To delete the AutoShareServer value, click Delete on the Edit menu. When you are prompted to confirm the deletion, click Yes.
    • To set the AutoShareServer value to 1, click Modify on the Edit menu. In the Value data box, type 1, and then click OK.
  5. Quit Registry Editor.
  6. Stop and then start the Server service:
    1. Click Start, and then click Run.
    2. In the Open box, type cmd, and then click OK.
    3. At the command prompt, type the following commands, pressing ENTER after each command:
      net stop server
      net start server
    4. Type exit, and then press ENTER.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

Active Directory Audit Using AD Tidy

1. Clean up user accounts Download AD Tidy: https://www.cjwdev.com/Software/ADTidy/Download.html Run: "C:\Program Files\Cjwdev\AD Tidy Free Edition\ADTidy.exe"…

Java Virtual Machine Optimal Memory Tuning

Overview: There are five available garbage collectors (GC) for Java Virtual Machines (JVM). Here are…

PowerShell: Download and Expand Zip File – Legacy Compatible

function downloadFile{ param( $url, $tempFolder="C:\Temp" ) try{ $fileName=split-path $url -leaf $tempFile = "$tempFolder\$fileName" try{[Net.ServicePointManager]::SecurityProtocol =…