2,811 questions with PowerShell-related tags

Sort by: Updated
1 answer

Can't publish new PowerShell binary module as it can't find the module

I'm trying to publish a new module to the PowerShell Gallery with publish-Module -name WillPittenger.Goodies.PowerShell.JSON -Repository PSGallery -NuGetApiKey ~~_____~~. I'm getting the error "Publish-Module: The specified module…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,105 questions
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.
11,296 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,744 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-15T08:40:31.4433333+00:00
Will Pittenger 306 Reputation points
answered 2025-02-15T09:33:24.65+00:00
Will Pittenger 306 Reputation points
2 answers

I'm trying to use Microsoft Graph API in Powershell to pull a list of sharepoint sites a user is Owner of but I am getting a (403) Forbidden error

I've created an App in Entra so I can use it to give me a list of sharepoint sites a certain user is owner of. I have used Copilot to help me write the powershell script and I have all the needed permissions on my account to do what I need. Soon as I run…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,049 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-13T13:23:20.0133333+00:00
Joe Moorcroft 0 Reputation points
commented 2025-02-14T18:36:14.07+00:00
Vasil Michev 113.8K Reputation points MVP
0 answers

Runbooks issue

SharePointExcelAutomation code does not run all the way. Copilot cannot give solution for errors. We need someone from Microsoft Support.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,160 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,205 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-14T14:47:11.97+00:00
Zoltan Csirke 0 Reputation points
2 answers One of the answers was accepted by the question author.

About Deleting Intune/Entra ID device using powershell

Can anyone tell me the powershell that delete the Intune and EntraID device I try to search on internet but couldnot found It will be great help if anyone provide me this Thank you

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-01-14T03:29:07.5566667+00:00
ネパリ サンデャ 480 Reputation points
accepted 2025-02-14T05:29:13.6233333+00:00
ネパリ サンデャ 480 Reputation points
1 answer

PowerShell Script to list all the files and folders that are being shared in a document library

Hello, I am trying to find out which folders or files on a Document Library are being shared, either internally or externally, and who was it shared to. Is there a powershell script that does this? Best.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,205 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-10T20:27:03.1333333+00:00
Xia, Henry 0 Reputation points
commented 2025-02-14T01:23:47.5+00:00
AllenXu-MSFT 23,666 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Struggling with 'get-actionoutput'; Not getting desired results

Hello all!I'm trying to get some assistance with 'Execute Powershell Code'. I just want to get the outputs from a compose action. This doesn't seem to be working, is it broken? TIA! ~S

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,348 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-11T22:36:13.6+00:00
SMatAC 30 Reputation points
accepted 2025-02-13T15:26:46.45+00:00
SMatAC 30 Reputation points
1 answer

How to publish a Runbook to latest runtime version using blob storage?

Hi, so i have written a Powershell script that publish a files to my blob storage, and i got it to upload the file(s) to Process Automation/Runbooks. But i cant seem to get the Runtime version to the latest, how can i do that? Right now a part of the…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,307 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-12T12:46:12.4666667+00:00
André Lindqvist 20 Reputation points
commented 2025-02-13T14:06:10.0366667+00:00
Pavan Minukuri 1,130 Reputation points Microsoft Vendor
1 answer

Automatic Download Office 365 Deployment Tool

Hi, we had a PowerShell Script that automatically download the newest Office 365 Deployment Tool and then download the newest Office 365 Sources. We need this to deploy Offline Office 365 to thousands of PCs. The URL to download the Deployment Kit didn't…

Office
Office
A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.
1,907 questions
Microsoft Deployment Toolkit
Microsoft Deployment Toolkit
A collection of Microsoft tools and documentation for automating desktop and server deployment. Previously known as Microsoft Solution Accelerator for Business Desktop Deployment (BDD).
935 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-11T08:03:38.2166667+00:00
Stefan Brutscher 0 Reputation points
commented 2025-02-13T07:44:57.7166667+00:00
Simon Ren-MSFT 38,676 Reputation points Microsoft Vendor
1 answer

Bulk upload the zip & post code

Hello, Please i need your help on this issue. We need to do a one-time bulk upload of unique number via Entra portal for column Zip or postal code. I tried using Powershell

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,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,811 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.
23,255 questions
asked 2025-02-10T23:22:20.96+00:00
John Peter 20 Reputation points
commented 2025-02-13T06:01:07.17+00:00
John Peter 20 Reputation points
1 answer

Changing Overlay power Mode with script

