2,136 questions with PowerShell-related tags

Sort by: Updated
0 answers

Effect of MC792991 Disablement of Symmetric keys for Microsoft Entra first-party applications Service Principals

Hello Team, Greetings! This is Joni.   Due to the Microsoft post as follows,  a partner need to address how this affects to end users' resources and workloads.  Disablement of Symmetric keys for Microsoft Entra first-party applications Service Principals…

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,144 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,802 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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,782 questions
asked 2024-05-20T14:08:33.86+00:00
yulei0917 0 Reputation points
commented 2024-05-20T20:39:22.86+00:00
Gill, Tim 25 Reputation points
1 answer

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,136 questions
asked 2024-05-17T22:54:58.47+00:00
Johnny T 0 Reputation points
commented 2024-05-20T16:17:34.57+00:00
MotoX80 32,091 Reputation points
0 answers

Listing the names of manual approvers of azure devops pipeline builds

Hi, I am looking to write a PowerShell script to retrieve the names of the approvers of manual validation tasks within azure devops pipelines. We use ManualValidation@0 tasks within the yaml code of our release pipelines for our approvals. The names of…

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
992 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 questions
asked 2024-05-20T16:00:11.25+00:00
Robert Wilde 0 Reputation points
2 answers

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,212 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,908 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 questions
asked 2024-05-20T05:45:02.89+00:00
Bob Pendon 0 Reputation points
answered 2024-05-20T15:13:06.1766667+00:00
Plamen Peev 0 Reputation points
1 answer

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,136 questions
asked 2024-05-17T00:35:40.6833333+00:00
GreenParks2024 0 Reputation points
answered 2024-05-20T15:02:08.9233333+00:00
MotoX80 32,091 Reputation points
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.
652 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 questions
asked 2024-05-15T15:39:11.7233333+00:00
Lawrence Man 11 Reputation points
commented 2024-05-20T13:49:19.8966667+00:00
EY 0 Reputation points
4 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,136 questions
asked 2024-05-16T19:51:18.0666667+00:00
Avyayah 1,251 Reputation points
answered 2024-05-20T10:48:28.53+00:00
Plamen Peev 0 Reputation points
1 answer

how to retrieve the path to workspace_publish branch OR any branch in devops , use that path in azure powershell script to read file from that branch.

I want to retrieve path to the branch and folder inside it, basically i wan to read the jsons here and change the dev keyword with uat and save the file back to the sam folder in workspace_publish branch. I can change dev to uat, but am not able to…

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,448 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,702 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 questions
asked 2024-05-15T12:58:55.19+00:00
Wasim 20 Reputation points
commented 2024-05-20T10:42:11.4466667+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee
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,807 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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
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,345 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,252 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,972 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,403 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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,136 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,144 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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,782 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,807 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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

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,136 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

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,136 questions
asked 2024-05-17T22:50:49.1433333+00:00
Johnny T 0 Reputation points
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,136 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,403 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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,136 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,255 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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,802 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,136 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