SharePoint Online | Export File Hashes
Good day, I need assistance with a PowerShell Script to export file names, last modified date, file size, and file hash, from all libraries in a specific SharePoint site. Hoping someone could assist me, as I've searched far and wide, and could not…
A Powershell Script to remove Microsoft Teams Classic
Anyone who can share a powershell script that will remove Microsoft Teams Classic? Current script i have is that it will detect if Teams classic is installed then it will proceed to remove. Check if Microsoft Teams Classic is installed $teamsClassic =…
Modify Office's settings via Registry/GPO
Good afternoon! In your company, you’re using Office 2016 Professional Plus. Recently, you’ve collected all the user configurations to create group policies. While some settings could be changed using Administrative Templates, there are still some that…
how run MicrosoftProgram_Install_and_Uninstall.meta.diagcab tools on sccm or Powershell?
how run MicrosoftProgram_Install_and_Uninstall.meta.diagcab tools on sccm or Powershell and create answer file ?
Best Practices for Securely Handling Credentials with Connect-AzAccount in PowerShell while accessing Azure key vault
I'm currently working on a project that involves connecting to Azure services using the Connect-AzAccount cmdlet. While this cmdlet works well for establishing connections, I'm concerned about the security implications of storing credentials on the…
Object reference not set to an instance of an object.
Hi all, We are trying to apply pnp-template by following this article. https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/applying-pnp-templates I have downloaded the 'theperspectivepnp' from the site and created a 'Mysite' in my tenant.…
Cloud Shell Blank, No Heading Bar
I used Cloud Shell before w/o problem. Today, my Cloud Shell is blank, no cursor, no response when typing text. There is no header bar for me to select the shell (PowerShell / Bash). I checked the internet for solution, and tried such things as using…
How to remove an app from user context and deploy this script via Intune
Hey guys, So I cant figure out why my script is not working. I am trying to uninstall a application called MicroSIP (website: microsip.org) via Microsoft Intune on all of our Windows machines but the script is says "not installed" or…
Can't remove an app via Intune from user context
I am trying to uninstall a application called MicroSIP via Microsoft Intune on all of our Windows machines but the script is says "not installed" every time I run it. I have tied multiple scripts but no luck. I did find my issue. So here it is.…
Remove app from user context and deploy this script via Intune
I am trying to uninstall a application called MicroSIP via Microsoft Intune on all of our Windows machines but the script is says "not installed" every time I run it. I have tied multiple scripts but no luck. I did find my issue. So here it is.…
Powershell script to find freespace available on disk and send email
Here is the code and I am getting email The F: drive is below 150 GB and only at 0 GB - Please resolve, but that is not true. F drive is not low in space $disksize = $null $limitGB = $null $freeSpaceGB = $null Parameter $limitGB = 150 $disksize =…
Certificate authentication to Azure stopped work
Hi guys I found out that all my scripts that use Azure App Registration and Certificate to authenticate stopped work. I have a App registered in Entra ID with required permissions, certificate is valid. I also have administrator rights on server and…
Request for Assistance with PowerShell Script for Email Signature Generation
Dear Microsoft Support Team, I hope this message finds you well. I am reaching out to seek assistance in developing a PowerShell script for automated email signature generation in our organization. I haven't started the script yet and would greatly…
How to remove apps from user context and deploy this script via Intune.
Hi everyone, I was trying to remove some apps such as Chrome/Firefox/Zoom and others from many computers in my organization. These apps were installed manually by the user without admin rights(User Context), I was trying to create a script to remove…
Can we run powershell script to shutdown the vms automatically?
I know we have auto shutdown option provided by azure to auto shut down the VM's at perticular intervals. But I have achieve this by running a script. Can anyone help me with the powershell script.
Get-MgEntitlementManagementCatalogResourceRole - Can only retrieve roles for one resource
Hi, Microsoft.Graph.Identity.Governance I am not sure if I am doing something wrong, or whether there is an issue, but I am unable to retrieve the role details for my catalog resources. I have 7 resources assigned to my catalog, but if I run the below…
[Import-Certificate], UnauthorizedAccessException E_ACCESSDENIED when tring to import cert into Cert:\LocalMachine\TrustedPublisher
Hi, I'm really struggling with this one! So a bit of context first : I'm using a powershell module that I've made on my own. This module automatically creates à hyper-v VM, installs windows in it, runs scripts that install applications silently, syspreps…
How to find collapsible sections in home page of all sites using pnp powershell?
How we can find collapsible sections in home page of all SharePoint Online Sites using PnP Powershell? Get-PnPPageComponent -Page Home is not giving any output. PropertiesJson is blank for PageText webpart. How to disable this section collapsible using…
Powershell script getting error message - Get-NetAdapter : Invalid class
Hello all, I'm a noob here... I'm trying to run a script to get adapter info but getting error message. My goal is to get the adapter DNS ip info and changing it. Can someone tell whey I'm getting this message. Current system: Windows 11 Pro (build…
Connect-SPOService : No valid OAuth 2.0 authentication session exists ?
How to fix the issue to connect to SharePoint Online using PowerShell like below? Because when I am using the PowerShell ISE, and then the command: Connect-SPOService -Url 'https://CompanyName-admin.sharepoint.com' I got the error:…