2,915 questions with PowerShell-related tags

Sort by: Updated
0 answers

How to change the TightVNC password

Hi, I'd like to know how I can change the TightVNC password using PowerShell. I've been searching the web for information, but I can't figure out how to do this.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-27T13:51:42.4066667+00:00
Efreklin Augusto Feliz y Feliz 0 Reputation points
7 answers

PS script error

Hello! I have a few scripts that delete old backups from some folders. There's actually one string that deletes the oldest folder: Remove-Item -Path [Folder Name] -Recurse -Force ...and it works perfect for all folders except the one: while deleting…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-15T09:48:39.45+00:00
Hram Admin 120 Reputation points
edited an answer 2025-04-26T00:05:04.7766667+00:00
MotoX80 35,726 Reputation points
0 answers

Connect to ExchangeOnlineManagement powershell module returns error

Script is called from Workato, and runs from a virtual machine that has exchange online 3.6.0. This was working up until last week. UnAuthorized At C:\Program…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-25T19:04:17.0266667+00:00
KimH 0 Reputation points
0 answers

Run az account get-access-token command failed

I ran the following az account command, it can return the right result az account get-access-token --scope https://canary.graph.microsoft.com/User.ReadWrite.All  --tenant 633fc03f-56d0-459c-a1b5-ab5083fc35d4 but if I ran the following command, it…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-25T13:23:06.9133333+00:00
Bingqiang Xiang 20 Reputation points Microsoft Employee
3 answers

How to fix Error Acquiring Token

