windows-server-2012

How to change & verify hostname in windows server 2012 (AWS EC2)

随声附和 提交于 2019-12-13 19:21:06
问题 I am using Windows Server 2012-R2 (amazon ec2) machine. and I want to change and verify hostname in it. I checked on net and found hostname command. But when I run hostname or hostname -i command I get following error.. sethostname: Use the Network Control Panel Applet to set hostname. hostname -s is not supported. I further googled this problem and apparently this command is not usable on windows 2012-r2 servers. Is there any alternative or workaround command that can do the job for me?? 回答1

socket.io, webrtc, nodejs video chat app getting errors over https: ERR_SSL_PROTOCOL_ERROR, 404 (Not Found), and ERR_CONNECTION_TIMED_OUT

こ雲淡風輕ζ 提交于 2019-12-13 07:21:32
问题 I have put together a video chat app using socket.io, webrtc, nodejs from this online tutorial from github but now I am getting errors when converting it to be used over https: Request URL:https://telemed.caduceususa.com/socket.io/?EIO=3&transport=polling&t=1479396416422-0 Request Method:GET Status Code:404 Not Found Remote Address:10.9.2.169:443 Other errors I have gotten in this process are as follows: When I try to declare a different PORT I get - ERR_SSL_PROTOCOL_ERROR, When I try to

Assigning fixed drive letters to USB Devices on Windows Server (2012)

我是研究僧i 提交于 2019-12-13 05:19:32
问题 Hello fellow Stackoverflowers :) I am looking for ways to assign a fixed Driveletter to USB Drives on Windows Server 2012 (Foundation). The Scenario: One of my smaller customers has 2 USB Drives for his serverbackup, which are swapped every day to have an offsite backup. Currently they are manually reassigning the Driveletters if there is a mismatch. I already have a plan to realize this but wanted to ask for advice before implementing it since i am not sure this is the best possible solution

Re-enable Remote Desktop Windows Firewall Rule on Windows Azure

时光怂恿深爱的人放手 提交于 2019-12-13 05:15:38
问题 I have disabled the remote desktop firewall rule in a Windows Azure virtual machine.As you would expect, I can no longer remote desktop in to the server. Does anyone know if it is possible to re-enable the Remote Desktop Windows firewall rule? What I have tried As a long shot, I have downloaded the Windows Azure CLI but can't see anything in there that would do it but have not found anything. I have also tried to execute the following command against the MSSQL server: EXEC xp_cmdshell 'netsh

Is it possible to join a local windows machine (on premises) to a Windows Server VM that is hosted on Azure Cloud?

徘徊边缘 提交于 2019-12-13 03:58:13
问题 I am setting up a Windows Server VM on Azure cloud and configure Active Directory Domain Services and Group Policy Objects. I am trying to join a local computer (on premise) to that Server and to apply the group policy that I configured on Windows Server VM. Would this be possible, or do I really need a on premises active directory server to join a local computer ? 回答1: It's possible, you can deploy ADDS server role, join domains and many other things on Azure as what you can do on-premise.

SQL Server login failed in Windows Server 2012

試著忘記壹切 提交于 2019-12-13 03:46:54
问题 I have a problem to login to SQL Server 2014 Express edition using a SQL Server user. I have this problem in Windows Server 2012. In normal Windows machine I can create user and login. I changed the authentication mode to mix and did the all thing in Internet but still I got login error. Error Number: 18456 Severity: 14 State: 1 Line Number: 65536 If anyone can please help me. 回答1: How are you trying to connect? Is there any connection string? And Do you check connectting with udl file. For

How to use environment variable with IIS user

半世苍凉 提交于 2019-12-13 00:51:23
问题 I have a WCF service that runs a .bat file. It works on my local system, but I have a problem with running it on the server (Windows server 2012 r2). I've defined the ANT_HOME variable to server's environment variables and I've added %ANT_HOME%\bin to Path variable. When I write " ant " to CMD on the server it works! But when I call the wcf service from somewhere, it doesn't work. I found the following error in the log files: 'ant' is not recognized as an internal or external command,

Running Powershell Start-Process With -Credential makes script hang (Windows Server 2012)

女生的网名这么多〃 提交于 2019-12-12 04:37:04
问题 I have come across a rare occurrence as this cannot be replicated on my own machine however on one of our Windows Server 2012 instances it occurs. The script I invoke looks like this $arg="D:\Scripts\test.ps1" $securePassword = ConvertTo-SecureString $password -AsPlainText -Force $credential = New-Object System.Management.Automation.PSCredential $username, $securePassword Start-Process -FilePath powershell.exe -Credential $Credential -ArgumentList $arg This piece of code just hangs on the

Cookie only sets in IE and not firefox/chrome

橙三吉。 提交于 2019-12-12 03:46:03
问题 I have an ASP.NET 2.0 web application. Cookies worked fine on all browsers on windows server 2008 for several years. We upgraded to a new server with windows server 2012(IIS8), the first day during testing cookies were not being set in firefox so we could not login(not sure about chrome). Next day, with no changes, it seemed to all work OK. Fast forward another month or so, firefox and chrome will not set the cookies (looking in chrome dev tools and firebug) but its still working in IE and I

Overflow Errors in 64-bit Windows Server 2012 after Upgrade to .NET Framework?

我怕爱的太早我们不能终老 提交于 2019-12-12 01:52:22
问题 Our solution was recently upgraded from .NET Framework v3.5 to v4.5.2 and as a result we have had some overflow errors running on Windows Server 2012 64-bit machines. These overflow errors seem to be coming from any instance where we call this function from the Windows API: [DllImport("user32.dll", CharSet=CharSet.Auto)] public static extern IntPtr SendMessage(IntPtr hWnd, int msg, int wParam, IntPtr lParam); The overflow was happening because for lParam in some instances, for whatever reason