windows-server-2008-r2

Disable IE security on Windows Server via PowerShell

房东的猫 提交于 2019-11-30 02:58:10
it happens all the time, I spin up a vm with windows server and I can't access the internet because of IE security. Does anyone have a straight-forward PowerShell script for disabling IE security? function Disable-InternetExplorerESC { $AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" $UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}" Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0 Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0 Stop-Process -Name

Mongo error on I control hotfix

元气小坏坏 提交于 2019-11-29 21:03:40
I have tried to start mongod.exe from my 2008 R2 server and im getting this error: I CONTROL Hotfix kb2731284 or a later update is not installed, will zero-out files. I didnt find any update or what is I CONTROL, someone have encounter with the problem? Thank you. Well, I just faced the same issue. I installed the fix, but saw nothing but same error. So that's how I got over it: just create a folder structure in your C catalog like this one: C:\data\db. So it worked for me perfectly. I use Windows 7 x64. I had to run the command in following format & it worked for me: C:\mongodb\bin\mongod.exe

Cannot Read Configuration File Because it Exceeds the Maximum File Size

点点圈 提交于 2019-11-29 19:57:30
问题 Cannot read configuration file because it exceeds the maximum file size. I'm getting above error because my rewritemap.config file size is more than 250KB (Windows 2008 R2 SP1 server with IIS 7.5 回答1: If you have access to registry and if you really need file greater than 250kb, you can change value in Registry Key. For an x32 system: Create the Key: HKLM\Software\Microsoft\InetStp\Configuration\ Add the DWORD value: MaxWebConfigFileSizeInKB For an x64 system: Create the Key: HKLM\Software

Calling dism.exe from System.Diagnostics.Process Fails

馋奶兔 提交于 2019-11-29 09:44:41
For enabling Microsoft-Hyper-V and Microsoft-Hyper-V-Management in Windows 2008 R2 Server(64bit), I'm calling dism.exe as a process. The command I've used is Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V Dism.exe /online /Get-FeatureInfo /FeatureName:Microsoft-Hyper-V-Management-Clients This works fine when I execute this from the command line but it fails when I try to execute it through my code. I've tried the 64bit version of Dism.exe under the C:\Windows\SysWoW64 folder but it fails too. Here is the error message I get, You cannot service a running 64-bit operating

How to register a 32-bit .DLL COM+ application on Windows 2008 R2

╄→尐↘猪︶ㄣ 提交于 2019-11-29 07:47:35
I have read through all the similar questions but am not finding my exact problem answered. I have tried all the similar recommendations. I am forced to migrate from a Windows Server 2003 environment to a Windows Server 2008 R2 environment running IIS 7.5. I have a web application that calls COM objects in a 32-bit DLL. The COM object was created from VB6. Here is what I have done to date: I have enabled 32-bit on my IIS Application Pool. I have registered the .DLL and it's dependent .DLL using C:/windows/syswow64/regsvr32.exe -- the registration is successful. I have verified that the .DLL

ldap_mod_replace() [function.ldap-mod-replace]: Modify: Server is unwilling to perform

安稳与你 提交于 2019-11-29 07:19:33
Getting an error: Server is unwilling to perform while changing unicodePwd in AD through PHP. However, I'm able to search, add, remove and modify any attributes of the users. Using Administrator account to bind and admin has full rights to change passwords of any users. Here's the code I'm using: <?php $dn = "CN=Vishal Makwana,OU=Address Book,DC=example,DC=com"; $ad = ldap_connect("ldap://example.com") or die("Couldn't connect to AD!"); ldap_set_option($ad, LDAP_OPT_PROTOCOL_VERSION, 3); $bd = ldap_bind($ad,"admin@example.com","admin1"); if($bd) { echo "AD bind successfully"; } else { echo

How to detect antivirus on Windows Server 2008 in C#?

只谈情不闲聊 提交于 2019-11-29 06:14:58
问题 I have seen code samples similar to the following numerous times in my search for an answer: using System; using System.Text; using System.Management; namespace ConsoleApplication1 { class Program { public static bool AntivirusInstalled() { string wmipathstr = @"\\" + Environment.MachineName + @"\root\SecurityCenter"; try { ManagementObjectSearcher searcher = new ManagementObjectSearcher(wmipathstr, "SELECT * FROM AntivirusProduct"); ManagementObjectCollection instances = searcher.Get();

The configuration section 'system.servicemodel' cannot be read because it is missing a section declaration

一笑奈何 提交于 2019-11-29 02:51:37
I have somewhat of a problem. My old webserver (windows 2003) have been replaced, with a 2008 R2. I have been given an admin account on it, and can do whatever I want, but I am no expert on this area. I configured the roles to have application developement and Web server (iis7). BUT, my website runs .NET4, and the role only installed 3.5. So I have attempted to install .NET4 manually, on the server. My problem is, my website will not work on it, due to the System.ServiceModel section in my web.config. I have made sure it runs in .NET4 application pool. I assume this is a WCF problem, but I can

Disable IE security on Windows Server via PowerShell

柔情痞子 提交于 2019-11-28 23:59:38
问题 it happens all the time, I spin up a vm with windows server and I can't access the internet because of IE security. Does anyone have a straight-forward PowerShell script for disabling IE security? 回答1: function Disable-InternetExplorerESC { $AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" $UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}" Set-ItemProperty -Path $AdminKey

Mongo error on I control hotfix

徘徊边缘 提交于 2019-11-28 16:43:54
问题 I have tried to start mongod.exe from my 2008 R2 server and im getting this error: I CONTROL Hotfix kb2731284 or a later update is not installed, will zero-out files. I didnt find any update or what is I CONTROL, someone have encounter with the problem? Thank you. 回答1: Well, I just faced the same issue. I installed the fix, but saw nothing but same error. So that's how I got over it: just create a folder structure in your C catalog like this one: C:\data\db. So it worked for me perfectly. I