2,205 questions with PowerShell-related tags

Sort by: Updated
3 answers One of the answers was accepted by the question author.

The value of parameter imageReference.sku is invalid while creating the VM using Azure PowerShell

I'm trying to create a Windows 2016 Datacenter Virtual Machine using Azure PowerShell. Created the Resource Group Created the Storage Account Location is Central India Created the VNet, Subnet Created NSG Rule with NSG Group Created Public IP, VM…

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,347 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-02T16:39:32.9266667+00:00
krishna572 876 Reputation points
accepted 2023-02-09T17:15:13.89+00:00
krishna572 876 Reputation points
2 answers

How to obtain Major.Minor.Version.Patch details from PowerShell

Hello everyone, I happen to use following command to obtain operating system version details. cmd /ver The same command cannot be used when called in a PowerShell script like following. Why? because it opens a shell; and control remain stuck there. …

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-09T05:16:38.46+00:00
Nitin Singh 20 Reputation points
answered 2023-02-09T15:36:30.0033333+00:00
Limitless Technology 44,031 Reputation points
1 answer

VS-Code loaded project not showing in default project for package manager console NuGet package

I am trying to work on and get a powershell script running that requires the MS Exchange WebServices dll from NuGet, when i try to load the script as a project in VS Code and install the dll as a package from NuGet via the Package Manager Console it…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-07T22:40:11.6733333+00:00
pwbguy 21 Reputation points
answered 2023-02-09T15:35:02.02+00:00
Limitless Technology 44,031 Reputation points
1 answer

how do i edit path from variable?

I have in multiple locations text files named pc01; pc02; pc03 and so on up to pc18. I want to go through them in order and get the contant into a single file. here's the script I use for example: $source =…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-09T09:25:28.2033333+00:00
שימי רוזנברג 1 Reputation point
answered 2023-02-09T14:23:06.7+00:00
MotoX80 32,336 Reputation points
2 answers

How to open a word document on another computer remotely using powershell.

There has to be a way to open a Word document onto a remote computer using a PowerShell script. I'm new to PowerShell and I've just been googling how to do things, but I can't find out how to remotely open a word document on another computer using…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-07T21:05:57.55+00:00
Jameson Fawcettt 0 Reputation points
commented 2023-02-09T13:15:36.46+00:00
MotoX80 32,336 Reputation points
1 answer

How can I use PowerShell Script to extract all engagement and assignment completion data from Class Teams?

Hi there, I would like to extract all engagement and assignment completion data from across all of our class teams in order to delve into this data and incorporate it into our data models on our pupils. Is this possible through PowerShell? If so, i would…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,329 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-08T12:14:02.4266667+00:00
Darren Bastyan 20 Reputation points
answered 2023-02-09T11:59:27.4266667+00:00
Darren Bastyan 20 Reputation points
2 answers

How to use Show-DnsServerCache -CacheScope parameter

i don't know how to use -CacheScope in Show-DnsServerCache command

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-08T03:04:25.7533333+00:00
junjie wu 5 Reputation points
answered 2023-02-09T09:15:20.2033333+00:00
Limitless Technology 44,031 Reputation points
0 answers

Checking resource limits, quotas, and constraints using PowerShell

I am looking for a solution to check for resource limit quotas that have been reached in multiple subscriptions using Lighthouse. Has anyone found a way to accomplish this using PowerShell, Graph, or other methods? Essentially, I am looking for a way to…

Azure Lighthouse
Azure Lighthouse
An Azure service that provides secure managed services and access control for partners and customers.
69 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,983 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-01-24T15:23:04.43+00:00
Jason Crawford 0 Reputation points
edited the question 2023-02-09T03:39:35.6033333+00:00
Givary-MSFT 28,941 Reputation points Microsoft Employee
0 answers

Teams Room Deployment Script Error

I am trying to create media for a Teams Room Deployment but the script provided by Microsoft keeps failing during a specific part. Any ideas?....error below. Formatting and partitioning the target drive... done. Copying Windows... done. Copying the…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,329 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-07T09:38:40.55+00:00
Dean Gibson 0 Reputation points
commented 2023-02-08T07:44:58.9233333+00:00
Kael Yao-MSFT 37,586 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

Powershell script to delete particular type of file extension without removing the Folders

Hello All, I have requirement to remove the particular type of files extension from the computer without removing the folders. The files are in various path of the system and i have planned to map the C:/ and also log need to be stored for what are all…

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,425 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,205 questions
asked 2023-02-05T14:31:57+00:00
Loganathan R 81 Reputation points
accepted 2023-02-08T00:54:48.6533333+00:00
Loganathan R 81 Reputation points
1 answer

New-Partition : The requested access path is already in use.

