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

Sort by: Updated
1 answer

Posershell script to install *.cab and *.msu

Hello Team, Share the powershell script to install the below files in remote computeres SSU-26100.8648-x64.cab windows11.0-kb5094126-x64.msu

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-27T15:40:35.91+00:00
Boopathi S 3,951 Reputation points
answered 2026-06-27T16:40:47.39+00:00
Marcin Policht 93,875 Reputation points MVP Volunteer Moderator
1 answer One of the answers was accepted by the question author.

Powershell command to delete *.msu files under C:\temp and subfolder

Hi, please share the powershell script to to delete *.msu files under C:\temp and its subfolder

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-27T15:05:02.3166667+00:00
Boopathi S 3,951 Reputation points
accepted 2026-06-27T15:26:30.9833333+00:00
Boopathi S 3,951 Reputation points
0 answers

RBACAccessDenied when deploying budget through deployment stack sometimes

i am deploying multiple deployment stack on management group level for child subscriptions. The service principal has owner og the management group. The service connection is owner on management group level and is owner on the action group connected to…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-03-04T15:56:52.8433333+00:00
Nadia Hansen 5 Reputation points
edited a comment 2026-06-26T14:41:00.99+00:00
MotoX80 37,701 Reputation points
1 answer One of the answers was accepted by the question author.

wbadmin start backup fail

When I use wbadmin start backup cmd to start backup, it fails with the following message. How do I konw which process locked the EFI partition? ================================== wbadmin start backup -backupTarget:z: -include:c:,d: -allCritical -quiet…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-01-12T01:13:18.0066667+00:00
Fiona 145 Reputation points
accepted 2026-06-26T07:52:32.5866667+00:00
Fiona 145 Reputation points
3 answers

Get-PnPList e on SharePoint 2019 will return this error "(403)Forbidden"

I have SharePoint on-premises 2019 and using Site collection administrator i am trying to get a list using PnP Power Shell, the Connect-PnPOnline worked fine, but trying to get any list or site will return this error :- any advice ? i read about…

Microsoft 365 and Office | SharePoint Server | For business
Windows for business | Windows Server | User experience | PowerShell
asked 2022-09-29T11:19:03.967+00:00
john john 1,031 Reputation points
commented 2026-06-21T11:04:04.4366667+00:00
Rabeena Tasleem 0 Reputation points
2 answers

Adding 2048-bit DKIM DNS record via PowerShell doesn't work. 2016 UI works.

I haven't checked 2019 yet but 2016's Add-DnsServerResourceRecord cmdlet can't handle a key that goes beyond the 255 character limit. The mmc for DNS appears to support this just fine. Having a disconnect between the UI and the CLI is really…

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
asked 2021-04-11T13:24:29.877+00:00
Andrew McNaughton 6 Reputation points
answered 2026-06-20T16:14:53.94+00:00
Doug Douglas 0 Reputation points
1 answer

Select-Xml NameSpace

I'm trying to use the XML output from group policy to export all settings to a CSV file. I can get about 60% there. I've noticed the XML file seems to be all over the place when it comes to a pattern. I am trying to learn how to use Select-XML and I…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2023-04-03T19:51:32.9566667+00:00
ComputerHabit 1,061 Reputation points
answered 2026-06-20T12:28:02.3666667+00:00
david james 0 Reputation points
1 answer

Can return codes from usoclient.exe be captured in PowerShell

When using Invoke-Command or Start-Process -wait with usoclient.exe, what are the expected return codes?

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-19T17:04:01.15+00:00
Burley, Keith 0 Reputation points
answered 2026-06-19T18:06:03.38+00:00
Jason Nguyen Tran 20,895 Reputation points Independent Advisor
1 answer One of the answers was accepted by the question author.

How to disable all aliases in PowerShell

Hello, I want to disable the use of aliases (to avoid typing incorrect command abbreviations) in PowerShell 7.6.3. To do this, first: For $PROFILE + Temporary Session I tried some commands that delete all aliases, writing them in the $PROFILE…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-18T11:59:45.9466667+00:00
NPLGlitcherPatcher 250 Reputation points
accepted 2026-06-18T12:48:19.1366667+00:00
NPLGlitcherPatcher 250 Reputation points
2 answers

Powershell Command line to ignore WARNING: Attempting to reconnect to Computer-A

Hello, I am using the below command to connect devices remotely. If Computer-A is disconnected from network then it is keep trying to connect again. is there any command line to add so that it will move to next computer if it is not reachable in…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-17T17:26:56.1+00:00
Boopathi S 3,951 Reputation points
answered 2026-06-17T18:22:25.42+00:00
HLBui 8,040 Reputation points Independent Advisor
2 answers

