Archive for category Microsoft
Find Your Exchange 2010 Version
Posted by JBrokaw in Exchange 2010 on March 8, 2010
From the Exchange Blog
So I just installed RU1 on my brand new Exchange 2010 server and then I issue a Get-Exchangeserver -Identity MyExchangeServer and get the following output for AdminsDisplayVersion and ExchangeVersion:
Ok that looks a little familiar for some reason. I go to my Exchange 2010 RTM server and issue the same CMDlet and get:
…The same result! But one server has RU1 installed and the other is RTM. Shouldn’t I get a different version number back?
Well… no. Exchange 2007 and forward do not reflect the version number either in the value for AdminDisplayVersion, ExchangeVersion, or at this registry key HKLM\SOFTWARE\Microsoft\v8.0\<Role>\ConfiguredVersion as influenced by roll ups. This is a common misconception.
The most conclusive way to get the version of your exchange server, rollup and all, is to check the file version of ExSetup.exe in the BIN folder.
Here is Exchange 2010 RU1 version:
And here is Exchange 2010 RTM:
Another way of getting this information is to run the following PowerShell one-liner:
GCM exsetup |%{$_.Fileversioninfo}
The below output is from an exchange 2010 server running RU1:
Here is an exchange 2010 RTM server:
You can then correlate the version number you find with those listed here, here or on the actual rollup update download pages.
PowerShell Script to E-Mail User Mailbox Storage Limit Status
Posted by JBrokaw in Exchange 2007, Exchange 2010 on March 4, 2010
A storage status of “NoChecking” means they do not have a mailbox limit.
To schedule the script. Through Windows Scheduler “PowerShell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\Bin\ExShell.psc1" -Command “C:\Script.ps1"
Save as a .ps1 file
________________________________________________
$FromAddress=MailboxReport@domain.com
$ToAddress=ExampleUser@domain.com
$MessageSubject="Mailbox Report"
$MessageBody="User Mailbox Storage Limit Status"
$SendingServer="emailserver.domain.com"
$file="C:\Mailboxes.txt"
Get-MailboxStatistics | Sort-Object StorageLimitStatus | ft DisplayName, StorageLimitStatus, ItemCount > $file
$SMTPMessage = New-Object System.Net.Mail.MailMessage $FromAddress, $ToAddress, $MessageSubject, $MessageBody
$Attachment = new-object System.Net.Mail.Attachment $file
$SMTPMessage.Attachments.Add($Attachment)
$SMTPClient=New-Object System.Net.Mail.SMTPClient $SendingServer
$SMTPClient.Send($SMTPMessage)
Exchange 2010 Requires Client Encryption – Outlook 2003 Encryption Disabled by Default
Posted by JBrokaw in Exchange 2010 on February 26, 2010
Solution:
1. Enable Encryption in the Outlook 2003 Profile.
2. Create a GPO to enable Encryption for Outlook 2003 clients.
http://support.microsoft.com/kb/2006508
3. Disable the Encryption requirement on the Exchange 2010 server.
From PowerShell on the Exchange server: Set-RpcClientAccess -Server:ExchangeServerName -EncryptionRequired:$False
Outlook 2003 Responds Slowly When Using Exchange 2010
Posted by JBrokaw in Exchange 2010 on February 26, 2010
MS KB for this issue – http://support.microsoft.com/kb/2009942
Configure a GPO WMI Filter for Office 2000, XP, or 2003
Posted by JBrokaw in Group Policy on February 3, 2010
SELECT * FROM Win32_Product WHERE Caption LIKE “Microsoft Office%2003%” OR Caption LIKE “Microsoft Office%2000%” OR Caption LIKE “Microsoft Office%XP%”
How To Create a Custom Power Plan for Windows 7 via GPO
Posted by JBrokaw in Group Policy, Windows 7 on February 3, 2010
How to Configure Power Settings for Windows 7 PCs via Group Policy
If server is Windows 2008 (R1) the following steps need to be taken:
1: Copy the “Policy Definitions” folder on a Windows 7 PC from the C:\Windows directory to \\Domain.local\SYSVOL\Policies Folder.
2: On a Windows 7 PC download and install RSAT (Remote Server Administration Tools) for Windows 7.
From a Windows 2008 R2 server or the Windows 7 PC with RSAT installed:
1: Create a New GPO.
2: Navigate to “Computer Configuration\Preferences\Control Panel Settings\Power Options”
3: Right Click and Create new “Power Plan (Windows Vista and later)”
4: Change the Action to “New” and name the Policy.
5: Configure the power settings.
6: Make sure the Group Policy is applied to the correct OU. Close the Group Policy Manger.
7: From a Windows 7 PC. Update Group Policy with the “gpupdate /force” command.
8: Find the power scheme you just created by using the “powercfg /list” command.
9: Copy the GUID of the power scheme.
10: Open the Group Policy Management Console again and edit GPO you created for the Windows 7 Power Settings.
11: Navigate to: Computer Configuration\Policies\Administrative Templates\System\Power Management\Specify a Custom Active Power Plan
12: Enable the Policy and Paste your GUID into the Options.
13: After Group Policy updates the PC’s Power Settings should look like this:
Software Will Not Install Because It Expects Service Pack 1
Some applications expect Windows Service Pack 1 or 2 even though a higher service pack is already installed, such as SP3. The following registry key change will report SP2 as being installed instead of SP3.
HKLM\System\CurrentControlSet\Control\Windows – Edit CSDVersion – Change the value from 300 hex to 200 hex. Reboot the workstations.
Install the App then change the value back and reboot again.
Windows Variables List
Windows Environment Variables:
|
Variable |
Type | Description |
| %ALLUSERSPROFILE% | Local | Returns the location of the All Users Profile. |
| %APPDATA% | Local | Returns the location where applications store data by default. |
| %CD% | Local | Returns the current directory string. |
| %CMDCMDLINE% | Local | Returns the exact command line used to start the current Cmd.exe. |
| %CMDEXTVERSION% | System | Returns the version number of the current Command Processor Extensions. |
| %COMPUTERNAME% | System | Returns the name of the computer. |
| %COMSPEC% | System | Returns the exact path to the command shell executable. |
| %DATE% | System | Returns the current date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command, see Date |
| %ERRORLEVEL% | System | Returns the error code of the most recently used command. A non zero value usually indicates an error. |
| %HOMEDRIVE% | System | Returns which local workstation drive letter is connected to the user’s home directory. Set based on the value of the home directory. The user’s home directory is specified in Local Users and Groups. |
| %HOMEPATH% | System | Returns the full path of the user’s home directory. Set based on the value of the home directory. The user’s home directory is specified in Local Users and Groups. |
| %HOMESHARE% | System | Returns the network path to the user’s shared home directory. Set based on the value of the home directory. The user’s home directory is specified in Local Users and Groups. |
| %LOGONSEVER% | Local | Returns the name of the domain controller that validated the current logon session. |
| %NUMBER_OF_PROCESSORS% | System | Specifies the number of processors installed on the computer. |
| %OS% | System | Returns the operating system name. Windows 2000 displays the operating system as Windows_NT. |
| %PATH% | System | Specifies the search path for executable files. |
| %PATHEXT% | System | Returns a list of the file extensions that the operating system considers to be executable. |
| %PROCESSOR_ARCHITECTURE% | System | Returns the chip architecture of the processor. Values: x86, IA64. |
| %PROCESSOR_IDENTIFIER% | System | Returns a description of the processor. |
| %PROCESSOR_LEVEL% | System | Returns the model number of the processor installed on the computer. |
| %PROCESSOR_REVISION% | System | Returns the revision number of the processor. |
| %PROMPT% | Local | Returns the command prompt settings for the current interpreter. Generated by Cmd.exe. |
| %RANDOM% | System | Returns a random decimal number between 0 and 32767. Generated by Cmd.exe. |
| %SYSTEMDRIVE% | System | Returns the drive containing the Windows XP root directory (that is, the system root). |
| %SYSTEMROOT% | System | Returns the location of the Windows XP root directory. |
| %TEMP% and %TMP% | System and User | Returns the default temporary directories that are used by applications available to users who are currently logged on. Some applications require TEMP and others require TMP. |
| %TIME% | System | Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command, see Time |
| %USERDOMAIN% | Local | Returns the name of the domain that contains the user’s account. |
| %USERNAME% | Local | Returns the name of the user who is currently logged on. |
| %USERPROFILE% | Local | Returns the location of the profile for the current user. |
| %WINDIR% | System | Returns the location of the operating system directory. |
Windows 2008 R2 Group Policy Preference Process Variables:
| %AppDataDir% | UserAppDataDir |
| %BinaryComputerSid% | The SID of the computer in hexadecimal format. |
| %BinaryUserSid% | The SID of the current user in hexadecimal format. |
| %CommonAppdataDir% | The "all users" Application Data directory. |
| %CommonDesktopDir% | The "all users" Desktop directory. |
| %CommonFavoritesDir% | The "all users" Explorer Favorites directory. |
| %CommonProgramsDir% | The "all users" Programs directory. |
| %CommonStartMenuDir% | The "all users" Start Menu directory. |
| %CommonStartUpDir% | The "all users" Startup directory. |
| %ComputerName% | The NetBIOS name of the computer. |
| %CurrentProcessId% | The numeric identity of the main client process. |
| %CurrentThreadId% | The numeric identity of the main client thread. |
| %DateTime% | The current time (UTC). |
| %DateTimeEx% | The current time (UTC) with milliseconds. |
| %DesktopDir% | The current user’s desktop directory. |
| %DomainName% | The domain name or workgroup of the computer. |
| %FavoritesDir% | The current user’s Explorer Favorites directory. |
| %LastError% | The last error code encountered during configuration. |
| %LastErrorText% | The last error code text description. |
| %LdapComputerSid% | The SID of the computer in LDAP escaped binary format. |
| %LdapUserSid% | The SID of the current user in LDAP escaped binary format. |
| %LocalTime% | The current local time. |
| %LocalTimeEx% | The current local time with milliseconds. |
| %LogonDomain% | The domain of the current user. |
| %LogonServer% | The domain controller that authenticated the current user. |
| %LogonUser% | The user name of the current user. |
| %LogonUserSid% | The SID of the current user. |
| %MacAddress% | The first detected MAC address on the computer. |
| %NetPlacesDir% | The current user’s My Network Places directory. |
| %OsVersion% | The operating system: Windows Server® 2008 R2, Windows® 7, Windows Server® 2008, Windows Vista®, Windows Server 2003, Windows XP, or Unknown. |
| %ProgramFilesDir% | The Windows Program Files directory. |
| %ProgramsDir% | The current user’s Programs directory. |
| %RecentDocumentsDir% | The current user’s Recent Documents directory. |
| %ResultCode% | The client’s exit code. |
| %ResultText% | The client’s exit code text description. |
| %ReversedComputerSid% | The SID of the computer in reversed byte order hexadecimal format. |
| %ReversedUserSid% | The SID of the current user in reversed byte order hexadecimal format. |
| %SendToDir% | The current user’s Send to directory. |
| %StartMenuDir% | The current user’s Start Menu directory. |
| %StartUpDir% | The current user’s Startup directory. |
| %SystemDir% | The Windows system directory. |
| %SystemDrive% | The name of the drive from which the operating system is running. |
| %TempDir% | The current user’s Temp directory as determined by Windows API. |
| %TimeStamp% | The time stamp of the configurations being implemented. |
| %TraceFile% | The path/name of the trace file. |
| %WindowsDir% | The Windows directory. |
Migrate From Exchange 2007 To Exchange 2010
Posted by JBrokaw in Exchange 2010 on November 11, 2009
Migrate Mailboxes to Exchange 2010 Server.
Move SSL Certificates to Exchange 2010 Server. Process is the same as Exchange 2007.
Migrate Public Folders. Process is the same as Exchange 2007.
Configure Offline Address Book on Exchange 2010 Server:
Recreate Offline Address Book (OAB) in IIS and Active Directory
Posted by JBrokaw in Exchange 2007 on November 11, 2009
From the Exchange Shell:
get-oabvirtualdirectory | format-list > c:\oab.txt
Open the oab.txt file. The Name field will be used in the “Identity” command below. The Internal and External URL will be used in the “InternalURL” and “ExternalURL” below.
Remove-OabVirtualDirectory -Identity "OAB (Default Web Site)"
A Virtual Directory named “OAB” must not exist in IIS, if it does it will need to be deleted before running this command.
New-OABVirtualDirectory -ExternalUrl http://mail.domain.org/oab -InternalUrl http://mail.domain.org/oab