Powershell ile Toplu Ofis 365’te Kullanıcı Açma Kodları

1.Öncelikle Powershell’i bilgisayarımızda yönetici olarak çalıştırıyoruz.

2. “Connect-MsolService” kodu ile ofis 365’e yönetici hesabı ile giriş yapıyoruz.

3. Import-Csv -Path “C:\Users\Adem\Desktop\HayatBoyuKursiyerler6.csv” | foreach {New-MsolUser -DisplayName $_.DisplayName -FirstName $_.FirstName -LastName $_.LastName -UserPrincipalName $_.UserPrincipalName -Title $_.JobTitle -Department $_.Department -StreetAddress $_.Address -City $_.City -State $_.State -Country $_.Country -UsageLocation $_.UsageLocation -LicenseAssignment $_.AccountSkuId -Password $_.Password -ForceChangePassword $True} | Export-Csv -Path (“{0}” -f “.\Microsoft2Done.csv”) bu kod ile de hazırlamış olduğumuz .csv dosyasında bulunan kullanıcıları açıyoruz.

What is your reaction?

0
Excited
0
Happy
0
In Love
0
Not Sure
0
Silly

You may also like

Comments

  1. The most difficult thing is the decision to act, the rest is merely tenacity. The fears are paper tigers. You can do anything you decide to do. You can act to change and control your life; and the procedure, the process is its own reward.

    1. Very little is needed to make a happy life; it is all within yourself, in your way of thinking.

  2. Do not mind anything that anyone tells you about anyone else. Judge everyone and everything for yourself.

  3. There is only one corner of the universe you can be certain of improving, and that’s your own self.

Leave a reply

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir