8,392 questions

Sort by: Updated
3 answers

how can i enable running scripts is disabled on this system.

npm : File C:\npm.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170. At line:1 char:1 npm init + CategoryInfo …

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-17T03:49:00.84+00:00
ASIEDU OBED 0 Reputation points
answered 2026-10-27T19:18:11.8533333+00:00
Vasileios Dionysopoulos 646 Reputation points
1 answer

WslRegisterDistribution failed with error: 0x80070002 Error: 0x80070002 The system cannot find the file specified.

PS C:\WINDOWS\system32> wsl.exe --install -d Ubuntu-20.04 Installing: Ubuntu 20.04 LTS Ubuntu 20.04 LTS has been installed. Launching Ubuntu 20.04 LTS... Installing, this may take a few minutes... WslRegisterDistribution failed with error:…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2024-08-09T03:53:58.44+00:00
kartik kunjekar 15 Reputation points
answered 2026-10-27T19:02:33.28+00:00
Vasileios Dionysopoulos 646 Reputation points
2 answers

Get-Item -LiteralPath: final links versus intermediate reparse points in PowerShell 7.5

I am reviewing a hypothetical Windows FileSystem-provider metadata query using Get-Item -LiteralPath. The documentary baseline is PowerShell v7.5.0, commit 713e77f15f63bae9f23fb02045c7843ad6a8769b. This is not a report of an installed or tested…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-27T17:03:10.7733333+00:00
Manica Moscon Advogados 0 Reputation points
commented 2026-10-27T18:42:50.9+00:00
Ronald Sabiiti 1,175 Reputation points Independent Advisor
1 answer One of the answers was accepted by the question author.

I'm unable to recreate a deleted configuration secret, could anyone please help me?

I cannot recreate a previously deleted secret because the entry is still retained by the system. How can we use PowerShell to identify and remove the obsolete secret entry and restore normal application operation without affecting other credentials?

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-12T00:45:17.8966667+00:00
JackySmith 40 Reputation points
accepted 2026-10-26T17:41:27.5533333+00:00
JackySmith 40 Reputation points
3 answers

Openssl to dkim issue

Hi, Any key has been created to this?

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-22T08:11:24.2366667+00:00
Jonathan 480 Reputation points
answered 2026-10-22T10:37:50.0233333+00:00
VPHAN 47,110 Reputation points Independent Advisor
4 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
answered 2026-10-21T09:12:41.3633333+00:00
Gian 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to automate Downloading Message Trace logs on a Daily Basis when the entries are more than 10,000,000 per day.

How to automate Downloading Message Trace logs on a Daily Basis when the entries are more than 10,000,000 per day. When the limit is only 100,000. #AutomateDowloading#MessageTraceLogs

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,462 questions
Windows for business | Windows Server | User experience | PowerShell
Exchange | Other
Exchange | Other

A powerful email and collaboration platform developed by Microsoft, designed to support enterprise-level communication and productivity. Miscellaneous topics that do not fit into specific categories.

1,016 questions
asked 2024-11-27T13:41:06.97+00:00
Newton Francis Braganza 45 Reputation points
accepted 2026-10-19T08:39:03.7633333+00:00
Newton Francis Braganza 45 Reputation points
1 answer

Where are signatures stored for "New Outlook"

I have been writing a PowerShell script that autogenerates user signatures. It currently uses Microsoft Graph and a registered App to pull user information from AzureAD to create 2 .htm files for New and Reply/Forward. 99.9% of our users are using…

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-12-09T19:08:36.6566667+00:00
Sean Swanson 110 Reputation points
commented 2026-10-15T14:49:31.92+00:00
Winders, S. Melissa 0 Reputation points
2 answers One of the answers was accepted by the question author.

5.7.57 SMTP in scheduled task

Hello everyone. I’m trying to send an email from a scheduled task but am encountering an error. However, the script runs perfectly fine in an interactive session. I see the same behavior whether I use Send-MailMessage or the Send method of…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-13T16:30:46.2333333+00:00
Aleksej Egorov 41 Reputation points
commented 2026-10-14T09:55:21.8966667+00:00
Aleksej Egorov 41 Reputation points
3 answers

Windows PowerShell 5.1 local hosting — failure outcome during error reporting and synchronous invocation completion

We are assessing a local Windows PowerShell 5.1 hosting design on .NET Framework. The proposal uses one fresh System.Management.Automation.PowerShell instance, one explicitly assigned owned runspace, one script command in local scope and one non-generic…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-07T14:46:13.4933333+00:00
Rick S 0 Reputation points
answered 2026-10-13T06:20:24.44+00:00
Ronald Sabiiti 1,175 Reputation points Independent Advisor
2 answers

Set Powershell v7 as default

