Test windows authentication in Local Machine - asp.net-membership

How could i test this windows authentication functionality in local machine as i dont have intranet,and systems under domain.

to take a stab in the dark I'm assuming you have IIS running on your machine hosting a site that is configured to requires windows authentication?
I think the easiest option is to try and connect to the IIS machine from a second machine and see if you can login with the credentials you use on the server. If you don't have a second machine then you could download VMWare Player and an Ubuntu Appliance (or grab Virtual-Box and build a VM of whatever you like) and use that to act as your second machine.

Related

Can Vagrant be used with Windows Hyper-V Server?

Is it possible to tell Vagrant to use a Windows Hyper-V Server as a host? I am currently using Vagrant for developing locally, which uses my development machine as the host.
The documentation for Vagrant mentions networking and ssh; however, this is almost always in the context of networking from the guest machine out. I am wondering how to run Vagrant on my desktop machine, and provision instances on the Windows Hyper-V Server.
Follow this step-by-step guide...
https://dogcomp.medium.com/speed-up-laravel-8-homestead-with-hyper-v-step-by-step-guide-99505199d003
The vagrant box provisioned is exposed in the local LAN subnet, as long as your firewall configured properly, you should be able to access via SSH/HTTP. However, you need to run vagrant command on the server.

Can I lock hyper-v virtual machine so that users won't be able to close it or minimize it

I'm working on a project for a client to install HMI application on the client servers. The client has requested to install the application inside Hyper-v virtual machine so that in case the operating system crashes then it will be easy to restore it back through the virtual machine drive back-up.
However, the customer is asking me to lock the virtual machine so that the machine's operator should not be able to go to the host operating system and only work through the virtual machine alone.
If it is not possible with Hyper-v options, then is there any free 3rd party tool which can do the same job.
I will really appreciate any advice on this issue.
Ok I wasn't able to prevent computer users from closing the virtual machine application. However I did manage to mitigate the effect of closing the virtual machine.
First thing I did was setting up Remote Desktop to connect the host to the VM remotely through hyper-v virtual switch. Then I installed Allen Bradley DeskLock tool (It is a free tool that comes together with their FTView CD). Through DeskLock I have prevented the user from doing anything over the host (Locked the desktop) and I provided him with only one button to run Remote Desktop and open the VM whenever he closes it by mistake.
I don't think that this answers the question completely, but it was the only solution I found without touching the computer Registry

Docker Container for Windows - desktop app

If I create a container with windows image on it, is it possible to use a remote connection to actually see the desktop and , for example, play minesweeper?
My use case is this:
I have hundreds of users. Each user need to create their our infrastructure consisting in about 6 machines linked together. After creating, the user will open some desktop gui apps on each one using a remote desktop connection.
No, this isn't something you will be able to do.
There are currently two Windows container images, microsoft/windowsservercore and microsoft/nanoserver
nanoserver
This blog post about TP4 (one of the earlier releases) says
The only option available when logging into console of a virtual machine running Nano Server or connecting a crash cart to a physical Nano Server is this very plain emergency console
This section on managing Nano server also states
Nano Server is managed remotely. There is no local logon capability at all, nor does it support Terminal Services.
There is also this article, admittedly not from Microsoft, about Windows Nano server
Nano Server strips back the operating system further still, dropping things like the GUI stack, 32-bit Win32 support, local logins, and remote desktop support.
Nano Server is designed for two kinds of workload: cloud apps built on runtimes such as .NET, Java, Node.js, or Python, and cloud infrastructure, such as hosting Hyper-V virtual machines.
servercore
Docker blog has a pretty interesting entry
Introducing Docker for Windows Server 2016. This part addresses the question of GUI apps
The Windows Server Core image comes with a mostly complete userland with the processes and DLLs found on a standard Windows Server Core install. With the exception of GUI apps and apps requiring Windows Remote Desktop, most apps that run on Windows Server can be dockerized to run in an image based on microsoft/windowsservercore with minimal effort.
If you wanted to set up that kind of an environment, one option is to use something like Vagrant to orchestrate starting and provisioning regular windows VMs. Though 6 windows VMs will not be easy on memory.

How to access Oracle VM virtualmachine's database from local computer in Visual Studio

I created database on Oracle VM virtualmachine and I need to use it from my local computer for my project, which I develop on Visual studio. How could I do that?
The problem is unrelated to VS,
you need to make sure the network device you installed is reachable from the outer world, and that there is a route from your machine to the VM ip device.
What I write here is the simplest configuration in the case you have a home network...
withing Oracle virtualBox -> choose the VM ->(right click) Settings -> Network.
choose "Bridged Adapter" and select the physical card on your computer.
within the VM make sure the IP address is being taken from DHCP (How to do it depends on the Linux distribution you have).
After doing so - restart the network device within the VM, and make sure both of the machines, the windows and the linux, have the same IP segment, and that ping from the windows can reach the linux VM with Oracle.
If you do not have a home network -
The VM added another networking device on your windows machine (if it is hosted on the same machine), which you need to route the trafic to the VM IP to.
If it is not on the same machine - you need to make sure that the router both the machines are connected to knows about the path to the database.
After the networking issue was resolved (and you can practically ping from one machine to the other assuming the firewall allows it),
make sure the listener on the DB machine listens to the right address.
this link will help: http://docs.oracle.com/cd/B28359_01/network.111/b28317/listener.htm
Than you should be done.
Let me know if this wasn't the problem, and your issue is configuring VS - since this is a different issue, which will depend on if your using ODAC or ODT...
Also let me know if you don't know how to check/configure any of the things I wrote above - I didn't write it all since it is long and complicated to answwer all of it in one post...

How to use the IIS server in a VM on Mac host?

I need to access my http://localhost/ (in IIS 6 on VM) from the MAC Host (Safari).
I am using NAT (or can use Bridged) network connection to the Guest, but not sure how to identify IP addresses, etc. A novice when it comes to networking ;-)
Thanks,
Geoff
A simple solution if you want a consistent hostname is to install Bonjour for Windows in the VM with bridged networking and then use http://computername.local in Safari.
It's possible to forward ports from a NATed VM too or ensure a consistent IP address if you want; some instructions are here.
In Safari, you should be able to type in the IP address of your VM and be able to access IIS that way. Firewall settings permitting of course, but I assume you've set that up already.
If it doesn't work, could you please post more details about your current setup (VM software being used to run the guest, OS X version, Windows version) and I'm sure we'll be able to troubleshoot further.
Just try to off Windows firewall on your virtual machine. This works for me in NAT mode.
Also, as mantioned before, is nice to have Bonjour for Windows installed to have more useful URL.

Resources