2,140 questions with PowerShell-related tags

Sort by: Updated
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,749 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-05-17T22:37:55.2+00:00
Johnny T 0 Reputation points
commented 2024-05-22T02:29:06.16+00:00
Xenia-MSFT 315 Reputation points Microsoft Vendor
2 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,145 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,798 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 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,808 questions
asked 2024-05-20T14:08:33.86+00:00
yulei0917 15 Reputation points
answered 2024-05-22T01:51:38.82+00:00
Ben Cooper 0 Reputation points
0 answers

How to register an instance as central management server(CMS) server instance using powershell?

Hi, Can we automate register Central Management Server using powershell? I'm unable to find any documentation regarding the this?. Rest of the steps are automated through poweshell. As part of the testing the script I have deleted the registered Central…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,871 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-05-21T08:46:23.52+00:00
Ummer, Fazil 0 Reputation points
edited the question 2024-05-22T01:28:09.52+00:00
CosmogHong-MSFT 23,561 Reputation points Microsoft Vendor
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,140 questions
asked 2024-05-17T00:35:40.6833333+00:00
GreenParks2024 0 Reputation points
commented 2024-05-21T21:52:00.01+00:00
MotoX80 32,246 Reputation points
2 answers

Defender for Endpont - Device Isolation via API

Hello All, I am trying to craft an script to isolate device via powershell. I have created Enterprise app, i have assigned to that app permission (as delegated - i do not want to use it as application) Machine.Isolate and granted consent. Script…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
3,934 questions
Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
349 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,462 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-03-20T14:15:45.4366667+00:00
kimak 0 Reputation points
answered 2024-05-21T21:41:45.37+00:00
Gil Burns 0 Reputation points
1 answer

I am getting error, When I am trying to update the GPO by executing gpupdate /force.

Hi Experts, I have applied the GPO to disable windows auto update and Trying to update the GPO. But I am getting below error while I am trying to update the GPO. "Windows failed to applied the {F312195E-sD90-447A-A3F5-08DFFA24735E) settings .…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,261 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,975 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,140 questions
asked 2024-05-21T06:21:54.51+00:00
Jimmy Afflick 20 Reputation points
commented 2024-05-21T21:06:19.8433333+00:00
Jimmy Afflick 20 Reputation points
1 answer One of the answers was accepted by the question author.

AzureAD group membership

Hi All In our hybrid environment, all users are initially created on-premises and then synced to Azure AD. I've created five security groups within Azure AD. Specifically, I've granted ownership of these five AD groups to a user, let's call them user1.…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,975 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,140 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,808 questions
asked 2024-05-10T05:37:17.0433333+00:00
Glenn Maxwell 10,186 Reputation points
accepted 2024-05-21T19:54:57.64+00:00
Glenn Maxwell 10,186 Reputation points
1 answer

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,140 questions
asked 2024-01-24T14:00:16.7466667+00:00
Gold, Petr 6 Reputation points
answered 2024-05-21T16:47:53.5666667+00:00
Derek Vander Linden 0 Reputation points
0 answers

Backing up PST files to OneDrive: need a way of getting the local OneDrive folder to release the space automatically

I'm backing up PST files to OneDrive (but definitely never opening them in Outlook there). This works fine except that I don't seem to be able to get OneDrive to release the local space automatically, which is a problem given I am doing all this on a…

Outlook
Outlook
A family of Microsoft email and calendar products.
3,099 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
857 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-05-21T15:26:30.2533333+00:00
Mandy Shaw 0 Reputation points
4 answers One of the answers was accepted by the question author.

removing Sidebar apps from edge from intune or powershell

Hi all, I would like to remove the ability for users to use Side bar apps / add ons How do I do this?

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,749 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,462 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2023-12-22T10:43:02.6266667+00:00
Aran Billen 681 Reputation points
edited an answer 2024-05-21T15:26:25.4266667+00:00
Christopher Ziccarelli 75 Reputation points
2 answers One of the answers was accepted by the question author.

Remove specific user from ACL via Powershell

I want to Remove a specific user from ACL via Powershell. Not just the permission of the user for the folder. I want the user gone from the directory. The following post discribes my problem perfectly but the solution leads me to an 404 error^^ …

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-05-21T09:46:18.9766667+00:00
Simon Krausse 0 Reputation points
answered 2024-05-21T14:36:11.4966667+00:00
Plamen Peev 75 Reputation points
1 answer

The specified module 'Az.Accounts' was not loaded because no valid module file was found in any module directory

I am in the process of upgrading azure 'run-as-account' to 'manage-identities'. there were power-shell script that used to automate VM functionalities. I import "Az.Accounts" module from Module section Module Name - Az.Accounts Module…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,140 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-05-21T06:19:30.23+00:00
Mithila Lishan 136 Reputation points
answered 2024-05-21T10:34:17.5266667+00:00
Mithila Lishan 136 Reputation points
2 answers

Unable to run dsregcmd command from PowerShell when deploy to client machines via SCCM package.

Hi Team, we are facing issue, just want to assure the device status whether it is Entra joined or not using "dsregcmd" command line. We created a script to check the device status, then created a package in SCCM to deploy this script which…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,384 questions
Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 questions
asked 2024-05-15T13:11:12.2666667+00:00
Prabhjot Singh 145 Reputation points
commented 2024-05-21T05:42:32.62+00:00
AllenLiu-MSFT 41,136 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

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,224 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,140 questions
asked 2024-05-20T05:45:02.89+00:00
Bob Pendon 20 Reputation points
accepted 2024-05-21T01:06:08.5333333+00:00
Bob Pendon 20 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,462 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 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,246 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.
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,140 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,140 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 75 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,457 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,711 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 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,826 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,140 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,349 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,261 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,975 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,140 questions
asked 2024-05-20T07:39:15.9966667+00:00
Andrés Jiménez 0 Reputation points