Tag Archives: script

On-prem to Office 365 Migration: PowerShell Script Collection

Connect to Azure Active Directory PowerShell without Password Prompt #Use Case: Log on to Office 365 tenant without typing credentials. $User=”Raihan@tenant.onmicrosoft.com” $Password=ConvertTo-SecureString -String “MyPassword” -AsPlainText -Force $O365CREDS= New-Object –TypeName “System.Management.Automation.PSCredential” –ArgumentList $User, $Password #$O365CREDS = Get-Credential -Username Raihan@tenant.OnMicrosoft.Com $SESSION = … Continue reading

Gallery | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

sample log on script to add network drive and shortcut

I am posting a working bat file to automate network drive and shortcut for AD users. This bat file works excellent if you desire to push network drive through AD logon script. You can copy these in a notepad and save … Continue reading

Gallery | Tagged , , | Leave a comment