Run PowerShell Script with Windows Task Scheduler

More ore less quick note for myself - on how to run a PowerShell Script using Windows Task Scheduler. Open Task Scheduler A quick way to open Task Scheduler: WIN + R, then run taskschd.msc. Create New Task Open “Task Scheduler Library” → “Create New Task”. Set all the self-explanatory options like Name, Description, User Account, Triggers, etc. Set Action Setting Value Action Start a program Program/script powershell.exe Add arguments (optional) -file "C:\Path\Script....

2021-10-13 · 1 min · Andreas Dieckmann

Set Teams Meeting Dial-in number using PowerShell

You can using Microsoft Teams Audio Conferencing licenses to get Dial-In phone numbers for your meetings. The license is needed per user that creates the meeting invites. The phone number in the meeting invite is based on the UsageLocation attribute of the user - once when the user gets enabled for Audio Conferencing. So even if you fix a wrong UsageLocation, the user will still have the old dial-in number assigned....

2021-10-05 · 2 min · Andreas Dieckmann

Moving from Skype for Business to Teams sucks

The upgrade process from Skype for Business Online to Microsoft Teams is a disaster. I had several SMB clients reporting unnecessary errors regarding Teams/Skype. With unnecessary I mean: They had no issues using Teams until 2021-07-31. Issue: Suddenly Skype Meetings are back in Outlook mobile One client reported, that they suddenly have Skype Meetings in Outlook on iOS again, instead of Teams Meetings. That particular client manages their Microsoft 365 tenant themselves....

2021-08-18 · 4 min · Andreas Dieckmann

Retrieve the Timezone of a Sharepoint Online Site using PowerShell

I’ve been looking for a way to retrieve the Timezone setting of a Sharepoint Online Site via PowerShell. Apparently there is not much good info publicly available. I looked for a way to use with the standard SPO PowerShell module named Microsoft.Online.SharePoint.PowerShell. There are some infos online about using the PNPOnline Module, but that was not practical in my case. There are even some really annoying articles out, that claim to to provide a PowerShell way....

2021-07-09 · 5 min · Andreas Dieckmann

How long are deleted Teams Channels retained?

If you’re asking yourself “How long are deleted Teams channels retained?” or “For how long can I restore a deleted Teams channel?” you can find the answer relatively quick. But mostly the original source in the Microsoft documentation is missing. Answer Deleted Microsoft Teams Channels are retained for 30 days. Official Source In https://docs.microsoft.com/en-us/microsoftteams/limits-specifications-teams#teams-and-channels under the table Teams and channels in footnote 4 it’s stated: Deleted channels can be restored within 30 days....

2021-06-29 · 1 min · Andreas Dieckmann

Deploy an Azure NAT-Gateway for Azure Virtual Desktop by PowerShell

I created a PowerShell script to automatically deploy an Azure NAT-Gateway into an Azure Virtual Desktop environment. That’s useful, if you to need one static IP-Address for your AVD machines. I created the script as a submission for the Nerdio Hackathon 2021. My first Hackathon attendance :^). Update 2021-10-05 - I actually won first place, but apparently not many people participated in the contest. The Nerdio team are a bit disappointed, so they didn’t publish any announcements....

2021-06-27 · 1 min · Andreas Dieckmann

My simple serverless journey was not that easy

Serverless Computing is an interesting concept. You can execute a script or programm without setting up the infrastructure behind it (servers, storage, networks, etc.). You just write your code and it gets executed. But Serverless doesn’t mean “without any servers” - you just don’t need to worry about them. That’s not that much of a difference to renting classic webspace from any webhosting service and putting your PHP scripts there. Nowadays Serverless usually means some kind of modern architecture that allows you to run your application code....

2021-05-02 · 8 min · Andreas Dieckmann

Office 365 Trial Licenses

You can register for a free Office 365/Microsoft 365 Tenant to try it out. Or you can add trial licenses to your existing tenant. You’ll get a 30 day trial phase. The trial contains 25 user licenses. After the expiration of the trial phase, you can delete the tenant or extend the trial. Alternatively you can purchase licenses to continue to use the services. A list of links to the trial licenes is further below in this article....

2020-06-10 · 2 min · Andreas Dieckmann

Check NTFS Permissions using Powershell

So I needed a quick way to check a few folders for correct permissions. We had Windows Virtual Desktop/FSLogix user profile containers in an Azure Files share. Some of these profile folders had wrong permissions. The correct storage permissions are: User Account Folder Permissions Users This Folder Only Modify Creator / Owner Subfolders and Files Only Modify Administrator (optional) This Folder, Subfolders, and Files Full Control Official FSLogix documentation: Configure storage permissions for use with Profile Containers and Office Containers...

2020-05-20 · 1 min · Andreas Dieckmann

Exchange Online: Apple Internet Accounts - Need admin approval

When the first users logged into Office 365 with his iPhone to sync his Contacts and Calendar, he got this dialogue: Need admin approval Apple Internet Accounts Apple Internet Accounts needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it. By the way, the app used to be called “iOS Accounts” and was apparently renamed in early 2020....

2020-05-10 · 5 min · Andreas Dieckmann