Category Archives: Powershell

Hide External Contact from Office 365 GAL


Open Windows PowerShell Enable Scrpits to run in PowerShell Set-ExecutionPolicy RemoteSigned Run the following commands in order: a.     $LiveCred = Get-Credential Enter an Office 365 administrator address and password on open window. b.     $Session = New-PSSession -ConfigurationName Microsoft.Exchange –ConnectionUri https://ps.outlook.com/powershell/ -CredentialContinue reading

Posted in Powershell | Tagged

Hide, Un-hide, Mailboxes and Block Office365 Users


——- 1. Open Windows PowerShell Click Start > All Programs > Accessories > Windows PowerShell Note: Right-click Windows PowerShell and select Run as administrator. If you get a user account control prompt that asks if you would like to continue, … Continue reading

Posted in Powershell | Tagged , ,

CAL items are restored automatically


Issue Definition: Office 365 Deleted calendar events keep coming back. Resolution: This action will need the global administrator permission for the Office 365 account. 1. Please start the Windows PowerShell in the PC and run it as administrator. 2. Then … Continue reading

Posted in Powershell | Tagged

Set No expire password for Office365 users


Set password Expire policy for Office 365 Users Install following components on your management PC: Download and install Microsoft Online Services Sign-In Assistant32-Bit version: Microsoft Online Services Sign-In Assistant (IDCRL7) http://go.microsoft.com/fwlink/p/?linkid=23629964-Bit version: Microsoft Online Services Sign-In Assistant (IDCRL7) – 64 … Continue reading

Posted in Powershell | Tagged

Import bulk users (windows 2008)


Following Windows PowerShell command imports users from .csv file: import-csv d:\source\User1.csv | foreach-object {new-aduser -Name $_.Name -DisplayName $_.DisplayName  -UserPrincipalName $_.UserLogonName -EmailAddress $_.EmailAddress -sAMAccountName $_.ExchangeAlias -Description $_.Description -surname $_.LastName -givenName $_.FirstName -Enabled $true -ChangePasswordAtLogon $false -AccountPassword (ConvertTo-SecureString “Password123” -AsPlainText -force) -PassThru} … Continue reading

Posted in Powershell, Windows | Tagged