2,428 questions with PowerShell-related tags

Sort by: Updated
2 answers

Sharepoint Obter Name Colunm open file or read file or folder

I need to get the name of the SharePoint column that is responsible for informing that a file or folder was opened in the Sharepoint Library. I will use this information to create a flow in Power Automate to inform those responsible by email if someone…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,560 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,887 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-26T20:33:16.8033333+00:00
Bruno de Souza Maria 0 Reputation points
answered 2024-08-30T19:16:11.23+00:00
Bruno de Souza Maria 0 Reputation points
0 answers

PowerShell script to get an CPU/MEM/DISK of azure windows VM's which are above 85%. And the result am trying to get in mail on HTML format. Anyone have script?

Am trying to fetch the CPU, memory and disk usage of 100+ of azure windows servers using PowerShell script. And the report to be mailed in html table format. attached below sample format, which am trying to make ,with cpu//mem//disk columns.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,726 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,866 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-30T15:39:49.36+00:00
Nandhini A 20 Reputation points
commented 2024-08-30T16:30:28.65+00:00
Akshay kumar Mandha 75 Reputation points Microsoft Vendor
3 answers

C# Powershell - Error when running a Powershell Command to connect to Exchange Online

I have a C# program thats using Powershell to connect to Exchange online. The Powershell setup works as I can change the given command to something like Get-Process and get results. However, when I try running the command to connect to ExchangeOnline I…

Microsoft Exchange Online
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,797 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-30T09:20:28.89+00:00
John Sparks 10 Reputation points
answered 2024-08-30T16:25:42.0033333+00:00
John Sparks 10 Reputation points
1 answer

Auto Disconnect P2S VPN Connections

Hello, I am trying to setup the ability to disconnect users on an Azure VWan, Hub, P2S session. This can be manually done by going to the Point to Site Sessions page and manually disconnecting it. However, this is not ideal for trying to disconnect users…

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
213 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,502 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-29T14:42:49.0533333+00:00
Trent Becker 51 Reputation points
answered 2024-08-30T12:07:05.33+00:00
KapilAnanth-MSFT 43,471 Reputation points Microsoft Employee
2 answers

C# Powershell - Error Could not load file or assembly 'C:\C# Projects\....\bin\Release\net8.0-windows10.0.17763.0\runtimes\win\lib\net8.0\System.Management.Automation.resources.dll'. The system cannot find the file specified.

Hi, I'm working on a C# Application that makes PowerShell Calls. It used to work but since upgrading Nuget packages it now gives me the error: "System.IO.FileNotFoundException: 'Could not load file or assembly 'C:\C#…

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,797 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-28T16:45:06.1033333+00:00
John Sparks 10 Reputation points
answered 2024-08-30T08:52:10.54+00:00
John Sparks 10 Reputation points
2 answers

Phone numbers from all users' contact information on outlook.

Hello Please i need your help on this issue I would like to use PowerShell to remove phone numbers from all users' contact information on outlook. Also to use PowerShell to add phone numbers for multiple users in Microsoft Entra.

Microsoft Exchange Online
Outlook
Outlook
A family of Microsoft email and calendar products.
3,602 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,151 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
Microsoft Entra
asked 2024-08-29T09:18:11.81+00:00
IniobongNkanga-8038 426 Reputation points
edited the question 2024-08-30T08:27:46.76+00:00
Bruce Jing-MSFT 3,740 Reputation points Microsoft Vendor
1 answer

Need to deploy Canon driver silently from intune

Hi, I want to package and deploy the "Canon ImageRunner Advance DX C3826i .exe" right now. Maybe we can package it with PowerShell. When 1 double-click on the Canon ImageRunner Advance DX C3826i .exe, it extracts to the X64 folder, and that's…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,902 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-29T22:47:32.4666667+00:00
TechUST 516 Reputation points
answered 2024-08-30T05:43:41.57+00:00
Crystal-MSFT 47,141 Reputation points Microsoft Vendor
1 answer

Hello! How do I uninstall an old MS store app for about 70 users via Intune?

We have the new Kyocera Print Center app in Intune set to uninstall in Intune but is not uninstalling the old version (A97ECD55.KYOCERAPrintCenter). Intune shows an application ID, but it doesn't look like a normal GUID. I don't have this installed on my…

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,902 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-29T11:05:19.1133333+00:00
Jodi Frey 0 Reputation points
answered 2024-08-30T02:47:45.42+00:00
Crystal-MSFT 47,141 Reputation points Microsoft Vendor
0 answers

Anomalies when installing MSIX via PowerShell (Add-AppxPackage)