Hi, I want to change the overlay power mode based on time of the day without having to go to settings -> system -> power and battery -> power mode each time. I am not able to find which command in powercfg will change the OVERLAY power mode, all…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-02T09:38:46.71+00:00
Mustaffa Abu-Sedira 0 Reputation points
answered 2025-02-12T15:30:34.4733333+00:00
guilherme rodrigues 390 Reputation points
1 answer

How do I connect to the same wireless network ssid with different username and credentials with a script on my windows pc?

I need to test the connection to a unique wifi SID using credentials different (a list of username and password; once authenticated i need to ping a google dns in order to verify that internet can be reached for any connection established with…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,064 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,385 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,744 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-01-31T12:18:54.74+00:00
Pietro Guzzetti 0 Reputation points
answered 2025-02-12T15:06:02.1333333+00:00
guilherme rodrigues 390 Reputation points
0 answers

Automation: Powershell Force OneDrive to Re Sync if there is a Sync Error noted

I am working for the MSP Lucrasoft, we use an RMM to automate powershell scripts to workdevices to monitor them. We get a lot of "OneDrive for Business, error with syncing" alerts. What I always see is that if OneDrive is restarted (manually)…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,306 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,744 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-12T10:10:50.1+00:00
Olivier Kip 0 Reputation points
edited the question 2025-02-12T10:11:35.39+00:00
Olivier Kip 0 Reputation points
1 answer

Automate chunking and committing IPA to Intune fails in Azure Pipeline

In effort of moving off of AppCenter and automating the deployment of an IPA to Intune, I'm using a PowerShell script to chunk and commit the file to Intune. This process is successful if it runs locally. But if it runs in Azure pipeline, it will fail…

Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
255 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,554 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-12T01:06:29.07+00:00
Tommy Le 0 Reputation points
answered 2025-02-12T05:49:10.3+00:00
Xenia-MSFT 4,140 Reputation points Microsoft Vendor
1 answer

How to Install PIP for Python on Windows 11?

What are the steps to install PIP for Python on Windows 11? The goal is to use Python with Microsoft Excel and, if possible, replace VBA entirely.

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,262 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-01-05T20:35:26.89+00:00
answered 2025-02-12T04:03:53.78+00:00
Whenever Web LLC 0 Reputation points
1 answer

PowerShell - Reboot Every 14 Days

Hello! I'd like to create a Detection and Remediation script in Intune. Detection script to check if the uptime of each machine passed 14 days. If so, then Remediation script to force reboot the device if no login user. If user logged in to the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-11T21:48:57.0566667+00:00
Ahmed Alshatawi 145 Reputation points
answered 2025-02-11T22:31:21.79+00:00
Marcin Policht 35,595 Reputation points MVP
3 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,811 questions
asked 2024-05-29T13:34:46.4066667+00:00
Campbell, Joseph 0 Reputation points
commented 2025-02-11T21:38:44.28+00:00
TS 0 Reputation points
2 answers

How to generate a report for the list of all enterprise application that is using a single sign on (SSO)

Please asking for your help on how to generate a report to view the list of all Enterprise applications using a single sign on authentication via in a powershell. Thank you in advance

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,049 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,627 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 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.
23,255 questions
asked 2025-01-30T05:02:33.4+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-11T20:55:23.5333333+00:00
Raja Pothuraju 12,980 Reputation points Microsoft Vendor
0 answers

"The SSL connection could not be established, see inner exception." Issue Installing Microsoft.Graph Module in PowerShell in PowerShell

Hi everyone, I'm experiencing an issue when trying to install the Microsoft.Graph module using PowerShell 7. When I run the following command: Install-Module Microsoft.Graph -Scope CurrentUser -Repository PSGallery -Force -verbose I receive the…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,049 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,627 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-10T17:02:00.11+00:00
Bragaglia, Andrea (IT) 5 Reputation points
commented 2025-02-11T19:04:11.7166667+00:00
Kapgnep Flora 5 Reputation points
0 answers

I'm stucked with the error 401 unauthorized when using *PnP* Commands like Get-PnPList

Connect-PnPOnline using OAuth works fine and Get-PnPContext works but all other PnP commands get the error It worked fine using Credentials until about the first days in 2025

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,627 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
asked 2025-02-11T13:09:23.6733333+00:00
Olav Andersen 0 Reputation points
1 answer One of the answers was accepted by the question author.

Powershell script for Microsoft Entra to reset the password in AD account user after 14 days

Please asking for your help on how to create a script in a powershell to reset the password of the AD users (Microsoft Entra) after in the 14days. Thank you in advance

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,627 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,255 questions
asked 2025-01-30T05:14:57.5566667+00:00
JYLVEN TARRAJA 80 Reputation points
commented 2025-02-11T12:36:07.48+00:00
Raja Pothuraju 12,980 Reputation points Microsoft Vendor