Hi i followed this instrcution from the below link and workinfine
https://practical365.com/saving-credentials-for-office-365-powershell-scripts-and-scheduled-tasks/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
i have a MS Teams script with working fine, howeever i would like schdeule in task to run the script on evary day in a task schedular , i have a servcie account, with no MFA enabled . how to do it
i try to secure the password and called it , it is keep giving the below errror
Read-Host "Enter Password" -AsSecureString | ConvertFrom-SecureString | Out-File "D:\ra\Password.txt"
$TenantUname = "ram@dqw.com"
$TenantPass = cat "D:\ra\Password.txt" | ConvertTo-SecureString
$TenantCredentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $TenantUname, $TenantPass
Connect-MicrosoftTeams -Credential $TenantCredentials
Connect-MicrosoftTeams : One or more errors occurred.: unknown_user_type: Unknown User Type
At line:1 char:1
Connect-MicrosoftTeams : One or more errors occurred.
At line:1 char:1
Any help would be much apprcaited
Hi i followed this instrcution from the below link and workinfine
https://practical365.com/saving-credentials-for-office-365-powershell-scripts-and-scheduled-tasks/