Just had a powershell script that was failing When I went in to the registry key that stores the results of the script running I saw some corrupted characters The problem turned out to be I had a file that was encoded in UTF-16LE So I saved the powershell script as...
Powershell
Send-MailMessage not able to send an email through Office 365 using App Password
Send-MailMessage & App Password Doesn't Work So today I tried to test SMTP Auth using Powershell $appPassword = 'my_app_password_here' $From = "[email protected]" $To = "[email protected]" [securestring]$secStringPassword = ConvertTo-SecureString $appPassword...
Remove the Mail App – Intune PowerShell Script
Create this script and run it in user context I called my script RemoveMailApp.ps1 # Important: set to run this in user context Get-AppxPackage Microsoft.windowscommunicationsapps | Remove-AppxPackage
Why S3-WriteObject Kept the Upload Going When I Control-C’d it
I would recommend just using the AWS Cli for windows instead of powershell Uploading 650MB chunks using S3-WriteObject. Didn't want to choke link during day so CTRL-C'd to exit the powershell script and found in the morning that the upload had happened any way. The...