Change signed-in user in Windows 8 simulator? - windows-store-apps

Visual Studio lets you fire up a Windows 8 simulator to test apps. By default, the simulator uses the same user account as my machine. Is there a way to specify a different account?

This answer comes with one important caveat: It will require an installable (registerable) version of Windows 8.
Use the Hyper-V Manager to create a new virtual machine and install Windows 8 on that. You will be able to create whatever accounts you need, either local or Microsoft accounts. Install the Visual Studio 2012 Remote Debugging tool on that machine. In my case, I joined the VM to my local WORKGROUP.
In your VS 2012 project, you can then select Remote Machine instead of Simulator or Local. If, for some reason, the remote connections dialog box doesn't show up to allow you to select the VM, you can also go to Properties > Debug > Start Options and select Remote Machine and use the Find button to locate it.

Related

Change a Windows Server 2016 Machine From GUI to Core

We have a Windows machine that when remoted into, the only thing that comes up is a command prompt. I'm under the impression that this machine is set to being Windows Core. I'm looking to do this to another one of our machines (Windows Server 2016) but the machine is already setup and running with the desktop GUI. Is it possible to change / retroactively put the machine back to Windows Core?
install(GUI), unistall (core) Roles and Features -> User Interfaces and Infrastructure

Windows Phone emulator not starting (couldn`t setup the UDP port)

After updating Windows 10 to build 10061 windows phone emulators (all 8.1 and 10) stopped starting. I get the following error:
"Windows Phone Emulator is unable to connect to the Windows Phone operating system. Couldn`t setup the UDP port"
I tried "reparing" emulators, but nothing changed.
Hyper-V manager shows that virtual machine works, and it can be started directly from Hyper-V manager.
As i said, in previous windows 10 TP builds it was OK.
The solutions above did not work for me. I found out that the issue was with the Hyper v adapters so I decided to deleted them which caused hyper -v to create them again.
These are the steps
Run cmd as admin and enter the following commands
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
This will startup the device manager and show the list of hyper v network adapters
Right click and uninstall all hyper v network adapters
Open Hyper v manager and delete the virtual machines
From Virtual Switch Manager (right side of hyper-v manager), delete all internal switches
Restart the system and run visual studio and launch emulator
See this for more info http://www.gfi.com/blog/how-to-remove-hidden-network-adapters-from-virtual-machines/
Do you see your "Virtual Switch" information under: Control Panel\Network and Internet\Network Connections? If not, you can try to recreate your "Windows Phone Emulator Internal Switch" again from Hyper-V to see if that resolves your issue. Try these steps below:
1.) Open Hyper-V
2.) Shutdown any existing configured Phone emulators.
3.) Click on "Virtual Switch Manager"
4.) Click on the "Windows Phone Emulator Internal Switch"
5.) Remember what the settings are displayed there (because you will delete it and recreate it)
6.) Delete the existing "Windows Phone Emulator Internal Switch" by clicking "Remove"
7.) Click "Apply" and "OK"
8.) Re-create the "Windows Phone Emulator Internal Switch" by clicking the "New virtual network switch" and use the same settings you remembered in Step 5.
9.) Then try to F5 from Visual Studio - which should configure a new emulator on the right virtual switch.
I had similar problem, i tried the various solutions offered (cleaning up the Hyper-V images and network switches), reinstalling Hyper-V, reinstalling Visual Studio, restoring to Old System Restore point - but none of my actions didn't resolved the problem.
But i tried below action which fixed the problem, off course some might able to resolve the problem with above steps and other answers provided.
In my case, my virtual adapter doesn't have network connectivity. I shared my wi-fi adapter connectivity to virtual adapter. This fixed for me, i can able to deploy apps into emulator without any crashes.
For me, the following steps worked:
Open Hyper-V manager and delete all emulators
From Virtual Switch Manager (right side of hyper-v manager), delete all internal switches
From Control Panel->Network and Sharing Center, disable the virtual ethernet port for windows phone emulator
Start Visual Studio and start emulator from there (Just deploy a project)
Update: Your old connection will stay disabled and a new connection will be created. If you want to delete the old connection, go to device manager, find the connection and choose "uninstall"
In my case there was a problem with my notebook modem. It is a Sierra Wireless EM7345 4G LTE. As soon as I deactived it the Win10 Mobile Emulator worked like a charm.
For me all above solutions didn't work.
Maybe because my Ethernet is disabled.
My solution is similar to other:
1) delete vm's from hyper-v
2) delete all internal switches
3) create manually new switch and select wifi
screenshot
4) install vm profile
5) start it :)...
after 6h endly
If for some reason you are unable to delete internal switches in Hyper-V UI:
go to regedit
HKLM\SYSTEM\CurrentControlSet\Services\vmsmp\Parameters\SwitchList
delete Windows Phone entry (or all)
reboot computer
start VS and run emulator which will set everything up
I had a similar problem and tried many solutions and got the emulator working by doing the below steps:
Remove all the virtual switches from "Virtual Switch manager"
Restart your system.
Goto Control Panel -> Network and Internet -> Network and Sharing Center -> Advanced sharing settings
Advance sharing screen
And enable "Turn on Network discovery" and "Turn on file and printer sharing" for all network profiles.
Start emulator.
Done.
The steps suggested by Magani Felix above worked for me, but I had to apply two additional steps:
After deleting virtual switches from devmgmt.msc, the remaining virtual switch entry can't be removed from hyper-v manager anymore (step 5). However, just leaving it there was ok.
The first time I started the emulator from Visual Studio it could not connect. When I looked at the virtual switch in hyper-v manager, it had been created as a private virtual network. Shutting down the emulator from both Visual Studio and hyper-v manager, and then changing the internal switch to internal virtual network solved the issue. Afterwards, the emulator would start from Visual Studio and connect.
Windows 10 pro.
After attempting all the above, and similar suggestions from other threads, what ultimately worked for me was to:
Uninstall Hyper-V: Add/Remove -> Turn Windows Features On / Off
Uninstall Visual Studio Emulator for Android
Reboot
In Device Manager, "Uninstall" all remaining "Hyper-V Virtual Ethernet Adapter" instances found under "Network Adapters" node
Reboot
Reinstall Hyper-V
Reboot
Reinstall Visual Studio Emulator for Android
Download a device profile and launch
profit
Not all the reboots may have been necessary, but I had been banging my head against this for too long.
I believe this was caused due to me adding and removing Hyper-V a few times in the past, and some VirtualBox conflicts (which I currently do not have installed, it hasn't played nice with Hyper-V for me in the past).
Thanks for all tips above, hope this helps someone.
The solution offered by Silmar worked for me. All-in-all it appears that at least for Windows 10 Pro that one should install Hyper-V but not configure any virtual switches as the emulator installer will configure things properly.
Try this OPTION
1.) Open Hyper-V
2.) Shutdown any existing configured Windows Phone emulators.
3.) Delete the existing Phone emulators you see in the list
3.) Click on “Virtual Switch Manager”
4.) Click on the “Windows Phone Emulator Internal Switch”
5.) Delete the existing “Windows Phone Emulator Internal Switch” by clicking “Remove”
6.) Click “Apply” and “OK”
This should work.
If this does not, then do this:
Now, open “Network Connections”
You will see there “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)”
But hey, you deleted this same switch in OPTION 1, but still it shows in the Network Connections page.
Now open Device Manager, Expand “Network Adapters”
You will see the names appearing under Network Adapter match the same as “Device Name” mentioned in “Network Connections” window
Find out the correct “Hyper-V Virtual Ethernet Adapter” to be removed.
Now, in Device Manager, right click the correct Network Adapter and choose “Uninstall”.
This should disappear from the list.
Open “Network Connections” and see that “vEthernet (Internal Ethernet Port Windows Phone Emulator Internal Switch)” will no longer be present there.
Open Visual Studio, run the project in your desired emulator.
This time everything will work fine and the Emulator will boot up Windows 10 or Windows 8.
I know it's an old thread but just thought I would chime in.
What fixed it for me was going into "Turn windows features on or off"... unselecting all the hyper v boxes... restarting my computer... then selecting all the hyper v boxes again in "turn windows features on or off" and restarting again....
This fixed it for me. I tried the solutions mentioned above but they did not work.
I have struggled for some days with this issue.
After I have read all forums and references, I have found the solution and fixed it. The solution was as following.
https://msdn.microsoft.com/en-us/library/windows/apps/jj681694(v=vs.105).aspx
Interference from other virtualization or networking software and drivers
Other virtualization and networking software and drivers can interfere with the virtual network used by the emulator to communicate with Visual Studio. The types of software that may cause a problem include:
-Virtualization software other than Hyper-V.
-VPN clients.
-Software firewalls.
-Antivirus applications that hook into the network stack.
-Network monitoring or logging tools.
-Other system monitoring software.
After I uninstalled some software to interfere, I can run the emulator successfully.
Hope this help.
Thanks
Open Hyper-V Manager.
Open Virtual Switch Manager on the right side like pictured below:
Remove all Virtual Switches that contain "Windows Phone Emulator Internal Switch" and "Microsoft Emulator NAT Switch" like pictured below:
On Visual Studio, Click on your emulator that you want to deploy your app on.

