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
Tag Archives: script
sample log on script to add network drive and shortcut
Gallery
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