a·gen·tic a·gil·i·ty

Lab Management Issue: Enable File and Printer Sharing for Lab Management Standard Environments

Learn how to resolve connectivity issues in Visual Studio Lab Management by enabling File and Printer Sharing on Windows 8 and Windows Server 2012 for standard environments.

Published on
2 minute read
Image
https://nkdagility.com/resources/JuqjGCN5X6g
Subscribe

If you try to add any servers to Standard Environments in Visual Studio 2012 Lab Management you get a message that you need to enable file and printer sharing and you are unable to configure or communicate with those machines.

Lab Management Issue: Enable File and Printer Sharing for Lab Management Standard Environments

Figure: Unable to verify that machines are accessible

There are three main causes:

I know that the second two are not true so what to do now?

Applies To

* this applies to all versions of Windows that you want to use with both Visual Studio 2012 and Visual Studio 2010 Lab Management features.

Findings

In order for Lab Management to successfully integrate with guest servers is used the file and print sharing ports of that machine. If they are not enabled or the ports are otherwise blocked then you will not otherwise be able to use those servers in environments. This

In both Windows 8 and Windows Server 2012 the File and Printer Sharing ports are blocked by default and you will need to open them up for this to work.

Solution for Windows 8

You need to open the ports required for File & Print Sharing. This is roughly the same for doing the same on Windows Server 2012 through the UI.

  1. Start | type “Fire” | click “Settings” | press “Enter” key Lab Management Issue: Enable File and Printer Sharing for Lab Management Standard Environments Figure: Open the Windows Firewall Settings
  2. Change Settings | check “File and Printer Sharing” | OK Lab Management Issue: Enable File and Printer Sharing for Lab Management Standard Environments Figure: Enable File and Printer Sharing on your Windows 8 firewall

Solution for Windows Server 2012 Core

You need to open the ports required for File & Print Sharing.

1powershell
2netsh advfirewall firewall set rule group=”File and Printer Sharing” new enable=Yes

Figure: Enable File and Printer Sharing via the command line

Lab Management Issue: Enable File and Printer Sharing for Lab Management Standard Environments

Figure: Make sure that you run this in PowerShell

Conclusion

After enabling the File and Printer Sharing firewall rules everything is now green.

Lab Management Issue: Enable File and Printer Sharing for Lab Management Standard Environments

Figure: We can now verify the Standard Environment

Windows Troubleshooting System Configuration Install and Configuration
Subscribe

Related Blog

No related videos found.

Connect with Martin Hinshelwood

If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Kongsberg Maritime Logo

Kongsberg Maritime

Big Data for Humans Logo

Big Data for Humans

Lockheed Martin Logo

Lockheed Martin

Epic Games Logo

Epic Games

Freadom Logo

Freadom

YearUp.org Logo

YearUp.org

MacDonald Humfrey (Automation) Ltd. Logo

MacDonald Humfrey (Automation) Ltd.

Boeing Logo

Boeing

Sage Logo

Sage

Illumina Logo

Illumina

CR2

Boxit Document Solutions Logo

Boxit Document Solutions

Deliotte Logo

Deliotte

NIT A/S

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.

Slicedbread Logo

Slicedbread

Teleplan Logo

Teleplan

Nottingham County Council Logo

Nottingham County Council

Department of Work and Pensions (UK) Logo

Department of Work and Pensions (UK)

Washington Department of Transport Logo

Washington Department of Transport

Royal Air Force Logo

Royal Air Force

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Cognizant Microsoft Business Group (MBG) Logo

Cognizant Microsoft Business Group (MBG)

New Signature Logo

New Signature

Boxit Document Solutions Logo

Boxit Document Solutions

Slicedbread Logo

Slicedbread

Sage Logo

Sage

Hubtel Ghana Logo

Hubtel Ghana