| Topic |
 |
RE: Exchange mailbox sizes to Excel The script you posted would have never worked. Your Select-Object on line 21 is incomplete, and line 22 is not valid PowerShell. I'd try this: [code]############### script to get all mailbox databases and list users and size of each mai ... by Karl Mitschke in Exchange Server on 25 Jan 2012 08:16 AM
|
 |
RE: Check if exchange db exists Well, once again, either case runs "actionA" :) Karl by Karl Mitschke in Exchange Server on 10 Jan 2012 11:52 AM
|
 |
RE: Check if exchange db exists You realize that you never use the variable "mailboxdatabase", you do use the null variable "$ailboxdatabasel", and in all cases, you do "ActionA", right? :) There is no need fo an intermediate variable to hold the results of the Get-MailboxDatab ... by Karl Mitschke in Exchange Server on 10 Jan 2012 10:50 AM
|
 |
RE: Check if exchange db exists Something like this: [code] if (get-mailboxdatabase mydatabase -ea silentlycontinue){ Write-Output "Found mydatabase" } else{ Write-Output "mydatabase is not found" } [/code] Karl by Karl Mitschke in Exchange Server on 10 Jan 2012 10:14 AM
|
 |
RE: Exchange CMDLETS You can use PowerGUI and the Exchange 2003 PowerPack: http://powergui.org/kbcategory.jspa?categoryID=47 Karl by Karl Mitschke in Exchange Server on 06 Jan 2012 01:12 PM
|
 |
RE: Email notification when group is modified The issue is that "C:\Scripts\Groupmembers\groupmembers.csv" exists, and you never overwrite it. Add this line to the end of your script: [code]$Members | Export-csv $StateFile -NoTypeInformation [/code] Karl by Karl Mitschke in Active Directory on 23 Dec 2011 09:56 AM
|
 |
RE: Email notification when group is modified Hello; Define "not working" Do you mean you get an error about an SMTP server not being specified? If so, remove the space after the backtick on this: [code] If ($Changes) { Send-MailMessage -From $Email -To $Email -Subject "$Gr ... by Karl Mitschke in Active Directory on 19 Dec 2011 07:27 AM
|
 |
RE: Get-Mailbox from imported list of last names I'd do it like this: [code] foreach ($Person in Import-Csv "XXXXXXX.csv") { $LastName = "*$($Person.LastName)*" Get-Mailbox -Filter "DisplayName -like '$LastName'" } [/code] Karl by Karl Mitschke in Exchange Server on 16 Dec 2011 12:47 PM
|
 |
RE: Adding the Exchange Management Powershell Snapin The 64 bit tools are installed from the Exchange 2007 DVD or .ISO file. Note that you need to be running Exchange Server 2007 SP3 or better to have the tools supported on Windows 7....Karl by Karl Mitschke in Exchange Server on 08 Dec 2011 01:16 PM
|
 |
RE: Account Expiration Report and email Try a simple Search & replace of ' “@' with '“@' That is, the "@ of a Here String cannot have leading white space. Karl by Karl Mitschke in Active Directory on 29 Nov 2011 12:08 PM
|
 |
RE: Windows PowerShell 2.0 Bible *I* think it's a good book ;) Amazon has a review now... Karl by Karl Mitschke in Books, Tools, and Videos on 28 Nov 2011 06:16 PM
|
 |
RE: Trying to export DL Group Members but having problems, easy fix? See "Get-DistributionGroupMember Recursively" http://unlockpowershell.wordpress.com/2009/11/24/get-distributiongroupmember-recursively/ Karl by Karl Mitschke in Exchange Server on 21 Nov 2011 09:57 AM
|
 |
RE: Combine Public Folder commandlets to one .csv Are you meaning that the csv file should have the following? PF_Identity,OwnerName,FolderPath, ItemCount, LastAccessTime, LastModificationTime, AdminDisplayName, AssociatedItemCount, totalitemsize, servername, ownercount ? Karl by Karl Mitschke in Exchange Server on 14 Nov 2011 03:06 PM
|
 |
RE: Get-DistributionGroupMember from Exchange Check out my blog post: http://unlockpowershell.wordpress.com/2009/11/24/get-distributiongroupmember-recursively/ Karl by Karl Mitschke in Exchange Server on 31 Oct 2011 07:19 AM
|
 |
RE: Find a list of user's OUs [code] $users | Get-User -IgnoreDefaultScope | Select-Object -Property DisplayName, OrganizationalUnit [/code] Karl by Karl Mitschke in Active Directory on 24 Oct 2011 12:22 PM
|
 |
RE: Find Non Mail Enabled Users Try this: [code] Get-User -OrganizationalUnit "OU=Sales,DC=contoso,DC=com" -Filter {RecipientTypeDetails -eq "user"} |Select-Object SamAccountName |export-csv file.csv[/code] Karl by Karl Mitschke in Exchange Server on 04 Oct 2011 03:28 PM
|
 |
RE: Sending email through Exchange Server Glad to help :) by Karl Mitschke in Exchange Server on 04 Oct 2011 02:25 PM
|
 |
