Vigyata.AI
Is this your channel?

Use AI to Create a Powershell Script - with Google Gemini

211 views· 8 likes· 12:20· Mar 30, 2026

🛍️ Products Mentioned (5)

Tired of memorizing complex M365 commands? In this video, I show you how to Create a PowerShell Assistant to Manage Microsoft 365 with Google Gemini, allowing you to manage users, licenses, and security via natural language. Link to download the instructions for Gemini Gem PowerShell Assistant: https://subscribepage.io/tuTzEj Gemini Gems Video: https://youtu.be/96AeV4D8w-A 🙌 SUPPORT THE CHANNEL - Hit the THANKS button in any video! 🔊 Audio - https://amzn.to/36OWOTY 🎥 Camera - https://amzn.to/3wGh0Cg 🛍 Support me with your Amazon purchases: https://amzn.to/3Ntk76S ✔ Subscribe to our YouTube channel: http://www.youtube.com/channel/UCE-l8lUlVQRVN_pz2zrErAA?sub_confirmation=1 🌍 Connect with us on: Twitter: https://twitter.com/AskItbe Facebook: https://www.facebook.com/itbusinessessentials 🎞 Visit our YouTube channel: https://www.youtube.com/channel/UCE-l8lUlVQRVN_pz2zrErAA *** Visit and like our Facebook page: https://www.facebook.com/itbusinessessentials *** Visit our website: http://itbusinessessentials.com/ Business Inquiries ONLY info@itbusinessessentials.com FTC Legal Disclaimer - Some links found in the description box of my videos may be affiliate links, meaning I will make a commission on sales you make through my link. This is at no extra cost to you to use my links/codes, it's just one more way to support me and my channel! #GSuite #GoogleWorkspace #Microsoft365 #Office365 #EmailService #ITBusinessEssentials #CollaborationTools

About This Video

Have you ever opened PowerShell, saw that blinking cursor, and thought, “Yeah… I’m not doing this today”? That was me for years. I knew PowerShell was powerful for Microsoft 365, but every time I needed a script I’d waste time searching online, copying commands, fixing errors, and sometimes just giving up and going back to the Microsoft 365 admin center. In this video, I show you what changed: I built a Google Gemini Gem that acts like my personal PowerShell assistant for Microsoft 365. I walk you through creating the Gem, the exact kind of instructions I give it (prefer modern modules like Microsoft Graph and Exchange Online, include connection steps, add comments, and explain the script). Then I demo real admin tasks: listing all shared mailboxes and exporting the results to a CSV, finding mailboxes with email forwarding enabled (a common compromise indicator), and pulling inbox rules across mailboxes to spot hidden rules attackers may create. The big takeaway is simple: I don’t need to memorize complex commands anymore—I describe what I want, review what the AI generates, understand it, and run it. It’s like having a PowerShell expert on demand, and it’s made me use PowerShell almost every day.

Frequently Asked Questions

🎬 More from IT With Carlos