Category Archives: PowerShell

Powershell Form – Send Encrypted PDF Form

Due to recent changes in global privacy and data protection laws ( GDPR & Israeli Privacy Law) I had to find a quick and easy  way to send encrypted PDF files by email. So, after 6 hours of searching and … Continue reading

Posted in Cyber, PowerShell, Profile, Scripts, Security | Tagged , , , | Leave a comment

Fix – Unable to remove this domain” error when you try to remove a domain from Office 365”

לא פעם נתקלתי במצב בו יש צורך להסיר Domain מ- Tenant מסויים ב- Office365 , למשל כאשר ה- Domain שוייך ל- Tenant ויש צורך לשייך אותו ל-Tenant אחר. *מאמר זה מדבר על דומיין שהוא לא Federated כאשר מנסים להסיר את … Continue reading

Posted in Office365, Office365 -HE, PowerShell | Tagged , | Leave a comment

Teams Powershell – Create new Team and add users from CSV

לאחרונה מיקרוסופט הוציאה תמיכה  של פקודות המותאמות   ל-Teams דבר המאפשר  לאנשי ה-IT לבצע פעולות יומיומיות פשוטות ביעילות על ידי שימוש באוטומציה. בעזרת הפקודות נוכל לבצע פעולות כמו: יצירת צוותים חדשים ערוצים חדשים בקבוצה הוספת  והסרה מספר רב של חברים הגדרת … Continue reading

Posted in Office365, PowerShell, Scripts, Teams, Teams | Tagged , , , , | Leave a comment

password never expires

<# This script find all the users whose passwords never expire and send a report to mail. Idit Bnaya #> Import-Module activedirectory $date=Get-Date $date1 = $date.ToShortDateString() $date2 = $date1.Replace("/","_") $FolderPath = ‘c:\temp’   Get-ADUser -filter * -Properties PasswordNeverExpires | where … Continue reading

Posted in PowerShell | Tagged , | Leave a comment

Invoke-Command in PowerShell script without password