It wasn't a big challenge until I try to change permissions to files on OneDrive to grant access only for Reviewers for that activity, and remove permissions for everyone not directly involved in the review activity. So I create this powershell script able to invoke th...
Add line to a text file just after a specific line with PowerShell add lines of text to the TOP of a existing txt file in powershell Add Members to "Delivery Management" of the Distribution Group in Office 365. Add multiple ip's to a windows firewall rule Add Multiple Lines in Power...
Azure PowerShell - used to obtain an access token to talk to the OneNote Class Notebooks API. Two Microsoft 365 account with OneDrive set up - This sample will transfer a notebook from one educator's OneDrive to another's. To ensure that OneDrive is set up, log on to Microsoft...
Microsoft recommends that you use roles with the fewest permissions. Minimizing the number of users with the Global Administrator role helps improve security for your organization. Learn more about Microsoft Purviewroles and permissions. You'll need to use a work or school account that has been ass...
I was setting up a new team for my organisation and I wanted to add a calendar to the team by importing it as a site. For the calendar, i planned on using...
Use PowerShell to add the new subdomain, which has its root domain's default authentication type. The Microsoft Entra ID and Microsoft 365 admin centers don't yet support this operation. PowerShell Copy # Connect to Microsoft Graph with the required scopes Connect-MgGraph -Scopes "Domain.Rea...
Change Administrator in Windows 11 via PowerShell Typepowershellto the Windows 11 search box and right-clickWindows PowerShellto run it as administrator. TypeGet-LocalUserand pressEnter. Execute the command:add-LocalGroupMember -Group “Administrators” -Member “Account Name”. Replace ”Account Nam...
We are announcing an upcoming breaking change to the default orchestration mode for Virtual Machine Scale Sets created on Portal, PowerShell, and Azure CLI.
Change file attributes with PowerShell It is possible to change file attributes using the PowerShell console. There are a couple of cmdlets which can be used to view, set, or remove them. Here is how you can use them. Open a new PowerShell consoleand use the following commands. ...
On Exchange Server in your on-premises environment, open the Exchange Management Shell. Make the change that you want to the distribution group by using the appropriate Windows PowerShell cmdlet. For example, to remove the distribution group, use the Remove-DistributionGroup cmdlet tog...