8,329 questions with Windows for business | Windows Server | User experience | PowerShell tags
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
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
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
Windows for business | Windows Server | User experience | PowerShell
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 | Exchange Server | Management
Windows for business | Windows Server | User experience | PowerShell
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
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
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
Windows for business | Windows Server | User experience | PowerShell
SQL Server | Other

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

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
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
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
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
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph

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
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
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
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
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
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
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
Windows for business | Windows Server | User experience | PowerShell

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
