Author Archives: Aboobakar Sanjar

Powershell login Script for Office 365

Copy the following content to a notepad and save as .PS1 Start-Service WinRM Set-ExecutionPolicy RemoteSigned Import-Module MSOnline $O365Cred = Get-Credential $O365Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell -Credential $O365Cred -Authentication… Read more »

AD Computer Account Bulk Import

There is small script to import Active Directory Computer account in bulk using CSV file. Import-Module ActiveDirectory $CSV='[PATH]\Computers.csv’ $OU=’OU=Proctor,OU=Workstations,DC=domain,DC=local’ Import-Csv -Path c:\Computer.csv | ForEach-Object { New-ADComputer -Name $_.ComputerAccount -Path $OU… Read more »