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

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

PowerShell script to wipe\reset windows modern devices without user interaction

I attempted to reset a modern Windows device using various PowerShell scripts at different permission levels, including silent mode. However, a prompt still appears during the process. Is there a PowerShell script available that can wipe the device's…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-01-17T07:22:34.65+00:00
Sreekanth N Kartha 80 Reputation points
commented 2026-04-19T01:30:59.0566667+00:00
Gouvernathor 0 Reputation points
2 answers One of the answers was accepted by the question author.

Is it common that Powershell.sys file be flagged as malware by the antivirus?

I am writing to seek clarification regarding an issue we have encountered with our antivirus software (Bitdefender). Recently, PowerShell version 7.5.1.0 has been auto updated in some of our workstations and the PowerShell.sys file on our system was…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-05-29T15:11:15.58+00:00
Silverio Morales 25 Reputation points
commented 2026-04-18T13:18:41.14+00:00
MotoX80 37,676 Reputation points
1 answer One of the answers was accepted by the question author.

need help creating a PS script to do full backups; when running the get-pssnappin windows.serverbackup I receive a PS snapin does not exsist

I am currently creating a script to backup my windows servers, but I am running into issues with the server backup snap-in. the error message i get is get-pssnapin : No Windows PowerShell snap-ins matching the pattern 'windows.serverbackup' were found.…

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Server | User experience | PowerShell
asked 2022-11-22T19:52:50.63+00:00
Jeff 21 Reputation points
accepted 2026-04-14T17:52:26.52+00:00
Jeff 21 Reputation points
4 answers One of the answers was accepted by the question author.

reg load will create a new registry file??

I am trying to create a .bat file for modify registry. During debugging, I run the command "reg load HKLM\TempHive C:\Windows\System32\config\Softwarv1235". Surprisingly, The result is "The operation completed successfully", and a new…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-04-12T08:28:50.8766667+00:00
Ashley Kwan 20 Reputation points
accepted 2026-04-14T02:59:17.87+00:00
Ashley Kwan 20 Reputation points
3 answers

Select and update variables in Single step among multiple steps by same name using powershell cmdlets for Task Sequence

Hi , I am trying to remove one Variable from step Unfortunately we have multiple steps with same name If I use Set-CMTSStepSetDynamicVariable -Stepname <stepname> , this changes all steps by name <stepname> How can select only one…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other
asked 2022-03-08T18:16:38.257+00:00
Siddhesh Mervekar 1 Reputation point
commented 2026-04-13T12:30:02.83+00:00
Siddhesh Mervekar 1 Reputation point
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 | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
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,119 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,148 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 | PowerShell
Windows for business | Windows Server | User experience | Other
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,815 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
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
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 15,510 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…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Teams | Microsoft Teams for business | Other
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 40 Reputation points
commented 2026-03-23T15:42:11.6533333+00:00
Andrew Ang 40 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…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Edge | Microsoft Edge development
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,676 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