2,489 questions with PowerShell-related tags

Sort by: Updated
2 answers

How to delete DPM Backups from the Azure Service Recovery Vault

Hi, i have a OnPrem DPM Server which is connected with a Azure Recovery Service Vault. From the DPM i backup some OnPrem Servers to the Azure Recovery Service Vault. Currently i see some duplicated entrys and some entrys from old servers which no longer…

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,252 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,009 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
706 questions
Windows Server Backup
Windows Server Backup
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Backup: A duplicate copy of a program, a disk, or data, made either for archiving purposes or for safeguarding valuable files from loss should the active copy be damaged or destroyed.
475 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-17T14:36:47.4166667+00:00
Reppner, Mike 0 Reputation points
commented 2024-09-27T16:51:49.0466667+00:00
SadiqhAhmed-MSFT 44,936 Reputation points Microsoft Employee
4 answers

I cannot map a drive with the ip address

The drive I'm trying to map only has an IP. It is my phone. But the same rule applies to my Buffalo NAZ. I cannot map a drive in my Naz by IP. Luckily, I know my name of my NAZ server. So I am certain if I fix the issue of not being able to map by IP, I…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
6,740 questions
Windows Network
Windows Network
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.Network: A group of devices that communicate either wirelessly or via a physical connection.
746 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,543 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-25T01:58:26.2466667+00:00
Jeffrey Grammer 0 Reputation points
edited a comment 2024-09-27T15:10:10.8566667+00:00
MotoX80 33,466 Reputation points
2 answers

Bulk create Document Sets with attachment from an excel worksheet.

Problem Statement: Bulk create Document Sets with attachment from an excel worksheet. Summary : Is there a way to do this via the SharePoint Online UI? What I have understood is that to do this I need to create a PowerShell script. After creating the…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,650 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2023-09-04T06:31:40.7366667+00:00
Nandita MEHTA 0 Reputation points
answered 2024-09-27T14:27:36.5933333+00:00
Burt, Robert 0 Reputation points
0 answers

can't create app service with publish model "container" over Powershell

Hey guys, the last couple days I tried to write a powershell script which creates a azure app service and some deployment slots for it. First - it seems to work fine but later I realized that the publish model is "always" on "Code"…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,720 questions
asked 2024-09-27T11:44:57.1533333+00:00
Florian Bartsch 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to update a SharePoint online document library item's custom fields using graph API patch calls?

I have a PowerShell script that is pulling user photos from Active Directory and then posting them to a SharePoint Document Library. This script is working successfully to this point. Next, I need to update the photo item's custom columns with Active…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,939 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-23T18:34:54.95+00:00
Doug Horton 20 Reputation points
accepted 2024-09-27T10:06:01.3366667+00:00
Doug Horton 20 Reputation points
1 answer

How to Fix SPMT Module ActiveX Single-threaded apartment Error

I have created a Powershell tool to set up SharePoint sites and it uses the SharePoint Migration Tool. However, when trying to register an SPMT Migration, it fails with the following error: Register-SPMTMigration : ActiveX control…

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,957 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-24T14:31:44.2033333+00:00
Kirsten 0 Reputation points
commented 2024-09-27T09:57:37.0933333+00:00
Emily Du-MSFT 46,086 Reputation points Microsoft Vendor
1 answer

Delete Calendarseries in iOS Calendar

Hi, i had a recurring Calendar item. It is called "kompas | Standup". It was hard to delete that Calendaritem, because it was "hidden" in a Microsoft Teams-Team called "kompas Team". I made some tests to delete that calendar…

Microsoft Exchange Online
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,038 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
3,759 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-05T12:35:22.1933333+00:00
Robert Hagemann 20 Reputation points
commented 2024-09-27T07:39:22.3066667+00:00
Jake Zhang-MSFT 5,280 Reputation points Microsoft Vendor
3 answers

How to export managed metadata from subfolders and documents to csv

I have a document library and at the top level we have a number of folders for each year i.e. 2024, 2023, 2022, 2021 etc. Against these yearly folders we have a Content Type of "Yearly Folder". Under each yearly folder we have a huge list of…

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,957 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-19T15:21:09.7533333+00:00
Glenn Skinner 1 Reputation point
commented 2024-09-27T07:12:42.1366667+00:00
Ling Zhou_MSFT 17,135 Reputation points Microsoft Vendor
2 answers

Can we have both SharePointPnPPowerShellOnline and PnP.PowerShell installed in same machine?

Hi, I am working with SharePoint PowerShell Modules to create some PowerShell Scripts, I want to know if we can install both SharePointPnPPowerShellOnline and PnP.PowerShell installed in same machine. I am using some cmdlets from…

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,957 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-03T09:57:36.1466667+00:00
Hirdesh Baghel 20 Reputation points
edited the question 2024-09-27T06:28:00.1366667+00:00
Yanli Jiang - MSFT 25,861 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

SCCM - PowerShell - Create Application - Deployment Type

