Wednesday, October 19, 2011

Script to change Site Collection Administrators in SharePoint 2007 with PowerShell

Where I work, we receive several requests for site collection admin change per week, so that's something that always bothered me, since it's not a quick task to be done when you take care of a huge number of sites. That's why I managed to create this script today, it will help me (and my team) to save some time to do other more important (and more interesting) things. Here we go: First of all, you need to create a ps file named Set-SiteCollectionAdmin.ps1...
Ler o texto inteiro ►

Batch process in PowerShell - Get-Content and Import-CSV cmdlets

One of the most important, easy and useful things I see in PowerShell is the possibility to easily process several requests in batch, saving a lot of time. In this article I'm going to explain in this article how to get information from a TXT file and process anything with it using Get-Content cmdlet and also how to get information from a CSV file using the Import-CSV cmdlet. Get-Content cmdlet: PS C:\> Get-Content MyTextFile.txt Line0 ...
Ler o texto inteiro ►

Tuesday, October 18, 2011

Developing a PowerShell Script for SharePoint 2007

Since I started working with SharePoint infrastructure and administration, I've been thinking on a solution to automatize some daily tasks that ever since I was able only to perform either via Central Administration or STSADM command. So today, I started studying how to work with PowerShell scripting for SharePoint, and it seems to be pretty easy and cool :) The first thing you must do so PowerShell can access SharePoint assemblies is to load them...
Ler o texto inteiro ►

Monday, October 10, 2011

OCS Conversation History saved on the wrong mailbox

These days I've been working on an issue related to the OCS Conversation History, and where it was saving its instant messaging records. The user in case has an additional mailbox set in Outlook and Communicator was saving all conversation histories in the additional mailbox, which can cause several problems, since the users conversation were being stored into a shared folder. After several frustrated attempts of solving the problem, a teammate...
Ler o texto inteiro ►

How to add/remove additional mailboxes in Outlook

How to add an additional mailbox in Outlook: In Outlook 2010, Go to File > Account Settings > Account Settings... In Outlook 2007, Tools > Account Settings... On Account Settings window, Select Default, then click Change... On Change Account window, click More Settings... On Microsoft Exchange window, go to Advanced tab and click Add... On Add Mailbox window, type the mailbox name in Add mailbox field. Click Ok, Ok, Next, Finish. How...
Ler o texto inteiro ►

Tuesday, September 27, 2011

The Delegates settings were not saved correctly. Cannot activate free/busy information

Got this error message today when trying to update some delegates settings: --------------------------- Microsoft Office Outlook --------------------------- The Delegates settings were not saved correctly. Cannot activate free/busy information. --------------------------- OK --------------------------- To fix the issue I needed to use MFCMAPI tool. Just follow below instructions and all should work fine: Start the MfcMapi.exe On MFCMAPI...
Ler o texto inteiro ►

Microsoft Exchange Server MAPI Editor (MFCMAPI)

MFCMAPI is a powerful tool which allows you to access and fix several problems in MAPI stores through a graphical interface. MFCMAPI download from CodePl...
Ler o texto inteiro ►

Tuesday, September 13, 2011

Not able to open restricted permission messages (Rights Management Services - RMS)

Last week I worked on a RMS issue, which I couldn't find a solution. However, a teammate of mine who works with security has sent me some instructions which have solved the problem. Start->Run->compmgmt.msc Expand Services and Applications Click on Services Stop “cryptographic server” service on end user machine (keep this windows open).  Right click on the service and select stop. Rename c:\winnt\system32\catroot2 directory to c:\winnt\system32\catroot2.old Start...
Ler o texto inteiro ►

Not able to add/remove delegates - Outlook 2007

Got this error message today, when trying to remove an user from delegates tab. --------------------------- Microsoft Office Outlook --------------------------- The Delegates settings were not saved correctly.  Cannot activate send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object. --------------------------- OK   --------------------------- I've found a solution in a Microsoft KB, which...
Ler o texto inteiro ►

Wednesday, August 31, 2011

How to reset user's Unified Messaging VoiceMail PIN via PowerShell

This one is so easy that I won't type too much :) Set-UMMailboxPIN  -Identity USERNAME Most used parameters: Pin: use this parameter to manually set a new pin to the user SendEmail: set this parameter to $false if you don't want the user to receive an e-mail with the new pin. The default value is $true, which means the user will receive an e-mail with the new pin and information about phone access numbers NotifyEmail: specifies the email...
Ler o texto inteiro ►

How to get mailbox permissions

Last article I've posted (How to grant/remove permissions on an Exchange 2007 mailbox) was about how to SET mailbox permissions, but another cool thing we can do with PowerShell is to GET them for that, you must use the cmdlet Get-MailboxPermission. Get-MailboxPermission -Identity MAILBOX | Format-Table User, AccessRights, IsInherited Most used parameters: Identity: username or email address associated to the mailbox User: use this parameter to...
Ler o texto inteiro ►

How to grant/remove permissions on an Exchange 2007 mailbox

These almost-daily tasks are quite easy to perform via EMC, but infinitely easier through PowerShell... Adds mailbox permissions: Add-MailboxPermission -Identity MAILBOX -User USER -AccessRights FullAccess -InheritanceType All Removes mailbox permissions: Remove-MailboxPermission -Identity MAILBOX -User USER -AccessRight FullAccess -confirm:$false Most used parameters: Identity: the username or email address associated to the mailbox...
Ler o texto inteiro ►

Tuesday, August 30, 2011

User mailbox has more than one primary SMTP address

Today I've got this issue, an user who couldn't receive e-mails from anyone. When I checked his mailbox, EMC showed me an error saying that his account had more than one primary SMTP address, opening user's properties. EMC didn't let me remove any of them since you can't remove the primary. Error message: "There are multiple primary SMTP addresses. Please ensure there is only one primary address for each address type." So the solution I've found...
Ler o texto inteiro ►

How to check Exchange databases status via PowerShell

Run the cmdlet Get-MailboxDatabase to get information about the DB status. Use parameter -Identity to check the status of a single DB and -Server for all DBs in a server. Check the status of a single DB Get-MailboxDatabase -Identity DBNAME -Status | Format-Table Name, Mounted, BackupInProgress, OnlineMaintenanceInProgress Check the status of all DBs in a Server Get-MailboxDatabase -Server SERVERNAME -Status |...
Ler o texto inteiro ►

Monday, August 29, 2011

How to specify PowerShell session scope

As well as Exchange Management Console, Exchange Shell Console allows you to define the operations scope. You can choose for viewing and working either on the entire forest or on a single domain. Exchange 2007 $AdminSessionADSettings.DefaultScope="domain1.contoso.com" $AdminSessionADSettings.ViewEntireForest=$true Exchange 2010 Set-AdServerSettings -RecipientViewRoot "domain2.contoso.com" Set-AdServerSettings -ViewEntireForest $true * when set...
Ler o texto inteiro ►

How to mount/dismount mailbox databases via PowerShell

For several times I had to dismount and re-mount all the mailbox databases from a server, and doing this via Exchange Management Console is way to slow, so I've researched a bit and found some commands to do this with PowerShell. How to check Exchange databases status via PowerShell In order to mount/dismount DBs, use Mount-Database and Dismount-Database respectively. Use Get-MailboxDatabase cmdlet with -Server parameter to...
Ler o texto inteiro ►
Related Posts Plugin for WordPress, Blogger...