Creating and Deleting Sites in SharePoint Online #Office365

You can use the SharePoint Online Management Shell to efficiently manage users, sites, and organizations instead of using the SharePoint Online Administration Center.

What is the difference between SharePoint Online cmdlets and Office 365 cmdlets?

The set of SharePoint Online Management Shell cmdlets differs from the set of Office 365 for professionals and small businesses cmdlets. SharePoint Online Management Shell cmdlets manage SharePoint Online users and sites, whereas Office 365 cmdlets manage Office 365 level tasks such as domain, license, organization information, and services. They both manage users and groups. However, Office 365 users and groups are not only for SharePoint Online services, but also for Exchange Online and Lync Online Services.

Set up the SharePoint Online Management Shell environment for SharePoint Online global administrators

Perform the following:

  1. Install Windows PowerShell 3.0 from Windows Management Framework 3.0.
  2. Install the SharePoint Online Management Shell from the Microsoft Download Center.
  3. Click Start>All Programs>SharePoint Online Management Shell.
  4. Run Connect-SPOService. For example, Connect-SPOService -Url https://contoso-admin.sharepoint.com -credential admin@contoso.com, where:
    • Url is the URL of the SharePoint Online Administration Center.
    • Credential is the user name to which you want to grant access to the SharePoint Online Administration Center site.
  5. Try it out! For example, run Get-SPOSite to get a list of all sites.

 

Lab Example

SpSite-cmdlet

 

You will see there are two new site created

SpSite-2

 

 

Delete A Sharepoint Online Site Sp-delete

 

Set-MailboxAutoReplyConfiguration

Get-MailboxAutoReplyConfiguration
Set-MailboxAutoReplyConfiguration

Let say if in any situation you have been asked to set the Out Of Office reply on particular mailbox , you have to go through a number steps after taking the full access on that mailbox but Exchange 2010 new cmdlets help and makes Exchange Admins job easier by using these cmdlets

So if you want to set the automatic reply for user USER1 , this is how you can do it – First run the Get cmdlet to see if he existing settings

[PS] C:>Get-MailboxAutoReplyConfiguration -Identity 'user1'

RunspaceId       : 84fb5949-eeb8-4b12-ab02-50017ca4ebbe
AutoReplyState   : Disabled
EndTime          : 2/18/2012 4:00:00 PM
ExternalAudience : All
ExternalMessage  :
InternalMessage  :
StartTime        : 2/17/2012 4:00:00 PM
MailboxOwnerId   : TECHIESONLY.COM/Users/User1 Team
Identity         : TECHIESONLY.COM/Users/User1 Team
IsValid          : Trues
Set-MailboxAutoReplyConfiguration
C:>Set-MailboxAutoReplyConfiguration -Identity 'User1' -StartTime '2/17/2012 16:47'-AutoReplyState Enabled -EndTime '2/19/2012 07:00'
-InternalMessage 'User1 is on vacation and will respond to your message after she returns on FEB 19'-ExternalMessage 'User1 is on vacation'
-ExternalAudience 'All'

Now run again 

[PS] C:>Get-MailboxAutoReplyConfiguration -Identity 'user1'
 Output



User-end view via OWA




Cheers :)


 

Understanding Export-ActiveSyncLog

Export-ActiveSyncLog – Part 1-2

Is the iPhone ActiveSync is not fully supported by Microsoft?
Is the iPhone ActiveSync has some bugs?
Are Android Phones are fully supported?

I see very small hit count on the CAS Serve only from Windows Mobile while other smart phones hits are way higher and facing the issue.

Microsoft Exchange Server 2007 and Exchange ActiveSync offer a wide variety of features for both users and administrators. As an administrator, it is important that you know the volume and usage patterns of your deployment. This information can help you effectively manage your Exchange ActiveSync deployment, better understand user productivity, and plan for future needs. Reporting in Exchange ActiveSync for Exchange Server 2007 is a Windows PowerShell task that compiles a set of Internet Information Services (IIS) logs and processes to create a series of output files. Each file is a separate report that can help you understand your Exchange ActiveSync deployment. This topic provides an overview of the cmdlet you can use to generate these reports and information about the content of these reports.

I have been receiving complaints from the user community about their iPhone messing up on their ActiveSync accounts. This only happened to the iPhone and there was not a single complain from any Android user neither from any Windows Mobile User.  I came across a number of ways to export the logs but there was not enough information available except generate the result of the logs. I extracted the logs and tried to understand and below is the finding which very helpful.

 

Run Against all the IIS Logs

Get-Childitem C:WINDOWSsystem32LogFilesW3SVC1 | where-object {$_.lastwritetime -gt $DateToCompare} | ForEach { Export-ActiveSyncLog -FileName $_.FullName -OutputPath “C:reports” -OutputPrefix $_.Name.Replace(“.log”,”_”) -UseGMT:$true}

This cmdlet will go through all the logs in IIS under the W3SVC1 Directory and it will take time depending the size of logs OR if you want you can add the –StartDAte and –EndDate to the specific dates are looking for.

More than 123000 hits and they are all iPhone

 

When I sort the same sheet with Hits the minimum hits are generated by Windows Mobile 7.0

After doing this extensive research I am still unable to understand why there are so many hit by the devices which are non-Microsoft and why iPhone has the maximum hits on the server. I will end this post with these questions in my mind and I hope Microsoft or MS Exchange will look into this and provide some solution.

 

Run Against a specific date

Export-ActiveSyncLog -FileName: “C:WINDOWSsystem32LogFilesW3SVC1ex120126.log” -StartDate:”2012/01/25″ -EndDate:”2012/01/26″ -UseGMT:$true -OutputPath:”c:reportsthu”

The output is something like that with 6 files

Output of the Servers.csv

When I look at the UserAgent CSV file from the date the user’s complained I was surprised to see there were more than 293000 hits in total from 452 Unique Devices and out which 172 Unique Devices had More than 123000 hits and they are all iPhone

When I sort the same sheet with Hits the minimum hits are generated by Windows Mobile 7.0

After doing this extensive research I am still unable to understand why there are so many hit by the devices which are non-Microsoft and why iPhone has the maximum hits on the server. I will end this post with these questions in my mind and I hope Microsoft or MS Exchange will look into this and provide some solution.

Soon I will update the part 2 of this post which will cover the ActiveSync Report using Log Parser comparing the same data and two different output.

Related Links

http://support.microsoft.com/kb/2469722
http://support.apple.com/kb/TS339
http://tools.ietf.org/html/rfc1945#section-10.15
http://msdn.microsoft.com/en-us/library/ee204257(v=exchg.80).aspx
http://msdn.microsoft.com/en-us/library/dd299446(v=EXCHG.80).aspx