Archive for category Windows Server
Exchange 2007 Recreate OWA folders
Posted by Sheen in Windows Server on June 18, 2009
If you face an issue where OWA in Exchange 2007 stops working, there is a pretty cool powershell command you can run to recreate the OWA virtual directory. The following commands will get you going:
This command will list all the current virtual directories.
Get-OwaVirtualDirectory
This command will delete the “owa” virtual directory under the Default Web Site.
Remove-OwaVirtualDirectory -identity "owa (Default Web Site)"
This command will re-create the “owa” virtual directory under the Default Web Site.
New-OWAVirtualDirectory -OWAVersion "Exchange2007" -Name "owa (Default Web Site)"
When you run this command, if you get an error as follows, it is possible that IIS is set to work in the 32 bit mode and not the required 64 bit mode.
New-OwaVirtualDirectory : An error occurred while creating the IIS virtual directory ‘IIS://mailserver.somewhere.com/W3SVC/1/ROOT/owa’ on ‘mailserver’.
At line:1 char:24
+ New-OWAVirtualDirectory <<<< -OWAVersion "Exchange2007" -Name "owa" -Website "Default Web Site"
To make IIS work in the 64 bit mode, you need to run the following command:
cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 0
Just in case you do not have the adsutil.vbs script in your adminscripts folder, you can download it from here.
Drop me a line to let me know if this post has helped you!
Diskpart.exe Warning when expanding drive
Posted by Sheen in Windows Server on May 19, 2009
Recently when using diskpart.exe to expand a volume on a Windows Server 2000 SP4 machine, we got a warning "Deleting the primary partition has modified the partition number of the partition that contains your Windows 2000 system files. The old partition number was 2; the new partition number is 1."
We changed the boot.ini file from:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINNT="Microsoft Windows 2000 Server" /fastdetect
to:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Microsoft Windows 2000 Server" /fastdetect
On rebooting the server, the server refused to boot throwing an NT Kernel not found error.
How to fix it:
Get list of machines by OS type from Active Directory
Posted by Sheen in Windows Server on May 18, 2009
Here is an easy way of getting a list of computers that have a particular OS type from Active Directory using DSQuery.
dsquery * domainroot -filter “(&(objectCategory=computer)(operatingSystem=Windows XP*))”
The command above would give you a list of all computers that have a Windows XP operating system. For Windows Servers, change the command as follows:
dsquery * domainroot -filter “(&(objectCategory=computer)(operatingSystem=Windows Server*))”
The output of the commands above would look something like this:
samid
server1$
server2$
server3$
dsget succeeded
Note the ‘samid’ at the head and ‘dsget succeeded’ at the end and the ‘$’ at the end tail of every server name.
If you are like me, and you would like just get a nice clean output with only server names, you can run this command:
A Certificate could not be found that can be used with this Extensible Authentication Protocol
Posted by Sheen in Windows Server on April 30, 2009
I got this error today when I tried configuring a RADIUS server on Windows Server 2003. This error occurs when the server that you are trying to configure RADIUS on does not have a computer certificate assigned to it.
If you have IIS installed, requesting a certificate for any website will make this problem go away. If you dont have IIS installed, do the following:
Setting up Split Brain DNS in Windows Server 2003
Posted by Sheen in Windows Server on April 28, 2009
Most organizations have internal and external DNS servers and in many cases, the default internal DNS zone may differ from the externally referenced DNS zone. For example, the internal DNS zone could be called domain.com and the external DNS zone could be called external.domain.com. The internal DNS zone could be active directory integrated and will try to respond to all queries for external.domain.com and queries will fail since there arent any entries for external.domain.com in the internal DNS server.
In such a situation, instead of maintaining both zones internally and externally, it would be better and safer (avoiding human error) to setup a Split Brain DNS server to automatically forward all DNS queries for external.domain.com to the publicly hosted DNS server.
This is how it is done:
Recent Comments