One of our customers uses Windows Enterprise 22H2 (though older Versions display the same behaviour) for some managed devices and wants to deploy our app, signed by a developement certificate to allow distribution via MSIX and PowerShell (the app is…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-29T14:35:42.7833333+00:00
bk42114ss 1 Reputation point
edited the question 2024-08-30T01:11:41.0866667+00:00
Xiaopo Yang - MSFT 12,631 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

WARNING: Unable to acquire token for tenant 'organizations' with error 'InteractiveBrowserCredential authentication failed: Method not found: 'Void Microsoft.Identity.Client.Extensions.Msal.MsalCacheHelper.RegisterCache(Microsoft.Identity.Client.ITokenCa

Hi Team, Can someone here please assist me with this error to connect my PowerShell session using the Connect-AzAccount ? PS C:\WINDOWS\system32\WindowsPowerShell\v1.0> Connect-AzAccount WARNING: Unable to acquire token for tenant 'organizations' with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,724 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,191 questions
asked 2023-08-08T13:25:14.0933333+00:00
EnterpriseArchitect 5,296 Reputation points
edited a comment 2024-08-29T22:51:00.4366667+00:00
Pragmateek 0 Reputation points
1 answer

Windows Powershell access to path denied

I am trying to delete some files using clc command clc 'C:\Program Files (x86)\Steam\userdata....\4000*' (the .... is my ID number) but the microsoft powershell is denying access to it, i am running it as admind and tried using execution policy but…

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,501 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-29T02:44:20.21+00:00
JcBK 0 Reputation points
answered 2024-08-29T18:51:19.8+00:00
Rich Matheisen 46,321 Reputation points
1 answer

Export users

Hi all, We create users in on-premises Active Directory, and they are synchronized to Azure AD. I have two requirements:For every user in Azure, I see an Object ID. Is this Object ID coming from the on-premises Active Directory, or is it assigned by…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,385 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,458 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,501 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,191 questions
asked 2024-08-28T20:39:39.7066667+00:00
Rising Flight 4,296 Reputation points
answered 2024-08-29T18:36:25.8133333+00:00
Rich Matheisen 46,321 Reputation points
0 answers

Is there any script available to find who made changes in SharePoint Global Menu

Hi , we are looking for user who made changes to our Intranet SharePoint Online global Menu. there is no out of the box way to trace that. I tried Audit logs in Compliance center in O365 admin but no leads. Is there any powershell script available to…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-29T17:21:33.38+00:00
Audi86 731 Reputation points
edited the question 2024-08-29T17:25:15.43+00:00
Audi86 731 Reputation points
1 answer

How to remove non printable characters in XML file using PowerShell

Hi all, I have a XML file have Non Printable Characters that is causing job failure while loading into SQL table using SSIS! Non Printable Characters: STX,SOH,GS,FF,ZWSP,DC3,SUB,ENQ,US,DC4,NAK,ACK,BEL,VTl,ESC,CAN Ref:…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-24T20:17:08.49+00:00
Syed Manzar Abbas Zaidi 0 Reputation points
commented 2024-08-29T15:27:18.3966667+00:00
Rich Matheisen 46,321 Reputation points
1 answer One of the answers was accepted by the question author.

Running Get-MgUserDefaultCalendar in PowerShell gives Access is denied error

Hi, I'm just starting with MS Graph PowerShell calls. I've installed PS 7.4.3 and the Microsoft.Graph module. I can use connect-mgGraph to connect and that connects OK as I get a MFA prompt and a welcome to Microsoft Graph! When I…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,724 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-06-21T12:20:45.4366667+00:00
John Sparks 10 Reputation points
accepted 2024-08-29T10:58:22.2033333+00:00
John Sparks 10 Reputation points
1 answer

Exporting a List of Document Types Across a SharePoint Tenant

Is it possible to generate a report that displays all document types stored in SharePoint across all sites within the tenant? I have already done this on a site-by-site basis, but I would like to know if there's a way to get a comprehensive list of file…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,560 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-28T09:20:57.92+00:00
Mark S 0 Reputation points
answered 2024-08-29T08:45:05.82+00:00
Yanli Jiang - MSFT 25,001 Reputation points Microsoft Vendor
0 answers

How to remove "Enter your email address popup" automatically in PowerBI

I am receiving a popup for "Enter your email address" in my PowerBI report. How can we remove this popup or get it cancelled via an automated way utilizing PowerShell or python coding. Note - We have tried to obtain processname by running…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,250 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-08-27T12:49:35.9766667+00:00
Priya Jha 871 Reputation points
edited the question 2024-08-29T08:20:08.13+00:00
Jiachen Li-MSFT 30,686 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to make way for powershell to run a script when error 15100 is in the way?

In order to run a script from https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scripts?view=powershell-7.4 (the Get-servicelog.ps1) it is needed the error with McpManagementService be addressed (see…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,408 questions
Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,570 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
Sysinternals
Sysinternals
Advanced system utilities to manage, troubleshoot, and diagnose Windows and Linux systems and applications.
1,147 questions
asked 2024-08-28T12:00:13.06+00:00
Claus Debanker 41 Reputation points
commented 2024-08-29T07:29:00.53+00:00
RLWA32 44,746 Reputation points
2 answers

I need the powershell command to active the PIM eligible assignment

Hello Microsoft. My Requirement is i have Multiple PIM Role Eligible Assignments in Azure. I am not using MFA for activate, just using the Justification so every day I need to active the multiple roles which is taking time to activate all the role. Is…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
Microsoft Entra Private Access
Microsoft Entra Private Access
Microsoft Entra Private Access provides secure and deep identity-aware, Zero Trust network access to all private apps and resources.
60 questions
asked 2024-06-11T15:04:38.1066667+00:00
Rajesh Padigae 5 Reputation points
commented 2024-08-29T07:08:41.3966667+00:00
Vinay Reddy 0 Reputation points
2 answers

How do we fix 0x8a15000f : Data required by the source is missing?

I Am trying to run winget on a widows 11 pc and keep getting the error 0x8a15000f : Data required by the source is missing. Have done update reset and still get the issue with the same error.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,428 questions
asked 2024-05-29T13:34:46.4066667+00:00
Campbell, Joseph 0 Reputation points
answered 2024-08-29T01:38:08.7233333+00:00
MOEY KHYE WENG 0 Reputation points