Clone Active Directory Domain Services [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a Azure VM running Win server 2012 r2 datacenter. I have installed Active Directory Domain Services Role onto that VM. Now i want to Clone it with the same ADDS settings to create new VMs.
I tried Sysprep, but later i found out that sysprep doesnt support ADDS.
Is there any possible way ?
Thank You.

You can't. You have to install and promote each domain controller in your forest.
However, using powershell + Azure Custom Script VM Extension you can automate the process.
Custom Script extension for Windows allows you to run PowerShell
scripts on a remote VM, without logging into it. The scripts can be
run after provisioning the VM or any time during the lifecycle of the
VM without requiring to open any additional ports on the VM. The most
common use case for Custom Script Extension include running,
installing, and configuring additional software on the VM after it's
provisioned.
More info:
Custom Script extension for Windows virtual machines
Step-by-Step: Auto-join a VM to ADDS in the Azure Cloud

Related

Check if Windows virtual machine is in use [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 months ago.
Improve this question
In my organization we are using virtual machines that are running UiPath RPA processes. In UiPath Orchestrator it is visible in case a process is running via Orchestrator on the virtual machine.
It is also possible to log into the virtual machines manually, via Remote Desktop Connection. The issue now is that sometimes when an RPA developer is manually logged in to the virtual machine, another user is starting a process from Orchestrator that is using the same machine. This will result in the person manually logged in to the machine being thrown out.
I am trying to come up with a way to detect if a user is already logged in to the machine, and somehow check this before any process is started.
I have experimented and created two batch files that I scheduled via Windows Task Scheduler. The batches create a file in a network drive when a user is unlocking the remote machine, and delete the file when the remote machine is locked.
My issue now is that I would somehow need to check if this file exists before starting any process via Orchestrator. So it cannot be done via UiPath, because this would immediately connect to the machine and throw out the other user.
Anyone who has had some similar problem and solved it?
Try a simple approach
Check who are already logged in
Query user /Server:MachineName
This will provide a list of users connected to that Host
Now you / Bot, can send out a message ( Msg ) to the respective user to save his work and logout
Both ( query & msg ) are available by default on Windows OS
Code your Bot so this action is performed prior you start your automation
Links
learn.microsoft.com/en-us/windows-server/administration/windows-commands/query-user
learn.microsoft.com/en-us/windows-server/administration/windows-commands/msg

Why does Visual Studio need to run as administrator to publish to local IIS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
Why does Visual Studio require administrative privileges to publish to local IIS? Does it need the permissions to bind a port, or is it because it copies files to a directory owned by a different user?
I'm talking about the "Please launch Visual Studio under administrator mode to perform this deployment action" message.
Visual Studio uses IIS APIs (varied based on operating systems) to perform deployment tasks. Such APIs are designed to be called only by administrators, so VS is forced to ask you for that permission in turn. So the things you mentioned (bindings, file system access) are all related, but only part of the whole image.
I am cloning Microsoft.Web.Administration (one of the IIS APIs), so I can fully understand why they desire administrator permissions initially, which does make implementation simple enough.

Accessing ruby application on Windows Azure Virtual Machine [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install project management application called Redmine on Windows Azure Virtual Machine and access it from internet. Redmine is based on Ruby and is using a database so I also had to install them too. Actually I managed to install everything and when I connect to virtual machine by Remote Desktop I can access Redmine there by typing localhost/redmine in browser. The question is what should I do now to access it from outside? (for example home pc or anybody in internet). My virtual machine has got an address like myapp.cloudapp.com but there is no way I can access redmine by typing myapp.cloudapp.com/redmine or something like this.
Well, I can't exactly speak for Azure as I haven't used it, but there should be a way to forward port 80 through to your VM. You should also make sure IIS is setup to listen on 0.0.0.0:80 and not 127.0.0.1:80
Edit: Usually port forwarding is setup in the control panel for a cloud provider, so I would start by checking whatever interface Azure gives you to configure your VM.

Cannot remote desktop into Windows Azure VM [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am running a trial of Windows Azure and setup a simple Windows Virtual Machine. However, I do not seem to be able to use the Windows Remote Desktop connection to remote into the machine. What am I doing wrong? At first sight it does not seem to like my userID and password. But then I also cannot ping the VM address. I do not want to go through VS or any other tool, I like to do a simple remote desktop connection through the Windows RMD tool.
Can you check that port 3389 is open in your VM? This port is normally used by remote desktop? You can check this from Virtual machine->Endpoint section within new azure preview portal. if there is no port defined, you will have to create new one.
It could be that the port is blocked, Azure VMs default to port 52137, in your endpoint settings alter this to the regular port 3389 - this worked for me.
Freddy, would u please confirm first if your Windows Azure Virtual Machine is running or not and this you can confirm by looking at Preview Portal. I have seen some cases when the VM does not start first time and you would need to restart it first time.
So if VM is not running then please start it from the portal directly or even if it shows "Running" start please restart it again.
There are a few troubleshooting steps described below so please follow them:
http://social.msdn.microsoft.com/Forums/en-US/WAVirtualMachinesforWindows/thread/9c88a364-c3eb-41aa-a6b0-3ceae00491c2
If none of the above steps resolve your problem go ahead and report this problem to same forum and you will have direct assistance from Windows Azure Virtual Machine team.
RDP to a new VM with the RDP "endpoint" setup does not work by default for security reasons.
You need to get the RDP certificate or the .RDP file from azure.
click on a running VM and click "Connect" in the control panel at the bottom, this will download the .RDP file that contains the certificate, enter user name and password and away you go.

Executing administration tasks on linux from windows server 2008 [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
What toolkits are out there that will allow me to do the following things from a windows 2008 server to a linux server? In other words I have a windows 2008 server that performs admin tasks using powershell against other windows servers on the domain using WMI and UNC shares. Soon I will be required to do the same automated tasks on linux based servers. I want to have a single windows based server that can perform these admin tasks against both linux and windows using one technology, or two if I must, but definitely only want to have to maintain a single windows based server for this.
Access remote hard drive shares e.g. Currently use c$, d$, ... hidden share on windows based systems
Execute commands remotely. e.g. Currently use WMI remote execution on windows based systems
Start, pause, stop Tomcat/Apache web servers.
Instead of installing cygwin and all its dependencies, you can use just PLink.exe with this script : Invoke-SSH (http://www.zerrouki.com/invoke-ssh/)
Take a look at Cfengine. It works nicely for administering Unix hosts, and also claims to support Windows. You might need some basic Cygwin tools installed, however.

Resources