8,329 questions with Windows for business | Windows Server | User experience | PowerShell tags

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

Powershell -WhatIf parameter was ignored

I was exploring the outcome of a powershell command after seeing a question asked on the stackoverflow forum. Using -WhatIf parameter when the command was run was ignored by the console and it ran it through In the past we have used the -WhatIf…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2021-11-10T19:52:23.87+00:00
Johnny Mongstad 21 Reputation points
answered 2025-07-11T14:58:09.81+00:00
Dampc Mateusz 0 Reputation points
1 answer One of the answers was accepted by the question author.

Aspire Dashboard is not showing the updated start time of the containers and unable to start/stop containers using PS command line

I have deployed Dotnet Aspire Project using azure developer cli.- Multiple deployments are completed but the start time is not updating with each new deployment.- However active revision time is updated when i check it from Azure Portal.- How can i…

Developer technologies | ASP.NET | ASP.NET Core
Windows for business | Windows Server | User experience | PowerShell
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
703 questions
asked 2025-01-17T09:52:50.2+00:00
Faisal Riaz 40 Reputation points
accepted 2025-07-11T11:28:53.19+00:00
Faisal Riaz 40 Reputation points
2 answers One of the answers was accepted by the question author.

I want to download start-histricalsearch data with powershell

Is there a way to download the information obtained by start-histricalsearch with Powershell? I want to download as a CSV file as if I downloaded with GUI. Or I want to automate the download process with .bat etc.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,194 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2022-02-02T07:27:16.663+00:00
tarou chabi 731 Reputation points
edited an answer 2025-07-11T07:57:40.9633333+00:00
Zeg 0 Reputation points
2 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…

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,194 questions
Exchange | Exchange Server | Management
Windows for business | Windows Server | User experience | PowerShell
asked 2025-01-13T15:53:39.0066667+00:00
Andrea Thiel 5 Reputation points
commented 2025-07-09T08:33:12.2766667+00:00
Schehed Al Attar 0 Reputation points
2 answers

Change a driver via Powershell or CMD

I have two device drivers to choose for the camera. in the UI I go: Device Manager -> Device -> Update Drivers -> Browse my computer for driver software -> Let me pick from a list of available drivers on my computer -> Select one of two…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-05-24T13:48:48.9433333+00:00
Stephenie Siegmann EDA 5 Reputation points
answered 2025-07-08T12:16:24.4033333+00:00
Shiva Konduru 1 Reputation point
2 answers One of the answers was accepted by the question author.

Is there a PowerShell or other way to get a list of all external users who were given access by link sharing to our SharePoint Online (without adding them to AD)?

Hi there Is there a PowerShell or other way to get a list of all external users who were given access by link sharing to our SharePoint Online (without adding them to AD)? E.g., a site owner can grant access to a document library folder by…

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2021-12-07T23:09:00.543+00:00
frob 4,261 Reputation points
commented 2025-07-07T15:19:46.4433333+00:00
Ian Rolfe - HPS 1 Reputation point
1 answer

How to setup Azure Automation account to restore database on SQL MI ?

Hello, I have a PowerShell script (see below) that I currently run daily from a task scheduler on a VM to restore a production database (SQL Managed Instance) to a secondary instance (SQL Managed Instance). I am planning to move this process to an Azure…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,369 questions
Windows for business | Windows Server | User experience | PowerShell
SQL Server | Other
asked 2024-07-23T20:11:08.8833333+00:00
Anoop Noel Nakkala 0 Reputation points
answered 2025-07-06T21:20:44.43+00:00
Amira Bedhiafi 34,656 Reputation points Volunteer Moderator
1 answer

Fail to add GroupTag to Autopilot devices by script

