|Determine User Active Directory Groups from Local Machine off Network|
From the top:
My current project requires that I validate a user against Active
Directory groups. The catch is, the computer may not always be
connected to the domain but users may still need to run the tool.
At this point, you must therefore accept that any enforced security is able
to be bypassed by an attacker since it is entirely enforced on the client.
Not exactly part of the solution, but keep it in mind.
I understand that I can't query Active Directory while I'm not
connected, instead I'm trying to query the Machine SAM (MSAM).
The Security Accounts Manager only stores the local accounts
(MACHINENAMEAdministrator and others). It will not have domain user
credentials. You are thinking of the LSA cache, which remembers the last N
domain logins's credentials (where
|Does windows azure virtual machine logs out when disconnecting|
No, your Virtual Machines don't shut down when you disconnect from rdp/ssh.
However: There's always the possibility that your machine will restart,
even if infrequently (e.g. failed hardware, Host OS maintenance, etc.).
So... your essential programs should be set up to auto-start at boot time,
without requiring you to rdp/ssh in to start them up again.
|Windows Azure Active Directory Authentication - Visual Studio 2012 tools|
I think this might be the download URL you're looking for -
|Using Active Directory to login using a local user|
This is all that the Websecurity.Login method does:
public static bool Login(string userName, string password, bool
persistCookie = false)
bool flag = Membership.ValidateUser(userName, password);
You can write your own method that authenticates against AD and then looks
up the user name and the does sets the auth cookie something like:
public static bool MyLogin(string userName, string password, bool
persistCookie = false)
bool flag = CheckADUser(userName, password);
string mappedUsername = GetMappedUser(userName);
if(mappedUsername != "")
|Open directory from server using Java on local machine|
If you access the Java application like this: 10.0.0.1JavaApp.jar you are
still running the application from the local machine.
In order for it to be run on the server you would have a Java process
running on that server and then on the local machine you would have another
Java application that is the client for the server application.
|Connect internally to a Virtual Machine with SQL Server from Web Sites using Windows Azure|
The only way to internally connect that different resources is via Azure
Virtual Network. And as of today, Web Sites does not support Virtual
Network. Cloud Services however do support Virtual Network, as do Virtual
Machines. So if you move your deployment to Cloud Service (Web Role) you
will be able to connect it to the VM via internal IP Address and never have
to go "out".
My believe (and my speculation) that we might eventually see in the future
Web Sites being able to connect to Azure Virtual Network, at least for the
|Cannot launch IE7 using Selenium grid on a Virtual Machine|
Ok, I found a workaround to the issue.
It seems that the issue only occurs when the virtual machine is on the same
machine as the remote machine. After launching a virtual machine
independently from the remote machine, it worked.
|Access windows server information( like System.IO) from a local machine|
You probably want to use Windows Management Instrumentation (WMI). In .NET,
you access it through classes in the System.Management namespace.
You can also connect to remote machine event logs using the
System.Diagnostics.EventLog class. There are some good examples in the
You might also get some relevant information using performance counters.
See PerformanceCounter and related classes.
|Query Active Directory in Java using a logged on user on windows|
I'm going off of this guy's post. You can go with the commercial Jespa
library, which uses NTLMv2. Or you can go with the open source com4j
project that uses ADSI, created by Kohsuke Kawaguchi.
|Queries to connect Azure Websites with SQL server in Windows Azure Virtual Machine|
1) You can simply backup your databases and restore them onto the VM's SQL
4) Telerik controls are client controls and should have no bearing on your
server-side deployment platform
5) OS space on the VM is part of the price of the VM's hourly fee
6) What are you looking to do with virtual network?
|Sorcery Gem: @user.activate! is raising a "ActiveRecord::RecordNotSaved" exception in staging server but not in my local machine|
I had same problem. I'm just assuming but you probably forgot to to edit
the mailer and add a 'user' parameter to each action.
|Printer works from VS 2010 on virtual machine, but does not work correct from VS 2012, why?|
I found the solution to my problem.
I am slightly embarassed by the solution.
The solution was to adjust the size of the label template, which was done
in "Advanced" under printer settings. After having done that I could enjoy
my labels printed out in full size :) I never found out why there was a
difference in the printer settings from the host machine to the virtual
machine. I thought the settings would be the same. But never mind, now it
|Cannot access ubuntu server from other machines other than the machine which is hosting the virtual machine which is my ubuntu server|
First of all make sure in the setting of the virtual machine that it is in
Bridged Adaptor type connectivity.
Give a static ip to the virtual machine using
sudo ifconfig eth0 10.0.0.100 netmask 255.255.255.0
the above is an example. You got what I mean.
3.Third, Try pinging the virtual machine with the base machine running the
vbox to make sure they are connected.
4 . Now if everything is working fine from there then connect with this
virtual machine with other base machine using Remote Desktop Viewer or any
other similar application.
Specify, the ip-address of the vbox and username, password. It will be able
to connect with it now.
5 . If it still is not able to then try to check the firewall rules on both
the virtual box machine and the base machine
|Enable Remote Connections on Windows Server 2012 via AWS User Data Field|
I ended up doing the following:
Stop the instance, detach the root volume and attach it as another
partition on another Windows instance. Once attached, go to disk management
and set it online, mount the registry hive and make the proper changes.
Navigate to the following location in the registry
In the right pane, locate a REG_DWORD value named fDenyTSConnection.
Double-click on fDenyTSConnection and change the value data from 1 (Remote
Desktop disabled) to 0 (Remote Desktop enabled).
If the server was placed in drain mode, then locate a REG_DWORD value
named TSServerDrainMode and change the value data from 1 (Remote Desktop
disabled) to 0 (Remote Desktop enabled).
Unmount registry, set t
|How to solve could not create the virtual machine error of Java Virtual Machine Launcher?|
Edit your Catlina.bat so that your -Xmx settings are less than your
See Tomcat 7: How to set initial heap size correctly?
|Upload file from my virtual machine to another virtual machine using hadoop hdfs|
You might find webHDFS REST API useful. I have tried it to write content
from my local FS to the HDFS and it works fine. But being REST based it
should work fine from local FS of a remote machine as well, provided both
machines are connected.
|Unable to connect to local database in Visual Studio 2012 express For Web: (error 26)(C#)(SQL Server 2012)|
You're getting that error because the (localDB)v11.0 is already a user
instance of SQL Server. When you were using the SQLEXPRESS SQL Server
instance, well, it's not. So, just get rid of the User Instance=true on the
|Getting error while creating virtual directory throug visual studio 2012|
This has been posted quite a while back and I guess that you have already
found your solution...But for other people out there:
I was trying to create a virtual directory in VS2012 for my web service
and I was getting the same error as you: "unable to create the virtual
directory. the url is http://localhost:80already mapped to a different
folder on an iis"
So I check the IIS to make sure that I hadn't already configured one with
the name "mywebservice", and it wasn't configured, still I was getting the
Solution: I created "mywebservice" virtual directory in the IIS, which was
successful, then deleted it, and created it again, this time via VS2012 and
voila! all happy now
|Windows phone- Virtual machine issue|
Which version of WP are you developing for? WP 8 requires Hyper-V to be
enabled and installed. You can enable Hyper - V in you BIOS, if your
processor supports it. Once you enable it in BIOS, you also have to enable
it in Programs and Settings in the control panel.
Here's an MSDN reference on the topic of Hyper-V and WP8:
|Window Server 2012 & SQL Server 2012 within single VM on Windows Azure|
That should be possible and AFAIK there isn't any restriction for SQL
Server licence to be used in Azure, however take a look at License Mobility
through Software Assurance on Windows Azure.
If your licence is from MSDN, then it now absolutely legal use it on Azure.
If you are unsure about the licence problem and other litigation, you may
spin up a VM with SQL Server 2012 pre-installed and this will solve your
licence trouble (but right now only available with the combo of SQL Server
2012 on Windows Server 2008 R2).
PS / Personal Experience : SQL Server + some server component isn't
performing well for a Medium instance. Either split the server roles or
consider choosing a bigger instance size like xLarge or A6.
|Windows Azure Virtual Machine Reverse DNS PTR Solution?|
I think the SendGrid can help you achieve what you are looking for. Here
are the details about it:
here is the documentation for the technicalities:
I hope this helps you, let me know if you need anything else.
|Is it possible to use a virtual machine created for a particualr OS in ubuntu in windows as well?|
Hurry... your question will be frozen soon by the mods here
:) All the best buddy.
Detailed answer here;
|Windows Azure: renew Virtual machine from trial|
If your trial goes off and you want to continue in using the Windows Azure,
you have to start pay for it. This means, buy on of them subscriptions.
After purchasing a subscription, in my case it was pay-as-you-go
subscription, you have to (!!!) contact support by creating Support ticket
and ask for migrating your servers from Trial subscription to your new
Fortunately, the support works pretty fast and this whole transition had
taken only about two hours. But still, this is silly solution from MS.
|Stress testing windows azure virtual machine|
I little bit offtopic, but have you consider using azure media services? it
supports on demand and live streaming plus a set of options to use 3d party
encoders, encryption, drm protection.
|Windows 7 on Virtualbox virtual machine: is it OpenGL 1.x compatible?|
Yes, your guest VM will be able to run OpenGL 1.x and newer.
Install the VirtualBox Guest Additions via the "Devices" menu in the
virtual machine's menu bar
VirtualBox has a handy menu item named "Install guest additions", which
mounts the Guest Additions ISO file inside your virtual machine
This will enable 3D hardware acceleration in your guest machine (OpenGL and
VirtualBox states that
because 3D support is still experimental at this time, it is disabled by
default and must be manually enabled in the VM settings
|Java OutOfMemoryError in Windows Azure Virtual Machine|
The GC throws this exception when too much time is spent in garbage
collection without collecting anything. I believe the default settings are
98% of CPU time being spent on GC with only 2% of heap being recovered.
This is to prevent applications from running for an extended period of time
while making no progress because the heap is too small.
You can turn this off with the command line option -XX:-UseGCOverheadLimit
|windows azure rest api - creating a virtual machine|
What you are seeing is a little magic behind the scenes of the portal.
When you deploy a Virtual Machine it does indeed end up in a Cloud Service
container. This was recently changed to be more obvious in the portal as
well, previously they were hiding this from you. When people would delete
the VM or add other VMs to the same group (previously called something like
"attach to") the cloud service would show up in the portal. People got
confused on what this was and it just caused more questions than it was
In the portal now you are prompted for a cloud service. If you do the
quick create when it asks for the DNS name (and shows the .cloudapp.net
next to it) that's the Cloud Service name you are providing. When you do
the create via the Gallery it is even more obvious on ste
|Azure windows virtual machine load balance|
You need both the virtual machines to be under the same cloud service. Only
then you get the option to load balance them. There is no way add existing
VMs to the same network. there are operations in the Service management API
(usable through powershell) to create a new VM. You can use that to create
a fresh VM from your existing image and connect it to the same service as
your first VM. Then you'llhave the necessary options enabled for load
|VC++2012 Remote Debugging on a x86 Windows Xp Machine|
Well, you can do it with Debugging Tools for Windows, for which support has
been added in Visual Studio 2012. You should also have Windows DDK 8.0
installed, after VS2012 is. Then, you should install "X86 Debuggers And
Tools-x86_en-us.msi" package on the target (XP) machine, configure
firewalls properly (better disable completely) and attach using new
"Windows User-Mode Transport" (WinDDK adds it). Now you can do usual
However, there's one rotten apple in a bunch - Windows Debugger works
W-A-A-Y slow, stepping from line to line with 5 to 10 seconds delays... For
me, it's unacceptable, so I'm still debugging in VS2010 with all its bugs
|SQL Server 2012 32-bit or 64-bit on 64-bit machine?|
There is no general advice which version to install. Visual Studio runs in
a 32bit process, but your project can target 64bit because it will be
debugged within another process.
The main question is: How much RAM do you think your database will need?
There aren't any drawbacks on installing 64bit software on 64bit machines,
but 32bit software will be executed on a compatibility layer (WoW64 -
windows on windows 64).
Using 32 or 64 bit software on old hardware makes no difference, either. As
long as the processor supports it!
|Ruby on rails application in Windows Azure Virtual Machine|
The problem is you haven't actually "deployed" anything. You just copied
your rails app to a VM and ran rails s.
A production rails applications is not deployed in this fashion.
Consider using either nginx with unicorn or apache/nginx with passenger.
|Replication between SQL Servers resides in Windows Azure Virtual Machine|
Create an alias in SQL Server Configuration Manager and give it the name
the replication component expects. The alias contains the cloupapp url and
Now reconnect using the simple alias. Just did this for my cloudapp.net VM.
|windows azure virtual machine hard disk backups|
Azure attached disks, just like the OS disk, is stored as a vhd, inside a
blob in Azure Storage. This is durable storage: triple-replicated within
the data center, and optionally geo-replicated to a neighboring data
That said: If you delete something, it's instantly deleted. No going back.
So... then the question is, how to deal with backups from an app-level
perspective. To that end:
You can make snapshots of the blob storing the vhd. A snapshot is basically
a linked list of all the pages in use. In the event you make changes, then
you start incurring additional storage, as additional page blobs are
allocated. The neat thing is: you can take a snapshot, then in the future,
copy the snapshot to its own vhd. Basically it's like rolling backups with
little space used, in the event
|.NET Web Project from local IIS, exclude virtual directory from publish|
If in IIS you click on the virtual Directory and click convert to
Visual Studio will no longer build or publish that virtuqal directory (now
You do not need to convert your web site project to a web application
project, or go through anything more complicated.
Of note: I was having trouble with the CFIDE virtual directory, as this
site is also using coldfusion for some other pre-built parts.
Converting CFIDE from a virtual directory to an application has had no
affect on Coldfusion, nor any files inside the native CFIDE directory.
|Windows Azure virtual machine is slow to access network when scaling|
The VM sizes each have their own bandwidth limitations.
| VM Size | Bandwidth |
| ------------- |:-------------:|
| Extra Small | 5 (Mbps) |
| Small | 100 (Mbps) |
| Medium | 200 (Mbps) |
| Large | 400 (Mbps) |
| Extra Large | 800 (Mbps) |
I suspect you always have one copy of your mounted VHD and have ~150
instances hitting it. Increasing the VM size of the VM hosting the VHD
would be a good test but an expensive solution. Longer term put the files
in blob storage. That means modifying your scripts to access RESTful
It might be easiest to create 2-3 drives on 2-3 different VMs and write a
script that ensures they have the same files. Your scripts could randomly
hit one of the 2-3 mounted VHDs to spread out the load.
|SQL Server 2012: Calculating total time elapsed for every unique record from a logs table|
I believe this will work:
SELECT Entity,Destination'Type',Time,SUM(TimeDiff) OVER (PARTITION BY
Entity, Destination ORDER BY Time)'Running Total'
FROM (SELECT Entity,
DATEDIFF(second,LAG([Time]) OVER (PARTITION BY Entity ORDER BY
ORDER BY TIME
Or if you just want the total time for a given Entity/Type combination:
SELECT Entity, Type, MAX(Running_Total)
FROM (SELECT Entity,Destination'Type',Time,SUM(TimeDiff) OVER (PARTITION BY
Entity, Destination ORDER BY Time)'Running_Total'
FROM (SELECT Entity,
DATEDIFF(second,LAG([Time]) OVER (PARTITION BY Entity ORDER BY
|How to connect to a MySQL server running on a Virtual Machine|
You problem is that (probably) your mysql is bind to 127.0.0.1 instead of
You should change bind in /etc/mysql/my.cnf to 0.0.0.0
bind-address = 0.0.0.0
And then restart mysql of course.
|Do I need to use Connection Retry for my SQL Server on Azure Virtual Machine|
When you use Windows Azure Virtual Machines and you take care of software
installed on it (inc. SQL Server whatever version), you have to proceed as
normally on a local ritualized environment. Meaning that you don't
necessarily have to implement retry logic.
|Azure DNS server keep connecting to virtual machine endpoints|
Late answer, but for the benefit of anyone arriving here from a search
engine, see answer from Craig Landis at this link:
In summary, there was a change recently so that when you create an endpoint
in the portal, it is automatically load balanced and regularly "probed" to
check if the endpoint is alive. At the time of writing, the portal will
still display the endpoint status as 'not load balanced'. You have to use
the Azure CLI tool or PowerShell to recreate the endpoint without load
balancing - it cannot be done from the portal.
It is the load balancer that tries to probe the endpoint every 15 seconds,
and can take the endpoint out of service if it doesn't
|Java Virtual Machine newbie Confusion: When is the virtual machine invoked while compiling java|
Yes, the .class file is JVM bytecode. The JVM (invoked by java foo for
foo.class) interprets (some JVMs JIT the bytecode into native machine code
at runtime) the bytecode.