File and Printing Share Services (Admin Shares)

Sometimes, you might wanna start File and Printing Share Services to be able to logon to that computer for example installing ESET Endpoint Antivirus.

To do so, you can go two way's. By GPO starting the specified services or to put it in a batch file.

So for a batch file edit it and put the following text in it.

REM Start Services to enable Network Discovery + File and Print Share regarding Admin Shares.
sc start Browser
sc start Dnscache
sc start fdPHost
sc start SSDPSRV  
sc start upnphost
sc start LanmanServer

 

But we're not there yet.

Also create a GPO to enable the following registry key's.

Set the AutoShareServer and AutoShareWks values in the

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\LanmanServer\Parameters   key to 1 (0 is disabled).

Set the GPO to Replace the item.

 

After a reboot or gpupdate /force

you can access your IPC$ and Admin$ shares to deploy Software.

make a connection to the server or client with the following command:

 

(runas ad domain admin) net use \\IP\ipc$

and via command prompt:

start explorer \\IP\ADMIN$