2,134 questions with PowerShell-related tags

Sort by: Updated
1 answer

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…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,800 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-15T09:52:02.4333333+00:00
Riaan Smith 0 Reputation points
commented 2024-05-20T08:09:15.55+00:00
Riaan Smith 0 Reputation points
1 answer

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 =…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,205 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,906 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-20T05:45:02.89+00:00
Bob Pendon 0 Reputation points
edited the question 2024-05-20T07:54:22.2666667+00:00
JiSheng-MSFT 230 Reputation points Microsoft Vendor
0 answers

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…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,343 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,246 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,963 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,400 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-20T07:39:15.9966667+00:00
Andrés Jiménez 0 Reputation points
0 answers

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 ?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-20T05:49:46.8866667+00:00
AHMAD SAUD M ALDANDN 0 Reputation points
1 answer

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…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,141 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,774 questions
asked 2024-05-13T04:14:27.36+00:00
Subhash Kumar Mahato 55 Reputation points
commented 2024-05-20T05:18:21.06+00:00
Navya 4,395 Reputation points Microsoft Vendor
2 answers

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.…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,800 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-16T17:50:00.6166667+00:00
gokulnath palani 86 Reputation points
answered 2024-05-20T05:10:23.2466667+00:00
Ling Zhou_MSFT 13,905 Reputation points Microsoft Vendor
1 answer

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…

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
651 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-15T15:39:11.7233333+00:00
Lawrence Man 11 Reputation points
commented 2024-05-18T05:29:27.0633333+00:00
Lawrence Man 11 Reputation points
1 answer

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…

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,747 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T22:37:55.2+00:00
Johnny T 0 Reputation points
answered 2024-05-18T03:54:49.9033333+00:00
Gowtham CP 1,010 Reputation points
0 answers

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.…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,456 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T22:54:58.47+00:00
Johnny T 0 Reputation points
0 answers

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.…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,456 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T22:50:49.1433333+00:00
Johnny T 0 Reputation points
3 answers

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 =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-16T19:51:18.0666667+00:00
Avyayah 1,251 Reputation points
answered 2024-05-17T21:37:09.58+00:00
Andreas Baumgarten 98,531 Reputation points MVP
0 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-01-24T14:00:16.7466667+00:00
Gold, Petr 6 Reputation points
commented 2024-05-17T17:24:53.9033333+00:00
James M. Arthurs 41 Reputation points
1 answer

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…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,400 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T11:27:56.0066667+00:00
Nsovo Bostonia Maluleke 41 Reputation points
answered 2024-05-17T15:24:48.1333333+00:00
Rich Matheisen 45,111 Reputation points
6 answers One of the answers was accepted by the question author.

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…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,456 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-07-20T17:47:21.36+00:00
TZ 46 Reputation points
commented 2024-05-17T14:01:01.98+00:00
Johnny T 0 Reputation points
2 answers One of the answers was accepted by the question author.

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.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,246 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T08:53:23.3+00:00
Krishna Aswin 40 Reputation points
accepted 2024-05-17T12:09:46.03+00:00
Krishna Aswin 40 Reputation points
1 answer

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…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,774 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-14T15:29:45.9933333+00:00
Mark Brown 25 Reputation points
answered 2024-05-17T10:40:12.2233333+00:00
Mark Brown 25 Reputation points
0 answers

[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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T07:40:14.98+00:00
Julien POULAIN 0 Reputation points
edited the question 2024-05-17T07:46:01.5033333+00:00
Julien POULAIN 0 Reputation points
1 answer

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…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,800 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-15T15:49:02.9366667+00:00
H Risbud 251 Reputation points
commented 2024-05-17T02:20:43.0333333+00:00
AllenXu-MSFT 16,561 Reputation points Microsoft Vendor
0 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2024-05-17T00:35:40.6833333+00:00
GreenParks2024 0 Reputation points
5 answers

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:…

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,243 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,800 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,576 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,830 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,134 questions
asked 2023-02-20T02:47:20.1466667+00:00
EnterpriseArchitect 4,866 Reputation points
edited a comment 2024-05-16T23:23:05.7866667+00:00
Diego Fernando Alvarez Rodriguez 0 Reputation points