What You Required:
- Use Windows 7 or Windows Server 2008 R2 computer.
- Windows PowerShell and the .NET Framework 3.5.1 enabled.
- Microsoft Online Services Sign-in Assistant.
- Office 365 cmdlets for PowerShell 2.0
Where
to start:
Open Windows PowerShell and type import-module
MSOnline ( Import Office 365 Module)
Or
Click at start -> All Programs ->Microsoft Online Services -> Microsoft Online Services Module for Windows PowerShell
Connect-MsolService
(Sign In Dialog Will Appear, Enter User name and Password to Connect.)
Starting
from Simple Commands
Returns the Details of Given User
Getting Help
Get-Help
<CommandName>
Example
Get-Help Get-MsolUser
For More
Detailed Help you can send Extra Parameter for it
- Get-Help Get-MsolUser -examples
- Get-Help Get-MsolUser -detailed
- Get-Help Get-MsolUser –full
Add User
New-MsolUser
-UserPrincipalName majid@mubbi.com -DisplayName "Majid Rehan"
-FirstName "Majid" -LastName
"Rehan"
To View all Parameter you can Type Get-Help New-MsolUser -Detailed
Remove User
Remove-MsolUser
-UserPrincipalName majid@mubbi.com
More Details will be posted in Next Blogs....
No comments:
Post a Comment