Quantcast
Channel: Exchange Server Development forum
Viewing all articles
Browse latest Browse all 7132

Office365’s Global Address List Guid

$
0
0

Hi,

I need to programmatically change the my company's Office365’s Global Address List contacts info.

My company does not have active directory and the Office365 is in the cloud.


I've came across this:  gsexdev.blogspot.pt/2013/05/using-ews-findpeople-operation-in.html


And I'm suposing I only need to find out which is the GAL's Guid.

But I tried, unsuccessfully, the steps bellow and I can’t find a reason for it not to work.


When I run the “Get-AddressList” (technet.microsoft.com/en-us/library/aa996782(v=exchg.150).aspx) command, I get an error message saying that server does not know the command.


Can you point me in the right direction please?


Thank you.


Best Regards,

(Sory for my bad english)

Trying to find our GAL’s Guid, I found a list of steps that might get us that information:
 
Click Start, point to All Programs, click Accessories, click Windows PowerShell, and then right-click Windows PowerShell and select Run as administrator.

At the PowerShell, run the following commands:
 
Get-ExecutionPolicy (“Memorize” the value yelled here so that you can revert it at the end)
Set-ExecutionPolicy RemoteSigned;
 
Click Start, point to All Programs, click Accessories, and then right-click Command Prompt and select Run as administrator.
At the command prompt, run the following commands:
net start winrm
winrm set winrm/config/client/auth @{Basic="true"}
 
At the PowerShell, run the following commands:
 
$LiveCred = Get-Credential       -> Provide an Office365 administration account credentials;
 
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection
 
Import-PSSession $Session
 
Get-AddressList | Select Name,Guid
(The Office365 administration account provided shall have access to the command “Get-AddressList”. The command list available to the yelled session can be listed with the command: Get-Command -Module # YelledSessionName#)
 
Here, you shoud get a result like this:
2.bp.blogspot.com/-QM9DXvqO0m0/UZi_p3ljChI/AAAAAAAAAG8/kJs-JCBFZ9k/s640/Capture1.PNG
(I need you to send me the “All Contacts” list Guid)
 
And now, you should revert the changes made so far:
 
At the PowerShell, run the following commands:
 
Remove-PSSession $Session
 
Set-ExecutionPolicy #TheValueYelledWhenYouExecutedTheFirstCommand#
 
Exit
 
At the command prompt, run net stop winrm
 
Done!
 
Info found at:

Install and Configure Windows PowerShell:
help.outlook.com/en-us/140/cc952756.aspx

Connect Windows PowerShell to the Service:
help.outlook.com/en-us/140/cc952755.aspx

Using the EWS FindPeople operation in Exchange 2013 and Exchange Online (2013):
gsexdev.blogspot.pt/2013/05/using-ews-findpeople-operation-in.html



Viewing all articles
Browse latest Browse all 7132

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>