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

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

Connect-SPOService : No valid OAuth 2.0 authentication session exists ?

How to fix the issue to connect to SharePoint Online using PowerShell like below? Because when I am using the PowerShell ISE, and then the command: Connect-SPOService -Url 'https://CompanyName-admin.sharepoint.com' I got the error:…

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2023-02-20T02:47:20.1466667+00:00
EnterpriseArchitect 6,366 Reputation points
commented 2026-04-06T17:30:17.1+00:00
CalebLenz-psc 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 cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

7,081 questions
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

8,139 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2025-01-13T15:53:39.0066667+00:00
Andrea Thiel 10 Reputation points
commented 2026-04-02T13:44:51.8466667+00:00
Vukotic, Djordje 0 Reputation points
2 answers One of the answers was accepted by the question author.

Storage Migration Service stuck on step 2 "Transfer Data" Start the transfer phase

Hello, I have a dedicated Orchestrator VM running WAC on windows server 2022 datacenter. I am running into an issue migrating a 2012r2 server to windows server 2022. I have been able to go through all the steps up to step 2. I was able to successfully…

System Center Orchestrator
System Center Orchestrator

A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.

276 questions
Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Server | User experience | Other
Windows for business | Windows Server | User experience | PowerShell
asked 2024-02-09T13:51:00.5133333+00:00
Spencer 20 Reputation points
edited an answer 2026-04-02T08:19:59.04+00:00
JuliaMarvin 18,805 Reputation points Volunteer Moderator
2 answers One of the answers was accepted by the question author.

How to verify Remote Windows firewall (builtin Windows Defender Firewall with Advanced Security) status ?

What is the most reliable way to query the builtin Windows Defender Firewall with Advanced Security status on a Windows Server OS remotely?   New-CimSessionOption -Protocol Wsman combined with Get-NetFirewallProfile -CimSession $cimSession -ErrorAction…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-04-01T12:30:42.3133333+00:00
EnterpriseArchitect 6,366 Reputation points
accepted 2026-04-02T04:26:46.9133333+00:00
EnterpriseArchitect 6,366 Reputation points
2 answers

Add a column to multiple document libraries

Hello comunity, I want to add a columns to a number of document libraries at the same time in my sharepoint site. Essentially I have 50+ document libraries set up and I now need to add a new column to all of them, is there a powershell script to do…

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2023-02-01T16:20:08.9033333+00:00
KOB 5 Reputation points
edited a comment 2026-03-31T13:54:19.66+00:00
Star Donovan 20 Reputation points
2 answers

SharePoint Online: Find Duplicate Documents using PowerShell

Could someone post a working script for getting a list of duplicate files in Sharepoint Online? The scripts formerly posted no longer work.

Microsoft 365 and Office | SharePoint | Development
Windows for business | Windows Server | User experience | PowerShell
asked 2025-01-07T17:04:14.4366667+00:00
44785390 5 Reputation points
commented 2026-03-28T02:20:24.1066667+00:00
Marcus CK Lee 0 Reputation points
2 answers One of the answers was accepted by the question author.

PowerShell for SQL Server

Hi. I need some help with PowerShell to iterate list of SQL instances and run a query from an inputfile against those instances. It's straightforward enough to read a list of SQL instance names (and port numbers) from a .CSV file using FOR EACH and…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-25T18:32:10.72+00:00
Cooper, David A. [T4] 60 Reputation points
accepted 2026-03-25T23:12:40.01+00:00
Cooper, David A. [T4] 60 Reputation points
1 answer

How can I use Microsoft Graph (+PowerShell) to copy one user's calendar to a 365 Group calendar?

Hello, I am trying to copy events from one former employee's shared calendar to a 365 Group. I posted in the community earlier today and was directed here for further assistance. The situation: Employee 1 was part of Department A and had a created a…

Outlook | Windows | Classic Outlook for Windows | For business
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Microsoft Security | Microsoft Graph
Windows for business | Windows Server | User experience | PowerShell
asked 2024-07-15T21:32:49.4366667+00:00
Darron 0 Reputation points
commented 2026-03-25T08:38:43.3933333+00:00
CsabaV 0 Reputation points
3 answers

List all the options and switches for the microsoft powershell DIR command

Make the list of the DIR command's options, switches and other useful DIR or ls options

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-19T10:04:12.0133333+00:00
Rich Wilk 0 Reputation points
answered 2026-03-25T03:21:19.8133333+00:00
Jason Nguyen Tran 14,440 Reputation points Independent Advisor
3 answers One of the answers was accepted by the question author.

Teams is not visible in Microsoft teams admin center

