2,640 questions with PowerShell-related tags

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

Is there any way to scale up the azure webapp vertically (change app service plan) automatically?

Is there a way to automatically scale up an Azure Web App vertically (by changing the App Service Plan)? Has this functionality been completely removed by Azure? I attempted to use an Azure Automation Account with a PowerShell Runbook, but encountered…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,264 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,959 questions
asked 2024-10-18T04:35:37.13+00:00
Rahul Kamble 20 Reputation points
commented 2024-11-23T02:29:23.08+00:00
TP 99,371 Reputation points
1 answer

I need help exporting a list of Viva Topics

I am still very new to PowerShell and I am having trouble understanding how to run the powershell provided in this Microsoft article: https://learn.microsoft.com/en-us/microsoft-365/topics/export-topics-powershell?view=o365-worldwide My goal is to have…

Viva Topics
Viva Topics
A Microsoft Viva module that automatically organizes content and expertise across an organization.
30 questions
Microsoft Viva
Microsoft Viva
A Microsoft employee experience platform built on Microsoft 365 that brings together communications, knowledge, learning, resources, and insights.
81 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-22T21:30:00.5666667+00:00
BrianLee 0 Reputation points
answered 2024-11-22T22:52:18.3466667+00:00
Isuru Heendeniya 30 Reputation points
2 answers

Powershell to remotely check server services and start if off.

Bluff: Looking for a PowerShell script that will do the following: Check that multiple servers are available Remote into each server and check specified services Turn those services on if they are not running Current script attempt…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,303 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,617 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,565 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-22T22:04:58.6533333+00:00
Jose P 21 Reputation points
answered 2024-11-22T22:40:21.05+00:00
Rich Matheisen 47,056 Reputation points
0 answers

Invoke-WebRequest -URI options

powershell comman Invoke-WebRequest -URI "atos-cov-remote.gpcloudservice.com" returns Invoke-WebRequest : The remote server returned an error: (504) Gateway Timeout. At line:1 char:1 Invoke-WebRequest -URI…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,020 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-22T16:15:55.67+00:00
John Bell 0 Reputation points
commented 2024-11-22T21:09:27.23+00:00
Rich Matheisen 47,056 Reputation points
0 answers

Runbook Error when trying to read table with VM power states, stoped VMs that are recorded as stop and deleting the rows after the fact.

This is an after updates update manager post-script to shut down vms after they are started for updates if they were off before pre-script. Thus, keeping the environment as it was before processing updates. This is also run on a portal.azure.com…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,264 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-10-03T19:21:27.26+00:00
EDWARD REYESARROYO 25 Reputation points
commented 2024-11-22T20:06:19.2166667+00:00
Pavan Minukuri 520 Reputation points Microsoft Vendor
1 answer

Delete all sharing links of SharePoint / Teams / One Drive

Hi, we need to reset (delete) all manual setup sharing links of files inside MS Teams and OneDrive. I am able to list alle teams and all including channels via PowerShell but I don't know how to list the files and then to get the sharing info of these…

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,396 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,904 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,287 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-22T09:54:39.7466667+00:00
Wolfgang-2637 0 Reputation points
commented 2024-11-22T17:32:04.5766667+00:00
Wolfgang-2637 0 Reputation points
2 answers

how to convert vbs to powershell?

