First open a command prompt and type in services.msc then hit enter. Scroll down the list and locate the following services, right click on the service and choose properties, set the service to Automatic rather than Manual.
Right click the sevice, go to properties, make sure that all these services are started then Set to Automatic> DNS Client, Function Discovery Resource Publication, SSDP Discovery, Peer Networking Grouping,UPnP Device Host services, Homegroup listener, Homegroup provider.