Hi The first step is done : New-CMApplication ` -Name "Adobe Acobat Reader" ` -Description "Adode Acrobe Reader 64 bits" ` -Publisher Adobe -SoftwareVersion 24.003.20112 ` -IconLocationFile …

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,489 questions
asked 2024-09-15T09:21:10.9066667+00:00
Sokoban 1,036 Reputation points
answered 2024-09-27T06:26:31.88+00:00
Sokoban 1,036 Reputation points
3 answers

SCOM 2022 How I can use in PowerShell "predefined run as account" in start-scomtask command

Hello folks, I want to use the predefined Run As Account option in my SCOM tasks, but right now I feel like it's not possible from PowerShell. There was a change in SCOM 2022 that right now -taskcredentials is required in the Start-SCOMTask command. …

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,477 questions
Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
975 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2023-03-30T11:38:45.03+00:00
Nowaczyk, Patryk 0 Reputation points
commented 2024-09-27T03:10:30.4933333+00:00
Dwayne 1 Reputation point
1 answer

How can I use the Get-PnPFile or Get-PnPListItems commands to get data from a URL with the structure /_layouts/15/Doc.aspx?sourcedoc=?

Good morning. I hope you are. I am trying to get information from files that are in SharePoint document libraries. But many of the URLs I have have the following structure: https://<tenant>.sharepoint.com/:w:/r/sites/<site…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,650 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-25T14:13:00.5733333+00:00
Jairo Javier Baleta Cali 211 Reputation points
commented 2024-09-27T01:05:46.7866667+00:00
RaytheonXie_MSFT 35,236 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How can I use the Get-PnPFile or Get-PnPListItems commands to get data from a URL with the structure /_layouts/15/Doc.aspx?sourcedoc=?

Good morning. I hope you are. I am trying to get information from files that are in SharePoint document libraries. But many of the URLs I have have the following structure: https://<tenant>.sharepoint.com/:w:/r/sites/<site…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,650 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-25T14:26:15.6633333+00:00
Jairo Javier Baleta Cali 211 Reputation points
accepted 2024-09-26T20:14:31.1433333+00:00
Jairo Javier Baleta Cali 211 Reputation points
0 answers

Assign Calendar Privileges with Powershell

Im trying to assign Calendar Permissions to Owner and Member, Owner should have read&write while members only read. This is the code i came up with. the error i got was the following: Specified method is not supported. Status: 400…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-26T15:25:57.83+00:00
Lautaro Baumann 0 Reputation points
0 answers

Prebuilt PowerShell scripts

Hello Please i need your help on this issue. Please do we have any prebuilt PowerShell scripts from Microsoft that can identify teams groups that contain files? Here’s the one we had tried that isn’t working:  # Connect to Microsoft…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,939 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,517 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-26T15:17:18.4266667+00:00
IniobongNkanga-8038 616 Reputation points
2 answers

unable to connect Azure

Hi All I use the below syntax to connect to Azure Powershell, but today i am unable to connect to azure powershell. it prompts me to enter tenant and subscription number. I have 1500 subscriptions, how can i know the subscription number for my…

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,517 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 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,578 questions
asked 2024-09-19T15:36:47.1233333+00:00
Glenn Maxwell 11,236 Reputation points
commented 2024-09-26T14:10:14.35+00:00
Raja Pothuraju 6,150 Reputation points Microsoft Vendor
16 answers

High CPU usage for vmmem

Hi, I have experienced high CPU usage for Vmmem frequently (~every 2days) and the only solution at the moment is simply restart my machine. It is understood that is related to WSL and I do have a Docker image running on Ubuntu on Windows. However it is…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,535 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2023-03-21T19:12:59.2566667+00:00
Steve Lo 110 Reputation points
commented 2024-09-26T13:52:09.7333333+00:00
Leszek Pietrzak 6 Reputation points
1 answer

How do I retrieve MS Teams phone numbers using Powershell MgGraph

Hi, I am trying to automate the export of all our organization's teams numbers using Powershell. If I do it interactively, I am able to connect to MgGraph, run the command, "Get-CsPhoneNumberAssignment" and retrieve the information. However,…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,038 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,939 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-19T22:58:45.92+00:00
Francisco Rivera 0 Reputation points
commented 2024-09-26T13:40:21.3033333+00:00
Hitesh Pachipulusu - MSFT 1,665 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Renewing Powershell Self Signed Certificate from CA

Hi Everyone, We're going to change ours Self Signed Powershell certificates, we have an AD Certificate Services in our domain, we've created custom Self Signed Powershell certificates for code signing, then we've distribute the certificates via GPO.…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,009 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,494 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-23T15:49:59.2+00:00
Massimiliano Gasbarro 20 Reputation points
accepted 2024-09-26T08:38:21.39+00:00
Massimiliano Gasbarro 20 Reputation points
4 answers

MSGraph Remove-MgTeam

I'm trying to execute the Remove-MgTeam in Powershell, but I'm getting a 405 error. The same happens with the beta-version. What am I missing? I think I added all necessary Teams/Groups/Directory permissions My script: Remove-MgBetaTeam -TeamId …

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,038 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,939 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,489 questions
asked 2024-09-23T13:42:21.0833333+00:00
Kristof Van Woensel 21 Reputation points
answered 2024-09-26T06:34:10.2066667+00:00
LiweiTian-MSFT 18,855 Reputation points Microsoft Vendor