Adding receive connector IP addresses using PowerShell
by Nazarah on Feb.03, 2012, under Exchange 2010, Powershell
Be sure to modify your values for the connector name, and file path. This will append to the existing path, not over write it. It will throw an error and continue if a value already exists.
$rc = Get-ReceiveConnector -Identity “Anonymous SMTP Relay Connector”
Get-Content “c:\scripts\addrelayips.txt” | foreach {$rc.RemoteIPRanges += “$_”}
Set-ReceiveConnector “Anonymous SMTP Relay Connector” -RemoteIPRanges $rc.RemoteIPRanges
Delete files older than N days old
by Nazarah on Jan.04, 2012, under Uncategorized
Simple forfiles command:
forfiles /P X:\ /D -3 /S /C “cmd /c del @path /Q”
Make sure X:\ is a valid path, or is mapped to your desired path before running this. This specific command will remove files older than 3 days old, and will do it recursively without prompting.
Exchange 2010 management console will not open
by Nazarah on Dec.05, 2011, under Exchange 2010
Here is a fix to try, worked for me on one server.
C:\users\<specific user>\AppData\Roaming\Microsoft\MMC\Exchange Management Console\ there is a config file. Delete it
In the registry under HKCU\Software\Microsoft\Exchangeserver\v14\AdminTools\NodeStructureSettings delete the value NodeStructureSettings
“No description found” message when editing a maintenance plan in SQL 2005
by Nazarah on Oct.25, 2011, under Microsoft SQL
Here is the fix:
Before you open the management studio, run this to re register the proper DLL’s.
Regsvr32 “C:\WINDOWS\system32\msxml6.dll”
Regsvr32 “C:\WINDOWS\system32\msxml3.dll”
Regsvr32 “C:\WINDOWS\system32\msxml.dll”
regsvr32.exe ole32.dll
Then open the management studio and you will be able to save the changes to your maintenance plan.
Finding an ESX hosts serial number from CLI
by Nazarah on May.16, 2011, under VMWare
Login to the CLI using putty, su -, then run this
/usr/sbin/dmidecode |grep –A4 “System Information”
Gives you model number, machine type, and serial number.
How to enable (or disable) 8.3 short name support on Windows Server 2008
by Nazarah on May.10, 2011, under Windows Server 2008
fsutil.exe behavior set disable8dot3 0
0 will ENABLE 8.3 file names, 1 will DISABLE it.
The name on the security certificate is invalid or does not match the name of the site
by Nazarah on Apr.28, 2011, under Exchange 2007
When starting Outlook, I was getting a cert error that said this. What I did to fix it:
1. Removed all the certs that it would let me from the Exchange server. I had to leave the default there so that I did not break SMTP.
2. Created a new cert with the following in there for the SANs
externaldomain.com
mail.externaldomain.com
autodiscover
autodiscover.internaldomain.local
servername
servername.internaldomain.local
internaldomain.local
Don’t forget the last SAN of internaldomain.local alone. Imported this certtificate, and enabled it for IIS and SMTP, replacing the old certificate. I then deleted the old one, and all was well again.
VMWare iSCSI connection notes
by Nazarah on Apr.14, 2011, under VMWare
For setting up multi pathing on VMWare with iSCSI devices.
To find which vmhba corresponds to the vmnic:
esxcli swiscsi vmnic list -d vmhba##
To bind the iSCSI VMkernel port to the iSCSI adapter:
esxcli swiscsi nic add -n <vmk port name> -d <vmhba name>
To verify that the port was added to the iSCSI adapter:
esxcli swiscsi nic list -d vmhba##
Showing hidden devices after P2V’ing a server
by Nazarah on Mar.15, 2011, under VMWare
This is a common scenario after you P2V a server, that you will have hidden NIC’s that need to be removed before setting the IP on your virtual NICs. Here is what you do from a command line.
set devmgr_show_nonpresent_devices=1
devmgmt.msc
view -> show hidden devices
Then, delete away.
Enabling Windows Server 2003 Certificate Authorities to create certificates with subject alternative names (SAN)
by Nazarah on Oct.15, 2010, under Windows 2003 Server
certutil -setreg policy\EditFlags +EDITF_ATTRIBUTESUBJECTALTNAME2
net stop certsvc
net start certsvc
In the Attributes box, specify the SANs like so
san:dns=corpdc1.fabrikam.com&dns=ldap.fabrikam.com