Set objSysInfo = CreateObject("ADSystemInfo") strUser = objSysInfo.UserName Set objSysInfo = CreateObject("ADSystemInfo") strUser = objSysInfo.UserName Set objUser = GetObject("LDAP://" &…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2023-04-26T07:09:08.1133333+00:00
Dmitry Ivanov 0 Reputation points
commented 2024-11-22T17:16:50.69+00:00
Rich Matheisen 47,056 Reputation points
0 answers

Problem with Remote PowerShell connections to Exchange server to run cmdlets

I recently have a custom user account provisioning program for active Directory and Exchange 2016 which has been running successfully for years but recently after a password change, it no longer works. I have made loads of checks, re-changed password,…

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,357 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,228 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-22T15:24:30.47+00:00
Peter Hutchison 0 Reputation points
2 answers One of the answers was accepted by the question author.

Removing Unique Permissions from List Items in OneDrive Sites

How can I remove unique permissions from list items (files and folders) contained within 600 OneDrive sites after a migration from on-premises to cloud? Based on a PowerShell (pnp) script, I attempted to reset unique permissions by breaking them on each…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,904 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,287 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2023-10-03T12:36:15.3466667+00:00
Noel Simela 20 Reputation points
answered 2024-11-22T09:24:22.65+00:00
PeteL 0 Reputation points
1 answer

How do I access SharePoint with PowerShell 7?

Hello everyone, I'm trying to create a PS script that reads the set permissions of a folder from SharePoint and creates a copy of it with the same rights. In MS Entra Admin Center, I've created a new app and granted it numerous permissions for testing…

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.
3,071 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,289 questions
asked 2024-11-22T07:45:39.88+00:00
Limosan 0 Reputation points
answered 2024-11-22T08:58:46.1966667+00:00
RaytheonXie_MSFT 36,406 Reputation points Microsoft Vendor
0 answers

Variable with Word's Content.Text has differences from its' Set-Content'ed simple text file; contents handelted differenly by regex

$documentText = @" Frau Anna Mustermanowa Hauptstr. 1 48996 Ministadt per beA per Mail: anna.mustermanowa@example.com AKTEN.NR: SACHBEARBEITER/SEKRETARIAT STÄDTL, 2904/24/SB Sonja Bearbeinenko +49 211 123190.00 21.11.2024 …

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
890 questions
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,027 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-21T12:02:02.6566667+00:00
Evgeny Fishgalov 0 Reputation points
edited the question 2024-11-22T01:12:47.55+00:00
Jiajing Hua-MFST 11,510 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

Room does not appear in the room search

I have created 4 rooms for testing. Three of them are in one building and one in another. All are configured in the same way. Nevertheless, the room search shows three rooms under the first building and no rooms under the other building. All rooms,…

Microsoft Exchange Online
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,396 questions
Outlook
Outlook
A family of Microsoft email and calendar products.
4,087 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-03-17T18:52:28.2366667+00:00
deschderman 25 Reputation points
commented 2024-11-21T21:23:06.57+00:00
Giroux, Maxime M [NC] 0 Reputation points
1 answer One of the answers was accepted by the question author.

Re-labeling Sensitivity labels quickly through powershell

I need a way to use powershell to change the sensitivity label of some files that have an old label applied to them to the current label I have for all files.

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
926 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-18T16:32:23.6633333+00:00
Aaron Schulte 20 Reputation points
accepted 2024-11-21T16:04:59.8266667+00:00
Aaron Schulte 20 Reputation points
1 answer One of the answers was accepted by the question author.

Automating Daily Metric Collection and Storage in Private Azure Environment

I want to extract the metric values of VMs configured in the Azure environment and automatically save them as CSV files to a Storage Account on a daily basis. While my PowerShell script is working, I am facing difficulties in saving the data to the…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,246 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,264 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-19T01:45:20.81+00:00
Yu-Jeong Seo 130 Reputation points
commented 2024-11-21T11:54:10.2466667+00:00
Ashok Gandhi Kotnana 945 Reputation points Microsoft Vendor
2 answers

Guest access expiration report for SharePoint Online site?

Hi, In my tenant, Guest access expiration is set for 180 days. I need to generate report for a SPO site that how many guests' users already lost access and how many guest users going to lose the access in future. Is there a way to get this report using…

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.
3,071 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-14T18:13:51.1166667+00:00
Prakash Kumar Singh 40 Reputation points
commented 2024-11-21T09:58:11.8466667+00:00
Yanli Jiang - MSFT 27,241 Reputation points Microsoft Vendor
1 answer

Get free/used disk space on all our VMs for reporting purposes

Hi, Within our corporate environment, we have hundreds of Windows Azure VMs deployed to users via Citrix DaaS. For monitoring purposes, we would like to see free/used space on C drive. The goal is to have a reports showing disk space status on C drive…

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,340 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,065 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-15T15:10:22.89+00:00
Mounir 0 Reputation points
edited a comment 2024-11-21T09:18:01.98+00:00
Sai Krishna Katakam 1,085 Reputation points Microsoft Vendor
1 answer

Set-PnPSiteVersionPolicy for thousands of sites in SharePoint Online - Cannot call this API with an app-only principal

We have 5000+ SharePoint Online sites in our tenant where i have to change the Site Version setting to automatic for all existing document libraries. I am using the below to connect using an Azure App and i get the error "Cannot call this API with…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,377 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,904 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,959 questions
asked 2024-11-20T23:28:44.3266667+00:00
PVK Kapardhi 0 Reputation points
answered 2024-11-21T06:06:50.39+00:00
AllenXu-MSFT 21,286 Reputation points Microsoft Vendor
2 answers

Why is my "help" command in Windows 11 Home powershell not giving a list of other commands to use with the "helped command"?

I am learning how to use the PS and whenever I use the "help" cmd, it does not display other commands. My PS is shown in the first image, and my online course is shown in the 2nd. In the 3rd image, I have already tried update-help and the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-20T05:16:05.94+00:00
Ghxste 0 Reputation points
edited an answer 2024-11-21T01:40:48.0133333+00:00
Ian Xue 38,041 Reputation points Microsoft Vendor
2 answers

Writing a powershell script to add users from a csv to a group in Active Directory?

We are wanting to use a CSV file to bulk upload users to a certain security group. Some users in the CSV will already be in the group. Is there a good source to help write this powershell script?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,681 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-20T19:58:25.32+00:00
Elizabeth N. McClary 20 Reputation points
answered 2024-11-21T01:17:14.2233333+00:00
Ian Xue 38,041 Reputation points Microsoft Vendor
1 answer

Does verb 'pintohome' be fully disable since later version of win10?

I have a powershell script helps to pin some folder to Frequent Folder to quickly achieve them. It used to work well on win10. But recently i found it that the script will be fully stucked unless i kill the window or thread, but its still ok the do it…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,778 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,640 questions
asked 2024-11-14T12:04:01.5066667+00:00
Steins 41 Reputation points
answered 2024-11-21T00:36:34.06+00:00
S.Sengupta 20,211 Reputation points MVP