I have solarwinds Server & Application Monitor (SAM) where we can make custom powershell to be executed from SAM. I have a script to connect to the azure to get some information and the script is can't work if use old powershell v5 but working…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-12T03:21:39.6333333+00:00
Handian Sudianto 7,616 Reputation points
commented 2026-10-13T03:22:19.6866667+00:00
Chen Tran 13,615 Reputation points Independent Advisor
3 answers One of the answers was accepted by the question author.

Request to certificate with powershell?

Hi. I have AD CS. Is it possible to request a template certificate using Powershell from https://domain.com/certsrv/certrqma.asp ?

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
asked 2024-08-27T15:24:55.12+00:00
commented 2026-10-08T23:06:23.05+00:00
Gavin 1 Reputation point
1 answer One of the answers was accepted by the question author.

PowerSheel. Watch window, open Excel, run macro, close Excel. Caught in Loop

I am a complete beginner with PowerShell and have put together something that works for me but seems to get caught in a loop. I want to monitor a folder and when a new file is placed in the folder I want to open an Excel file and run a macro then save…

Windows for business | Windows Server | User experience | PowerShell
asked 2022-06-01T18:00:47.113+00:00
Ken King 21 Reputation points
edited an answer 2026-10-05T06:29:16.4+00:00
Rolan123 0 Reputation points
1 answer

COULD YOU SHow me a sample powershell script to backup a folder with subfolders using 7-zip?

COULD YOU SHow me a sample powershell script to backup a folder with subfolders using 7-zip?

Windows for business | Windows Server | User experience | PowerShell
asked 2026-10-04T18:38:02.0133333+00:00
Jerrold Weisdock 0 Reputation points
answered 2026-10-04T19:48:11.6033333+00:00
Marcin Policht 112K Reputation points MVP Volunteer Moderator
2 answers One of the answers was accepted by the question author.

Unable to connect to Exchange Online Powershell

Hello, I am unable to login to Exchange Online Powershell using the following steps. I am a global admin and the Powershell is opened in elevated mode. I enter the code below Connect-ExchangeOnline -UserPrincipalName <mylogin> Then the login opens…

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,462 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-10-27T14:39:42.4666667+00:00
Micael Ondoa 20 Reputation points
commented 2026-10-01T08:10:01.34+00:00
What 5 Reputation points
2 answers

Powershell New-ADUser failing from remote execution

Good morning all! We are using Freshservice to try to automate some of our employee onboarding and are getting some access is denied errors when running. The App is essentially sending the powershell command on behalf of the account we have…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-03-31T14:54:24.2533333+00:00
Anonymous
answered 2026-09-25T18:44:59.51+00:00
Leonardo Bazterrica 0 Reputation points
0 answers

Use add-appxprovisionedpackage to deploy Microsoft.AAD.BrokerPlugin

How can you use add-appxprovisionedpackage with microsoft.AAD.BrokerPlugin? We have a Citrix Terminal server environment and we are running into the issues where users cannot sign into Office applications because microsoft.AAD.BrokerPlugin is not…

Microsoft 365 and Office | Install, redeem, activate | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2022-05-20T02:49:04.967+00:00
Ben Horbul 11 Reputation points
commented 2026-09-24T21:11:18.2566667+00:00
Eric Gosh 0 Reputation points
0 answers

Can't remove "missing" drive from storage space

I had recently added a new ssd to replace my old boot drive in my desktop. Added it to my storage pool thinking it would allow me to then clone my old boot drive to it, realized that all the drives spread data across all of them, wasn't able to remove…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-02-21T02:54:44.3033333+00:00
Jeremiah Bekhterev 5 Reputation points
commented 2026-09-23T16:36:59.89+00:00
Joel McCauley 0 Reputation points
3 answers One of the answers was accepted by the question author.

May an app embedding Microsoft.PowerShell.SDK redistribute Microsoft.Management.Infrastructure.Runtime.Win 3.0.0, whose licence forbids distribution while its project and siblings are MIT?

We build a commercial Windows application that hosts PowerShell in-process via Microsoft.PowerShell.SDK (7.5.4, MIT). Publishing self-contained brings Microsoft.Management.Infrastructure.Runtime.Win (3.0.0) into the output, so four of its DLLs end up in…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-09-18T05:58:50.57+00:00
Victor Ogunsanya 20 Reputation points
accepted 2026-09-21T05:30:00.6333333+00:00
Victor Ogunsanya 20 Reputation points
4 answers One of the answers was accepted by the question author.

how to setup a powershell code

How do I setup a PowerShell script like code that can instantly give me a full list of all the information of by default it should be 24 hours or if i specific more of for example how many times computer was powered on off users logged in all those stuff…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-09-18T20:49:32.29+00:00
mordy kurlander 20 Reputation points
edited a comment 2026-09-20T22:21:17.1766667+00:00
Allan Solomon Mejia 10,545 Reputation points