Script to Re-Map Windows Shares

I had some problems with the Windows Shares becoming unavailable at odd times, just randomly now and then. This meant I could no longer list and open my media files from my LG Home Theater or my Raspberry Pi.

I discovered that restarting a few services associated with Windows Folder Sharing solved the problem without the need to reboot.

This is a quick little script that I use to re-map my shared folders in Windows, including the disk shares (i.e. d$, e$) every night:

net stop LanmanServer /y
net start LanManServer
net start Browser
net start HomeGroupListener

Copy these lines in to a text-file using Notepad and save the file as “Sharemap.bat”, for example.

To set up an automatic scheduled job to run the script, open Task Scheduler (Start -> Run -> taskschd.msc) and set up a basic task: Right-click the folder area on the left and select “Create basic task”.

For the actions pane, select “Start a program” and point to the Sharemap.bat script.

For the triggers, you can set it to run every night at 5 in the morning or something similar.

If you’re using TrueCrypt and need to make disk shares (d$, e$ etc) map up after TrueCrypt mapping has taken place, create a trigger and set it to run “At log on”, with a delay that’s long enough to allow you to mount the TrueCrypt volumes before it runs (5-10 minutes maybe).

Alternatively, you can simply create a shortcut to “sharemap.bat” or save the file directly to your desktop and run it manually as needed.

How it works:
Stopping the LanmanServer service automatically stops the child services Browser and HomeGroupListener as well, automagically – so we only need to start those services, or at least I chose to do it that way to be on the safe side.

These network services are responsible for making Windows Shares available on the network, so it is sometimes necessary to restart them if there are any issues with finding shares, especially disk shares that are not automatically mapped by Windows, caused perhaps by delayed mounting from TrueCrypt or similar applications.

Lightpack: Ambient Backlighting for your PC

A few guys from different corners of the world have gotten together and created the Lightpack – an affordable ambient backlighting system, much like Philips’ Ambilight.

The drawback compared to Philips’ system, is that the Lightpack requires software to be installed on a computer to run.

The FAQ states that they are working to get support for up to two Lightpacks in sync via the included Prismatik software, to enable multi-display and better large (50″+) diagonal displays support.

Click here to check out the gang’s Kickstarter for more info on the Lightpack.

Personally, I think it’s both fairly cheap and looks like a neat package. Since I’ve been waiting for something like this for my PC for a while, I’m now officially a backer!
 

Battlefield 4: First Official Gameplay Trailer

The first Battlefield 4 trailer has been made public on Youtube. It’s a 17 minute long single-player gameplay video titled “Fishing in Baku”.

Enjoy!

 

Battlefield 3: End Game Launch Trailer

End Game is now released for PlayStation 3 Premium customers in Europe, and will also be made available for North American PS3 Premium customers later today, according to EA.

End Game will be released on PC and Xbox March 12th, but can already be preloaded in Origin.

The Best Unofficial Savant Music Video

Click here to check out more of Corridor Digital’s work!