RE: Sending email through Exchange Server Try mail.scottrade.com or smtp.scottrade.com, or ask one of the Exchange administrators for the name of the SMTP server :) Karl by Karl Mitschke in Exchange Server on 03 Oct 2011 01:30 PM
|
 |
RE: Sending email through Exchange Server Posted By Marco Shaw (MVP) on 03 Oct 2011 11:02 AM Ha ha! I think I went a bit overboard... I was wondering if you saw a requirement that I missed ;)Karl by Karl Mitschke in Exchange Server on 03 Oct 2011 12:09 PM
|
 |
RE: Sending email through Exchange Server You just need to know the name of your smtp server [code] Send-MailMessage -To karlmitschkecontoso.com -from karlmitschke@hotmail.com -Subject "Test Email" -SmtpServer mail.domain.com [/code] Try your exchange server fq ... by Karl Mitschke in Exchange Server on 03 Oct 2011 12:08 PM
|
 |
RE: Sending email through Exchange Server Look at Send-MailMessage [code]Get-Help Send-MailMessage -Examples [/code] Karl by Karl Mitschke in Exchange Server on 03 Oct 2011 10:54 AM
|
 |
RE: Removing Inactive ad accounts Right by Karl Mitschke in Active Directory on 30 Aug 2011 10:08 AM
|
 |
RE: Removing Inactive ad accounts If you have Exchange, use one of the extension attributes. If you don't have Exchange, you can extend your schema to include a new attribute. See http://www.informit.com/articles/article.aspx?p=169630&seqNum=3 Karl by Karl Mitschke in Active Directory on 30 Aug 2011 09:54 AM
|
 |
RE: Mail Stats Report Now Different After Rollup You are welcome; Whenever I have a situation like that, I go line by line examining all variables :) Karl by Karl Mitschke in Exchange Server on 25 Aug 2011 08:24 AM
|
 |
RE: Mail Stats Report Now Different After Rollup Try switching line 19 from [code] $accepted_domains = Get-AcceptedDomain |% {$_.domainname.domain} [/code] To: [code] $accepted_domains = Get-AcceptedDomain |% {$_.domainname} [/code] Karl by Karl Mitschke in Exchange Server on 25 Aug 2011 08:24 AM
|
 |
RE: Create bulk test users in active directory Try this: [code] 1..51 | ForEach { Net User "TestUser$_" P@ssW0rd /ADD /Domain} [/code] From my blog post: Creating random users for a domain http://unlockpowershell.wordpress.com/2010/10/12/creating-random-users-f ... by Karl Mitschke in Active Directory on 25 Aug 2011 07:00 AM
|
 |
RE: Get-Mailboxstatistics provides different output in different shells Elliot; You may also want to check out Shay's post"Get Full Control over your Exchange remote PowerShell session" http://preview.tinyurl.com/3jd28j3 by Karl Mitschke in Exchange Server on 23 Aug 2011 12:30 PM
|
 |
RE: Get-Mailboxstatistics provides different output in different shells Elliot; You have run into the problems running the Exchange Management Shell cmdlets from a remote session within PowerShell. http://technet.microsoft.com/en-us/library/dd297939.aspx says "Without the Exchange management tools installed, you ... by Karl Mitschke in Exchange Server on 19 Aug 2011 07:00 AM
|
 |
RE: Get-Mailboxstatistics, output not complete results You can also do this: [code] $outfile= c:\scripts\outfiles\mbx_stats_results.csv $Data = @() Foreach($mbx in Get-content C:\scripts\infiles\mylist.txt){ $Data += Get-Mailboxstatistics $mbx | SELECT DisplayName, TotalItemSize } $Data | Expor ... by Karl Mitschke in Exchange Server on 17 Aug 2011 12:45 PM
|
 |
RE: Another easy one for ya... :-) Try not seeting the UserMustChangePassword attribute. I beleive that this must be set in a seperate step. Karl by Karl Mitschke in Active Directory on 17 Aug 2011 08:45 AM
|