execute powershell command for remote computers at the same time

Hello Team, I am using below powershell command in PowerShell_ISE. Here the first command executes, and it is not going to second computer till the first command completed. Invoke-Command -ComputerName "ComputerA" -ScriptBlock { Dism.exe…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-16T13:31:29.3433333+00:00
Boopathi S 3,951 Reputation points
answered 2026-06-16T14:14:42.6266667+00:00
Harry Phan 23,755 Reputation points Independent Advisor
2 answers

running a cmd within powershell

I am trying to run a cmd file through powershell. The file is located in a folder inside Program Files. I have tried invoke-item -path "c:\program files\myProgram\myfile.cmd" which gave me cmd file not found message. Then, I tried to…

Windows for business | Windows Server | User experience | PowerShell
asked 2021-06-07T20:54:51.92+00:00
Hippopotamus Defence 116 Reputation points
answered 2026-06-15T22:09:26.82+00:00
Alvin 0 Reputation points
4 answers

How do we fix 0x8a15000f : Data required by the source is missing?

I Am trying to run winget on a widows 11 pc and keep getting the error 0x8a15000f : Data required by the source is missing. Have done update reset and still get the issue with the same error.

Windows for business | Windows Server | User experience | PowerShell
asked 2024-05-29T13:34:46.4066667+00:00
Campbell, Joseph 0 Reputation points
answered 2026-06-02T20:16:58.9466667+00:00
William Li 0 Reputation points
1 answer

BAT Files No Longer Open on Double-Click After Upgrading to Windows 11

After upgrading to Windows 11, .bat files no longer execute on double-click. Instead, nothing happens. Prior to the upgrade, these files opened and executed normally in Command Prompt. Here's what I have tried: Attempted to set cmd.exe as the default…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-06-10T07:36:57.0933333+00:00
Varghese, Amal 0 Reputation points
answered 2026-06-02T09:58:37.95+00:00
chris hey 0 Reputation points
2 answers

KB5082198: PowerShell cannot access certificate private keys after April 2026 Windows Server update until certificates are re-imported

After installing the April 2026 cumulative update KB5082198 on Windows Server 2016, we observed problems accessing private keys of certificates from PowerShell. Environment: OS: Microsoft Windows Server 2016 Update: KB5082198, OS Build 14393.9060 …

Windows for business | Windows Server | User experience | PowerShell
asked 2026-06-01T10:38:00.84+00:00
Stefan Bretschneider 0 Reputation points
answered 2026-06-01T11:21:26.9+00:00
Jason Nguyen Tran 20,895 Reputation points Independent Advisor
3 answers

Command - rename all pdf files in directory (and subdirectories) with sufix _YYYYMMDD-HHMM

Hello, exist any possibility how to create cmd/powershell command to find (in directory and in all subdirectories) all pdf files, read data of create pdf file (YYYYMMDDHHMM) and rename all PDF file with new sufix "_YYYYMMDD-HHMM" e.g.…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-05-26T14:56:47.46+00:00
Salka, Milan 111 Reputation points
answered 2026-05-28T06:50:31.5733333+00:00
Tsingtao Kai 80 Reputation points
2 answers

Command - find all files with oldest sufix and move it to _backup subdirectory

Hello, exist any possibility how to create in cmd/powershell command to find (in one directory) all pdf files, and all with oldest sufix move to _backup subdirectory. Example. Content of…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-05-26T15:06:57.1533333+00:00
Salka, Milan 111 Reputation points
answered 2026-05-26T15:59:19.3233333+00:00
HLBui 8,040 Reputation points Independent Advisor
2 answers

Import the .nupkg file

Hello, How can i import the .nupkg file to powershell? Please help

Windows for business | Windows Server | User experience | PowerShell
asked 2024-05-06T15:28:43.7033333+00:00
Boopathi S 3,951 Reputation points
commented 2026-05-25T14:15:52.3433333+00:00
Janne Kujanpää 266 Reputation points
1 answer

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…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-04-24T06:21:15.81+00:00
Jaskirat Singh 10 Reputation points
commented 2026-05-21T17:25:08.9133333+00:00
Sudhanshu Madavi 0 Reputation points
3 answers

How to uninstall Microsoft Store app on a remote computer?

I'm a Tier II tech with several tickets to uninstall Microsoft Store apps. The user's have been unresponsive to my requests for a remote session so I'm trying to find a way to use PowerShell. I've tried using the Remove-AppxPackage -Package…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-05-18T21:34:53.7566667+00:00
Webb, Mike 80 Reputation points
answered 2026-05-21T13:00:29.8633333+00:00
Webb, Mike 80 Reputation points