Thursday, September 1, 2016

Run ADUC on your PC as domain admin


runas /netonly /user:domain\useracct-admin "mmc %SystemRoot%\system32\dsa.msc"

Save this as a batch file and run as admin user; enter your domain admin creds and ADUC launches as domain admin

Wednesday, December 16, 2015

Outlook slow and crashing lately

Blame it on KB3097877  / Windows update

Search to see if it was deployed using an elevated cmd prompt;

wmic /output:stdout qfe get hotfixid | find "KB3097877"

If it shows up as installed; seach manually in installed updates and uninstall it / reboot

Friday, December 4, 2015

Generating Active mailbox user list in Exchange 2010


Get-MailboxServer | Get-Mailbox | foreach-object {$email = $_.primarysmtpaddress; $_ | Get-MailboxStatistics | where{$_.DisconnectDate -eq $null}| select DisplayName, @{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, StorageLimitStatus, LastLogonTime,DeletedItemCount,@{Name="EmailAddress";expression={$email}}} | Format-Table

With help from various sources online

Add to export to csv

| epcsv c:\ActiveMailboxes.csv

Tuesday, November 10, 2015

Finding User Created Shared Outlook Calendars in Exchange


Get-Mailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*'} | select identity, name | ft -wrap

by mikefrobbins at 2012-08-14 09:35:55
Is there a way with PowerShell to find user created outlook calendars in Exchange 2010 if I don't know the exact name of the calendar? Or maybe I know the exact name but I'm not sure which user created the calendar? Are wildcard searches possible?
If I know the username and the exact name of the calendar, I can use this command to validate it exists:
Get-MailboxCalendarFolder -Identity "username:\calendar\usercreatedCalendarName"
I can see the current permissions with the following command:
Get-MailboxFolderPermission -Identity "username:\calendar\usercreatedCalendarName"
Add Editor Permissions with this command:
Add-MailboxFolderPermission -Identity "username:\calendar\usercreatedCalendarName" -User usernameToAdd -AccessRights Editor
And remove a users access with this command:
Remove-MailboxFolderPermission -Identity "username:\calendar\usercreatedCalendarName" -User usernameToRemove
Example: Can you give Bill access to my management meeting calendar in Outlook? Ok, I have no access to the calendar in Outlook so I'm breaking out PowerShell and I know who I think the owner of the calendar is, but the name may not be exact. How can I return a list of all of John's user created calendars in Outlook by using PowerShell on the Exchange server? Yeah, I know there's better ways to have shared calendars, but we've all been there – users create this sort of stuff.
by MikePfeiffer at 2012-08-14 13:52:23
Hey Mike,
You can find all the user created folders using the Get-MailboxFolderStatistics cmdlet. For example:
Get-MailboxFolderStatistics administrator | Where-Object{$_.FolderType -eq 'User Created'}
This won't give you the folder type (e.g., calendar, etc.) for user created folders, but it will give you the path. This may help if they are nesting them under the default calendar folder in the mailbox.
by mikefrobbins at 2012-08-14 14:51:29
Thanks Mike! That got me started on the right track. It looks like I can do something like this for a very generic search of all mailboxes: (luckily we don't have thousands of mailboxes or this wouldn't be a good idea)
Get-Mailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*'} | select identity, name | ft -wrap
If I know the user, I can add it like in your example:
Get-MailboxFolderStatistics username | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*'} | select identity, name | ft -wrap
Or if I have some of the calendar name as in my example of "management meeting calendar", I can add it to the foldername path:
Get-Mailbox | Get-MailboxFolderStatistics | Where-Object {$_.FolderType -eq 'User Created' -and $_.folderpath -like '/calendar/*manage*meet*'} | select identity, name | ft -wrap


Tuesday, February 3, 2015

Finding an SMTP (email) address on an exchange server


Hi :) 

You can use Active Directory Users & Computers to find it. 

1. Open ADUC (dsa.msc), click View and enable Advanced Features. 

2. Find the object called Microsoft Exchange System Objects and select it. This object contains a list of your public folders. 

3. Click the View menu again and click Add/Remove Columns 

4. Add the E-mail Address column, click OK and re-navigate to the Microsoft Exchange System Objects object. 




Wednesday, July 30, 2014

Event ID 8003 - The master browser has received a server announcement from the computer that believes that it is the master browser for the domain on transport NetBT_Tcpip_

Thank you, Rob Morin, for the solution..


Another way to fix this, rather than stopping/disabling the Computer Browser Service is to unbind NetBIOS from Tcp on each of the interfaces. To find out which interfaces are bound, type 'BROWSTAT.EXE DN' at a command prompt - this will list the interfaces such as 'DeviceNetBT_Tcpip_{7B935...' as displayed in your System Event Log. Steps to disable NetBIOS over TCP:
1) Open Network Connections in the Control Panel
2) Open the Properties dialog for any interface
3) If TCP/IP is checked, select it and click 'Properties'. (If it is not checked, click 'Cancel' - this interface does not have tcp/ip bound)
4) Click the 'Advanced' button
5) On the 'WINS' tab, select the radio button for 'Disable NetBIOS over TCP/IP'
6) Click OK, OK, then Close

If you run BROWSTAT.EXE DN again, the list of interfaces should be one less now. Keep doing this for each interface in the list and you will eliminate all of these MRxSMB messages.

This can also be disabled using DHCP options if you are using DHCP on your network. Just be careful when you have legacy and non-Windoze boxes that need WINS to connect to the network.