Dears, I would like to use script to add GroupTag to Autopilot by Serial Number, The scrip as the below: **Connect-MgGraph $SNs= Import-Csv "C:\NoGroupTag_Serial.csv" foreach($SN in $SNs){ $currentdevice= Get-AutopilotDevice -Serial…

Microsoft Security | Windows Autopilot
Windows for business | Windows Server | User experience | PowerShell
asked 2023-08-22T15:34:02.7433333+00:00
Jacky Wu 5 Reputation points
answered 2025-07-05T13:56:21.0766667+00:00
Pavel yannara Mirochnitchenko 13,341 Reputation points MVP
1 answer

WSL.exe Crashes in Administrator PowerShell with Offline Windows PC

Hello, I'm encountering an issue with WSL (Windows Subsystem for Linux) on my offline Windows 10 PC (Version 21H2, OS Build 19044.1288). When I run wsl from PowerShell (non-admin) it works fine, but when I run it from PowerShell as Administrator, it…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-12T14:18:54.2566667+00:00
Omer 0 Reputation points
commented 2025-07-01T11:23:47.4433333+00:00
Omer 0 Reputation points
4 answers

Get-MgSite : Access denied

Hi All I am having a lot of issues getting all sites with MS Graph in PowerShell. Tried with delegated permissions and app-only and constantly getting access denied. Any one came across something similar? Running: "Get-MgSite -SiteId…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
asked 2022-08-23T17:39:49.483+00:00
Patryk Koprowski 6 Reputation points
commented 2025-07-01T00:02:11.13+00:00
Martin Budden 0 Reputation points
1 answer One of the answers was accepted by the question author.

Assign all tasks in a planner bucket to myself

Hi there I want to create a Power Automate flow that assigns all tasks within a specified planner bucket to myself.

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-27T06:46:29.08+00:00
Kim Dell 20 Reputation points
accepted 2025-06-30T22:50:57.67+00:00
Kim Dell 20 Reputation points
3 answers

The Function app may be missing a module containing the 'Connect-MgGraph' command definition

I am trying to run a Microsoft Graph PowerShell script through azure PowerShell function. But I am getting following error The Function app may be missing a module containing the 'Connect-MgGraph' command definition. If this command belongs to a module…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,939 questions
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
asked 2023-02-05T16:04:29.8766667+00:00
Liju P Nandanan 21 Reputation points
answered 2025-06-27T12:28:45.4333333+00:00
Chendrayan Venkatesan 11 Reputation points
2 answers

WDAC policy and Powershell constrained language mode

Hello, if I understood these articles (1 , 2, 3) correctly, when WDAC is enabled, the Powershell session starts in constrained language mode. Please tell me how to allow users to run powershell in Full Language mode without disabling option 11…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Defender | Microsoft Defender for Identity
asked 2024-01-10T19:12:40.5933333+00:00
Yevhen UK 0 Reputation points
answered 2025-06-26T20:39:33.5133333+00:00
Andrew Huffman 0 Reputation points
0 answers

Unable to use eDiscovery over Azure Application

Hello everyone, I am creating a script to export Search jobs (done already), since microsoft have decomitioned this, but being blocked because lack of permissions, even doing over an Azure App with application permissions for…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-25T14:19:23.2966667+00:00
marafado88 21 Reputation points
1 answer One of the answers was accepted by the question author.

Is there a limitation on the Powershell command Get-RetentionCompliancePolicy?

I tried managing retention policies via Powershell for automation but when I came across the command Get-RetentionCompliancePolicy but it does not say what location are either enabled and disabled whenever I tried disabling/enabling the locations. For…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-17T02:06:54.5833333+00:00
Alexander Andro Jae Diaz 40 Reputation points
accepted 2025-06-25T10:48:43.25+00:00
Alexander Andro Jae Diaz 40 Reputation points
1 answer

Update-AzureADSSOForest Error

When running the command Update-AzureADSSOForest, I encounter an aggregate exception error. Running in PowerShell on the Azure AD Connect computer, after following this documentation.…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-24T20:21:30.8166667+00:00
Amanda 0 Reputation points
answered 2025-06-25T08:29:51.7+00:00
Smith Pham 1,790 Reputation points Independent Advisor
2 answers

Powershell script for 7-zip

Hello I'm very much new to the scripting world. I don't know basics of scripting. I have an assignment on my course, where i have been provided with a script to install 7-zip on my test computer using intune. The following is the script given …

Windows for business | Windows Server | User experience | PowerShell
asked 2022-08-06T19:32:04.81+00:00
Karthik 1 Reputation point
commented 2025-06-24T20:13:21.36+00:00
Rich Matheisen 47,906 Reputation points
0 answers

How to automate creation of On-premise AD groups using powershell from Domain controller machine

How to automate creation of On-premise AD groups using powershell from Domain controller machine

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-24T17:28:57.9966667+00:00
nikita tiwari 25 Reputation points
commented 2025-06-24T19:03:53.05+00:00
Rich Matheisen 47,906 Reputation points
1 answer

Azure time trigger PowerShell function manual vs schedule

I have this Time Trigger Function that runs PowerShell code to fetch Azure storage accounts used capacity metrics based on the tags. The code works fine when I trigger the job manually and gives me the accurate details but fetches 0 value from all the…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,939 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2024-09-19T09:40:48.64+00:00
Sudhirkumar Karamchand 0 Reputation points
answered 2025-06-24T09:56:55.14+00:00
Amira Bedhiafi 34,656 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

SharePoint Online - Error: This item cannot be updated because it is locked as read-only.

In SharePoint online site, the pdf files in document library are not able to deleted/check in/discard checkout. The checked out to user is System Account Error: This item cannot be updated because it is locked as read-only.

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2023-08-02T13:02:34.65+00:00
Sandhya Reyya 25 Reputation points
commented 2025-06-23T10:37:44.9033333+00:00
Nnadi, Kingsley 0 Reputation points