Microsoft Intune now has the ability to run ‘on demand’ PowerShell scripts on devices. My video above takes you through the basics of uploading your scripts to Intune and then executing them on a device.
The direct video URL is:
Microsoft Intune now has the ability to run ‘on demand’ PowerShell scripts on devices. My video above takes you through the basics of uploading your scripts to Intune and then executing them on a device.
The direct video URL is:
Join me for an update of the Microsoft Cloud news as well as some thoughts around the features I don’t see used enough in Microsoft 365.
You can listen directly to this episode at:
https://ciaops.podbean.com/e/episode-305-logs/
Subscribe via iTunes at:
https://itunes.apple.com/au/podcast/ciaops-need-to-know-podcasts/id406891445?mt=2
The podcast is also available on Stitcher at:
http://www.stitcher.com/podcast/ciaops/need-to-know-podcast?refid=stpr
Don’t forget to give the show a rating as well as send me any feedback or suggestions you may have for the show.
This episode was recorded using Microsoft Teams and produced with Camtasia 2023.
Brought to you by www.ciaopspatron.com
Resources
Run a remediation script on-demand (preview)
Updated Requirements for SMTP Relay through Exchange Online
Microsoft 365 Defender news – July 2023
Microsoft Entra new feature and change announcements
Learn about Microsoft Search in Microsoft 365
I can happily confirm that I have again be recognised by Microsoft again as an Most Valued Professional (MVP) in the Office 365 Apps and Services category for 2023 – 2024.
As always, I’m humbled by the recognition and thank Microsoft for awarding this to me and also making the program available. This is my 12 consecutive year as an MVP and I am very proud of that achievement, given the rapid pace of change with technology and especially the Microsoft 365 platform.
Being an MVP allows me to better share my knowledge of the M365 service with others. It provides me the ability to interact with s skilful set of peers who are also MVPs as well as with people at Microsoft directly. That is very beneficial to getting even more to grips with what M365 can do and the change it can make for businesses, especially small businesses.
I look forward to continuing to doing my best into the future around helping people understand M365 through mediums such as this blog, my podcast and YouTube channel. The core of being an MVP is that you love to help others with Microsoft technology so if you have a question, I’m all ears.
Again, I thank Microsoft for the recognition and I look forward to sharing even more going forward..
A common need I see is to be able to have a Document Library in SharePoint Online be changed so that all the permissions throughout inherit from the parent as they would have by default typically. This ‘re-inheritance’ can be done manually, but once you start having a few unique permissions is a deep structure, doing so can be challenging and time consuming.
Unique permissions look like the example above, where you can see the standard banner that appears at the top of the page.
The answer to ‘re-inheriting’ permissions in bulk is to use PowerShell. I have created a script to do exactly this, which you can find here:
https://github.com/directorcia/Office365/blob/master/spo-doclib-reset.ps1
Before you run this script, you’ll need to connect to the Document Library you want to change using PnP.PowerShell. Luckily, I also have a script for that here:
https://github.com/directorcia/Office365/blob/master/o365-connect-pnp.ps1
As I mentioned in a recent article, you’ll need to run all of these scripts typically with PowerShell V7.
The connection script will allow you to select your SharePoint site as shown above.
The connection process will then do a web code login to the selected Document Library as shown above.
After the connection script has completed you should the run the reset script. When you do you’ll see a window showing you all the items you can select to reset. Pick the one you want to continue.
The reset script will then loop through all the items it can find and set their permission back to inheritance.
If the original SharePoint location is refreshed, you’ll see that all items now inherit as expected, as shown above.
This should make getting back to a know starting point with permissions in a SharePoint Online Document Libraries much easier. However, with any permission changes you need to take care and understand the ramifications of what you are doing and the impact they will have. Remember, this script resets ALL permissions for ALL items back to inheriting.
I have tested as best as I can, but if you find any issue please let me know and remember to run this in PowerShell V7!
The latest pnp.powershell module (V2.X and above) now won’t work with PowerShell v5. Thus, I have updated my PnP connection script:
https://github.com/directorcia/Office365/blob/master/o365-connect-pnp.ps1
to accommodate this.
Thus, if you attempt to run this script in PowerShell version 5 with the latest pnp.powershell module you will typically see:
and the error is:
Could not load file or assembly ‘System.Management.Automation, Version=7.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.
However, when you run the script in PowerShell V7 you’ll see:
that the connection is successful.
I have also taken the opportunity to remove the dependency in the script as well on the now depreciated module MSONLINE and replaced it the Microsoft.Graph module.
This kind of signals the beginning of the end for modern cloud modules in PowerShell 5. However, some still require PowerShell 5 but I expect that to change.
In summary, the latest pnp.powershell modules require PowerShell version 7 and I have updated my connection script to accommodate this.
Join me for the free monthly CIAOPS Need to Know webinar. Along with all the Microsoft Cloud news we’ll be taking a look at Microsoft Flow.
Shortly after registering you should receive an automated email from Microsoft Teams confirming your registration, including all the event details as well as a calendar invite.
You can register for the regular monthly webinar here:
(If you are having issues with the above link copy and paste – https://bit.ly/n2k2307
The details are:
CIAOPS Need to Know Webinar – June 2023
Friday 30th of June 2023
11.00am – 12.00am Sydney Time
All sessions are recorded and posted to the CIAOPS Academy.
The CIAOPS Need to Know Webinars are free to attend but if you want to receive the recording of the session you need to sign up as a CIAOPS patron which you can do here:
or purchase them individually at:
Also feel free at any stage to email me directly via director@ciaops.com with your webinar topic suggestions.
I’d also appreciate you sharing information about this webinar with anyone you feel may benefit from the session and I look forward to seeing you there.
https://www.slideshare.net/directorcia/june-2023-ciaops-need-to-know-webinar
If you are not a CIAOPS patron you want to view or download a full copy of the video from the session you can do so here:
http://www.ciaopsacademy.com.au/p/need-to-know-webinars
Watch out for next month’s webinar.
If you want to be able to find out what has happened in Microsoft 365 you’ll need to ensure that you have enabled the appropriate logs as well as being able to view information there when needed. This video shows you the basic locations for logs in Microsoft 365 as well as the different services that cane be used to query and report on these. It is important to have all your logging enabled well in advance of when you’ll need it. This video should get you started.
Video link – https://www.youtube.com/watch?v=-YSHlo4Cvgo