I'm getting this error whenever i try to connect to Exchange online using PowerShell as Admin and I can't figure out how to fix it. Error Acquiring Token: Unknown Status: Unexpected Error: 0xffffffff80070520 Context: (pii) Tag: 0x21420087 (error code…

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,859 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,864 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-01-13T15:53:39.0066667+00:00
Andrea Thiel 5 Reputation points
commented 2025-04-24T13:59:10.7966667+00:00
Paul Laing 0 Reputation points
0 answers

Windows powershell keeps randomly opening for a split second..

Well the main issue is when i log into my pc after like 10-20 minutes. The windows powershell randomly opens up for a split second. this usually happens in every 20-30 minutes. I really dont know what thing is causing this issue? PLease somebody help me…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-24T06:21:15.81+00:00
Jaskirat Singh 0 Reputation points
0 answers

Expired or Invalid pagination request

Write-ErrorMessage : Expired or Invalid pagination request. Default Expiry time is 00:30:00 At C:\Users\127079\AppData\Local\Temp\tmpEXO_nyok0szv.zqj\tmpEXO_nyok0szv.zqj.psm1:1189 char:13 Write-ErrorMessage $ErrorObject …

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-24T06:05:54.82+00:00
Rajeev Kumar 0 Reputation points
commented 2025-04-24T06:07:17.03+00:00
Rajeev Kumar 0 Reputation points
0 answers

How to use Add-PnPFolder to add a folder to other SPO Libraries

I can use Add-PnPFolder to add a folder to the Shared Documents library but receives the follow error message "Add-PnPFolder : File Not Found." when attempting to add a folder to any other document library. I have a csv file with a list of…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-24T02:16:02.9366667+00:00
Callistus Lucien 0 Reputation points
0 answers

The term 'Copy-PnPList' is not recognized as the name of a cmdlet

I am facing below issue while using pnp-powershell with SharePoint Online: Copy-PnPList : The term 'Copy-PnPList' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-22T16:07:10.2866667+00:00
Mukesh Patil 0 Reputation points
2 answers

How to delete items from the SharePoint Recycle Bin using PowerShell when there are large number of items in the Recycle Bin?

We just implemented retention labels on one of our very large SharePoint Online libraries, which caused the deletion of 800,000 files. Of course someone wanted a specific file restored, but it's impossible to scroll through the Recycle Bin web page to…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-21T15:02:23.1966667+00:00
Nemeth, Dan 0 Reputation points
answered 2025-04-22T15:31:40.0166667+00:00
Rich Matheisen 47,786 Reputation points
3 answers

How to launch Microsoft Edge to a specific Workspace?

How can I launch Microsoft Edge directly to a specific shared Edge Workspace, ie what is the command line switch? Preferably I would like to launch two workspaces at once; more preferably I would like to launch them on to the last desktop region that…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,542 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2023-09-11T09:44:11.8766667+00:00
Paul Jefferies 30 Reputation points
edited a comment 2025-04-22T10:26:51.6333333+00:00
Joans 0 Reputation points
0 answers

Error occurred while executing GetUsers

Good afternoon everyone. Greetings. I need help for an error that the Get-AzureADUser command started throwing: Connect-AzureAD -TenantId $tenantid -CertificateThumbprint $appazurethumbprint -ApplicationId $appazureid Get-AzureADUser -All $True The…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-21T17:14:19.9266667+00:00
Jairo Javier Baleta Cali 216 Reputation points
1 answer

How to generate M365 Product license report in Power BI

Hello Everyone, I see the Usage Report in the M365 Admin Center and they are helpful. However, I am looking for a way to generate a report on our product licensing usage. Similar to the view from the Entra ID -> Licenses -> All Products. Where…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,771 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,518 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2024-01-31T17:54:09.5633333+00:00
igibason 35 Reputation points
commented 2025-04-18T21:13:20.41+00:00
Nicole Ponce 0 Reputation points
1 answer

Reporting of user installed Office Store add-ins

I am currently in the process of locking down user access to the Office Store in M365 Apps. I've managed to do so, however, in testing it seems that once the Office Store is locked down, it breaks add-ins that users have installed themselves. Before I…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2024-08-12T17:19:38.6933333+00:00
NealD85 15 Reputation points
edited an answer 2025-04-17T19:29:17.6133333+00:00
NealD85 15 Reputation points
0 answers

DSC v3 - periodical checking/auto-remediation of configuration

Hi, in DSC v3 how can we accomplish periodical checking/auto-remediation of configuration on hundreds of servers - in PowerShell DSC v2 it was easy with LCM around.

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-17T09:26:22.21+00:00
Bojan Zivkovic 551 Reputation points
1 answer One of the answers was accepted by the question author.

Help with a media renaming script

Hello all, hope everyone is doing great. I am wondering if I can help me with a powershell script I am currently working on (I am newish to powershell). The script that in question is for re-naming media files. This is what I have so far (please see…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-15T23:30:18.58+00:00
Nagorb 20 Reputation points
commented 2025-04-16T23:56:06.5133333+00:00
Nagorb 20 Reputation points
0 answers

Why are ETW events not triggered when using PS in a custom PowerShell host from C sharp?

I'm executing PowerShell scripts from within a C# application using the System.Management.Automation library. My goal is to capture script actions through ETW events from the Microsoft-Windows-PowerShell provider. When I run the same script in the…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-15T08:50:42.3733333+00:00
javieriv 0 Reputation points
edited the question 2025-04-15T08:50:59.99+00:00
javieriv 0 Reputation points
0 answers

What can I use for a script to cycle through all of our Sharepoint sites and export details to a CSV?

I need to gather the following for each of our SharePoint sites: Name of site URL of site Owners of site Members of site Last updated (site activity) I have been trying to find a script that I can use to get the above data for each site, and I am…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-14T20:10:12.0733333+00:00
Miranda-5426 20 Reputation points
3 answers One of the answers was accepted by the question author.

How can i successfully uninstall old version of microsoft store apps using powershell command in all user profiles

I have been trying to deploy the below command through Sccm task sequence  to all the machine but unfortunately i still find the old version of the app still there.What am l m missing? This is one of the commands an using. Remove-AppxPackage -allusers…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,075 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,420 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,915 questions
asked 2023-09-07T16:06:12.0966667+00:00
Salanje Banda 20 Reputation points
answered 2025-04-12T18:06:22.2166667+00:00
Dana Loew 0 Reputation points
0 answers

Adding tags to a Shared Channel in Teams

I see that Shared channels within teams now supports tags. Does anyone know how to automate the creation of tags for a shared channel within PowerShell? I have a script that automatically creates the shared channel, adds the appropriate members but…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,915 questions
asked 2025-04-11T19:25:01.8166667+00:00
KAK411 0 Reputation points