Hey, i have a hyper V 2019 Server with two hard drives. I want to format the second hard drive as one partion and give it the Letter D. But it saying the requested access path is already in use. Get-Partition not showing any drive letter D Watch the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-07T16:17:45.75+00:00
Florian Schuster 20 Reputation points
commented 2023-02-07T22:37:40.54+00:00
Rich Matheisen 45,266 Reputation points
5 answers

How to move a file within a SharePoint channel using Microsoft Graph Files API

My company wants to move data in .xlsx files from a SharePoint channel to a database. A part of this process is being able to archive the files within the SharePoint channel. I have been working tirelessly to move a file within a SharePoint site/channel…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,983 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,964 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-01-23T20:14:29.29+00:00
Cyrus Majidy 25 Reputation points
answered 2023-02-07T05:46:39.2733333+00:00
RaytheonXie_MSFT 32,476 Reputation points Microsoft Vendor
2 answers

SharePoint Online: How to fix error for creating new teams site

Hello Everyone, While creating new Teams site using PnP Powershell, I'm getting error. How to overcome this error? "New-PnPTeamsTeam : Caller does not have the required permissions for accessing this API.…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,329 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,964 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-01-30T16:42:51.3833333+00:00
H Risbud 251 Reputation points
commented 2023-02-06T20:34:31.01+00:00
ERIC MILA 5 Reputation points
1 answer

When will PowerShell 7,1(preview) be released for GA for Azure Automation runbooks?

Is there a date for the GA release of PowerShell 7.1 for use in Azure Automation runbooks?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,154 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-02T02:09:17.7433333+00:00
Robin DiCicco 0 Reputation points
commented 2023-02-06T19:42:17.68+00:00
Monalla-MSFT 12,281 Reputation points
1 answer

Split a string from a table in a txt

Why doesn't it split/ remove the other two values in front of the searched value? I only need the value after ttt. Auto Fahrrad Roller ------------------…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-06T15:06:50.6133333+00:00
youki 1,016 Reputation points
answered 2023-02-06T19:37:37.3833333+00:00
Rich Matheisen 45,266 Reputation points
3 answers One of the answers was accepted by the question author.

How to upload a .csv or .xlsx file to a SharePoint site using the Microsoft Graph Files API

My company wants to move data in .xlsx files from a SharePoint channel to a database. A part of this process is being able to archive the files within the SharePoint site. I have been working tirelessly to figure out how to upload a .xlsx file to a…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,983 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,964 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-01-23T23:17:08.2366667+00:00
Cyrus Majidy 25 Reputation points
accepted 2023-02-06T13:07:31.4066667+00:00
Cyrus Majidy 25 Reputation points
2 answers

Manage senders for impersonation protection license required and impact?

Does anyone know what the minimum license required to utilize the Manage senders for impersonation protection like below? Because I have 300+ users to add, and not all of them using E3 or E5, some of them are using just F3 and E1 or Exchange P1…

Microsoft Exchange Online
Azure Information Protection
Azure Information Protection
An Azure service that is used to control and help secure email, documents, and sensitive data that are shared outside the company.
526 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,983 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,285 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-02T03:26:57.0433333+00:00
EnterpriseArchitect 4,916 Reputation points
commented 2023-02-06T07:43:43.98+00:00
Jame Xu-MSFT 4,166 Reputation points
1 answer

How can a make a copy of a Site Collection and to another Web Application?

How can a make a copy of a Site Collection and to another Web Application?

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,748 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-02T03:45:49.57+00:00
Michael Williams 21 Reputation points
commented 2023-02-06T07:04:05.3433333+00:00
AllenXu-MSFT 17,341 Reputation points Microsoft Vendor
0 answers

An unexpected error occured while processing the request. Tracking ID

I have a powershell script that I had successfully used a couple of days before and created a MySQL Flex database. I tried to create another database and I was getting an error regarding admin login. I have made some efforts until I understand that…

Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
736 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-05T20:51:23.5+00:00
Mike Sarafidis 1 Reputation point
commented 2023-02-06T06:30:55.54+00:00
Mike Sarafidis 1 Reputation point
2 answers

Is there any way to load wininet.dll using macros, scripts, or PowerShell??

Hi guys ! I use a couple of macros that handle files in SharePoint thru commands like "Dir" , "Save" , "open" etc. Many of these commands (Dir for instance) do not work if wininet.dll is not "loaded". In the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,900 questions
Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,573 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,964 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,205 questions
asked 2023-02-02T14:21:29.1933333+00:00
Marcelo Buarque (Nokia) 0 Reputation points
commented 2023-02-06T06:03:11.7733333+00:00
AllenXu-MSFT 17,341 Reputation points Microsoft Vendor