Outlook 2007 and 2010 warning "The name of the security certificate is invalid or does not match the name of the site"
After starting MS Outlook 2007 or 2010 and connecting to MS Exchange 2007 or 2010 server (on a local network) you get warning "The name of the security certificate is invalid or does not match the name of the site"
This happens because of certificate names mismatch. For more information read Microsoft article KB-940726
To fix the problem:
Open MS Exchange Management Shell.
To find our information about your Autodiscovery server run:
Get-AutodiscoverVirtualDirectory | FL
To fix the certificate error run following 4 commands replacing:
<server_name> - Your Exchange Client Access (Autodiscovery) server name.
<mail.yourdomain.com> - Your exchange server FQDN (valid for your trusted certificate).
Set-ClientAccessServer -Identity <server_name> -AutodiscoverServiceInternalUri https://<mail.yourdomain.com>/autodiscover/autodiscover.xml
Set-WebServicesVirtualDirectory -Identity "<server_name>\EWS (Default Web Site)" -InternalUrl https://<mail.yourdomain.com>/ews/exchange.asmx
Set-OABVirtualDirectory -Identity "<server_name>\oab (Default Web Site)" -InternalUrl https://<mail.yourdomain.com>/oab
This 4th command is not required on Exchange 2010
Set-UMVirtualDirectory -Identity "<server_name>\unifiedmessaging (Default Web Site)" -InternalUrl https://<mail.yourdomain.com>/unifiedmessaging/service.asmx
Exchange 2007
Exchange 2010
Outlook 2007
Outlook 2010
Check Installed Programs Remotely (vbscript)
This vb script (by Bill James) lists all installed programs (including Windows Updates) on a remote PC (checks registry Uninstall Key).
Outputs results to a text file.
Download
Windows XP
Delete old files (vbscript)
This vbscript will delete all files older that 3 months in a specified folder and all subfolders. It will also create a log file with all processed folders and deleted files.
Download
' Folder path
const fldname = "\\your\folder\path"
set fso = createobject("scripting.filesystemobject")
set fldr = fso.getfolder(fldname)
dttoday = date
tmnow = Time
'Calculate trigger date (change according to your requirements)
dtold = dateadd("m", -3, dttoday) 'files older than 3 months will be deleted
'DateAdd(interval,number,date)
'Interval:
' * yyyy - Year
' * q - Quarter
' * m - Month
' * y - Day of year
' * d - Day
' * w - Weekday
' * ww - Week of year
' * h - Hour
' * n - Minute
' * s - Second
' Log File
Set LogFSO = CreateObject("Scripting.FileSystemObject")
FileName = Year(dttoday)&"."&Month(dttoday)&"."&Day(dttoday)&"-"&Hour(tmnow)&"."&Minute(tmnow)&"."&Second(tmnow)&".txt"
Set LogFile = LogFSO.OpenTextFile(FileName, 2, True)
recurse fldr
sub recurse( byref fldr)
dim subfolders,files,folder,file
set subfolders = fldr.subfolders
set files = fldr.files
LogFile.WriteLine(fldr.path)
for each file in files
if file.datelastmodified < dtold then
LogFile.WriteLine(" DELETING - " & file.name & " LAST MODIFIED: " & file.datelastmodified)
on error resume next
file.delete
end if
next
for each folder in subfolders
recurse folder
next
set subfolders = nothing
set files = nothing
end sub
Configure NTP Time Service on Windows Server DC
To configure an authoritative NTP Time Server (on Windows Server Domain Controller) to synchronize with an external NTP time source, edit the following Windows registry entries:
Change the time server type to NTP
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
Set to NTP
NTP stands for Network Time Protocol
Set AnnounceFlags to 5
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
Set to 5
Announce flag values:
0 Timeserv_Announce_No, Reliable_Timeserv_Announce_No. The domain controller does not advertise time service.
1 Timeserv_Announce_Yes. The domain controller always advertises time service.
2 Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise time service.
4 Reliable_Timeserv_Announce_Yes. The domain controller will always advertise reliable time service.
8 Reliable_Timeserv_Announce_Auto. The domain controller automatically determines whether it should advertise reliable time service.
Flag 5 (1+4) means "The domain controller always advertises time service" and "The domain controller will always advertise reliable time service".