I have created a group from admin center and add to the Teams It is visible from Microsoft teams as in the image below But if I view from Admin center the teams mark is absent for the group As if I open setting it shows add teams option but if I…

Microsoft Teams | Microsoft Teams for business | Other
Windows for business | Windows Server | User experience | PowerShell
asked 2023-07-20T06:07:16.7666667+00:00
ネパリ サンデャ 520 Reputation points
commented 2026-03-23T19:45:20.0033333+00:00
Mark Krywaruczenko 0 Reputation points
2 answers

How to check and export the application schema extensions on Windows 2012 R2 DC

How to check and export the application schema extensions on Windows 2012 R2 DC

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-06T04:42:48.1066667+00:00
Andrew Ang 0 Reputation points
commented 2026-03-23T15:42:11.6533333+00:00
Andrew Ang 0 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 development
Windows for business | Windows Server | User experience | PowerShell
asked 2023-09-11T09:44:11.8766667+00:00
Paul Jefferies 30 Reputation points
commented 2026-03-17T02:52:41.09+00:00
Caffeine Cat 0 Reputation points
2 answers

using "\\?\" prefix

using "\?" prefix with robocopy command in CMD on windows server 2019 received error "the system cannot find path".

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-16T07:25:15.34+00:00
Chitchai Hemachudha 0 Reputation points
edited an answer 2026-03-16T14:34:11.8466667+00:00
MotoX80 37,511 Reputation points
2 answers

The file is not digitally signed. You can not run this script on this system.

Dear experts, I am using a Windows 11 pc. i have installed the software Visual Studio Code. Where i can give commands in PowerShell. I try to give the command: 'yo @microsoft/sharepoint". And i get the error message: "File can not be loaded.…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-05-03T20:19:50.9533333+00:00
Peter Kiers 96 Reputation points
commented 2026-03-13T12:05:54.0933333+00:00
Dazz Knowles 0 Reputation points
2 answers

Power shell write-progress

Good morning, Using Software center on a closed environment to install various versions of Matlab. MathWorks removed the "automated" feature mode from their installer input file starting with R2020. When a user runs the…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-12T14:35:10.31+00:00
Jcam23 0 Reputation points
commented 2026-03-12T16:30:39.3+00:00
Jcam23 0 Reputation points
2 answers

How do I fix this?

Script exited with code 1: C:\Users\ricke\AppData\Local\Temp\smsgateway_send_f001a63d676c424b94365fee722eade1.ps1 : Send button not enabled + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId :…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-11T18:03:33.4333333+00:00
Robert Christensen 0 Reputation points
answered 2026-03-11T19:12:31.82+00:00
Scott Nguyen 690 Reputation points Independent Advisor
2 answers One of the answers was accepted by the question author.

change local Administrator Password remotely using PowerShell script

Hi, I have 100 Clients machine and want to change local Administrator password remotely and using Power shell script. I have an PS and it works locally fine, but not remotely. What I want, is following: the script should be able to change local admin…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-09T10:10:02.7066667+00:00
SSE@TUE 320 Reputation points
edited the question 2026-03-10T10:15:51.0766667+00:00
SSE@TUE 320 Reputation points
3 answers

Install-ADServiceAccount fail with unspecified error creating gMSA

Hello, I tried the script inside how-to-prerequisites to create a gMSA to test Azure AD Connect cloud sync; the script is this: $Name = 'aadsyncgMSA' $Description = "Azure AD Cloud Sync service account for LAB-DC1 server" #$Server =…

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Windows for business | Windows Server | User experience | PowerShell
asked 2022-12-06T18:20:08.753+00:00
Marco Mangiante 21 Reputation points
commented 2026-03-05T16:32:41.3933333+00:00
Fred Whitehouse 0 Reputation points
3 answers

AD FS Help Diagnostics Analyzer

I tried to create a diagnostic file (export-adfsdiagnosticsfile), but I’m not sure what to do with it. The website where I used to upload it is not working anymore. It says that the site has been moved to a module. So I’m asking — where can I find these…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-03-02T13:55:58.75+00:00
HanakJ 96 Reputation points
answered 2026-03-04T10:19:27.95+00:00
VPHAN 28,585 Reputation points Independent Advisor
4 answers

Get-Partition & Win32_Volume does not return all volumes and partitions on a disk

Problem I am using Get-Partition command & Win32_Volume class to get the list of partition and volumes in the disk. However, these commands are not returning all the volumes and partitions even though the disk management show the disks and volumes…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-02-04T09:53:09.5233333+00:00
SaravanaKumar Dhamodaran 0 Reputation points
answered 2026-02-28T15:14:41.32+00:00
Castorix31 91,861 Reputation points