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"
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRaumG3vWkA4YXnOeiP5OSVzRL6EiSwpZ4HsU4y90moSV6-NT2S5WC5fqEgE1NzIWVvj6ymggLI35pmHHIW2NQ7aiJgoKeCoBFI99BYjW1iWwyIq54mK5zSUtXcwB0gDqMt-C2dcV1SfAy/s1600/b.png)
To View all Parameter you can Type Get-Help New-MsolUser -Detailed
Remove User
Remove-MsolUser
-UserPrincipalName majid@mubbi.com
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtAdKGMIYR9ewtX7KpRYS8O3RYpoHjZwBT7CsAKN-gbqKiNkau9_WvLKzcmPtGKA4gdXCukZ-T7EPb-ltq-BOkAsnTbAHQG_azQbT0rbcv9mPZ7MN_tpWATA3zCaDSwQsKEJOAE7NZYUxy/s1600/a.png)
More Details will be posted in Next Blogs....
No comments:
Post a Comment