Connecting Windows Phone 8 Emulator (on VirtualBox) to Visual Studio (on host machine)

I have Visual Studio 2013 (running on the host machine - Windows 8.1 Single Language).
I was able to enable my hardware virtualization features and run the Windows Phone 8 emulator on a virtual machine (through Oracle VirtualBox).
I don't have Windows 8.1 Pro (and it costs money to upgrade), so I can't use Hyper-V.
So, I have the code running on my Visual Studio and an Emulator running on a VM in Oracle VirtualBox. Now, I want these two to connect so that the app can be seen on my emulator. But I can't find a way to do that. Can I do something (maybe connect the two on the same network and use the emulator as a device or something like that) in order to make this happen?
Thanks
You could try using the Application Deployment Tool.
Usually found here:
D:\Program Files\Microsoft SDKs\Windows Phone\v7.0\Tools\XAP Deployment\XapDeploy.exe
You would have to get your compiled XAP to the virtual machine, using a shared folder between host and virtual machine for example.
Then select the device (Emulator) and the XAP and hit deploy.
I hope this helps!

Unable to run windows phone 8 emulator

I am running visual studio 2013 with windows 8.1 pro , I have enabled hyper-v from bios and enable it from program and features also. Firstly when I run my project it gives message like this
after that when I clicked retry it gives this deployment error
Need help in solving this.
Try running visual studio 2013 as an administrator this sometimes helps fix the permission issue running the emulator the first time.
After checking in that textbox where you have to add your lap to the Hyper-V Administrators, just try restarting the machine.
Have a look over here
You should try out these too
1.Run VS 2012 as administrator.
2.Open Hyper-V Manager and check the Windows Phone Emulator Internal Switch from Virtual Switch Manager. Remove the emulator switch and start a new instance of the emulator.
3.If your host computer has a WLAN connection, you should check whether it is running fine or not.
4.If your host computer is in a dedicated network, you can do a wired tethering and create a peer to peer network with another computer. Enable unrestricted internet in one of the systems, share the connection with the other computer, the emulator running in that, will also get the shared internet.

Deploy to Windows Phone 8 device from VM (RDP/RemoteFX)

I would like to move my WP8 development to a virtual machine. I know that the emulator won't run on top of a VM, so I'm wondering if I can deploy & debug directly to the device (via regular old USB). RemoteFX allegedly performs "USB redirection" which I assume is supposed to magically connect the phone up to my RDP session, and thus enable deployment. I was able to establish a RemoteFX connection with my VM, however when I try to deploy to my phone Visual Studio (within the VM) claims it cannot find a phone. (yes, I verified my phone is connected to my local machine)
tl;dr Does anyone know how to deploy to a physical Windows Phone from within a VM?
I see that this is the first link that appears in google search for this problem. I am going to present you the solution from what it is there is Nokia development articles. Please go through link.
The only important thing is to enable Intel VT-x option.