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

Sort by: Updated
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 6,350 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ää 261 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
3 answers One of the answers was accepted by the question author.

Is there an official PowerShell style guide?

Shortly after Java was released, Sun issued a style guide. I've been looking for an "official" (from Microsoft) style guide for PowerShell and the only thing I can find is a "PowerShell-Docs" guide, which mainly focuses on…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-05-18T18:40:35.66+00:00
THEOBALD K 85 Reputation points
commented 2026-05-20T07:37:46.8233333+00:00
VPHAN 33,910 Reputation points Independent Advisor
3 answers

Powershell ISE Illegal characters in path with literalpath

Hello! I have encountered the problem of running PowerShell cmdlets using "LiteralPath" in PowerShell ISE, when folder is existing. Error message: Get-ChildItem : Illegal characters in path. At line:1 char:1 + Get-ChildItem -LiteralPath…

Windows for business | Windows Server | User experience | PowerShell
asked 2024-05-27T08:27:00.97+00:00
Step to IT 125 Reputation points
answered 2026-05-16T22:27:32.46+00:00
Joachim Otahal 21 Reputation points
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-05-14T21:49:25.1366667+00:00
Nate Y 5 Reputation points
4 answers

SMB shared path issue

Hi, On Powershell (of server 2025), I shared the SMB path like but I got the problem below to access the shared path. Please help.

Windows for business | Windows Server | User experience | PowerShell
asked 2026-05-08T03:03:15.6866667+00:00
Scott Huang 3,511 Reputation points
commented 2026-05-12T10:20:53.0266667+00:00
AgaveJoe 31,361 Reputation points
1 answer One of the answers was accepted by the question author.

How to set msExchMailboxGuid with Set-ADUser command

Hi all, I get users information (PrimarySMTPAddress,Alias,SamAccountName,FirstName,LastName,DisplayName,Name,ExchangeGuid,ArchiveGuid,LegacyExchangeDn,EmailAddresses) by Get-Mailbox command Then export them to XML file (Export-Clixml) or CSV file…

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,202 questions
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
asked 2023-02-10T07:45:29.95+00:00
Jack Chuong 436 Reputation points
commented 2026-05-11T15:58:44.8466667+00:00
CARLOS ANDRES BUITRAGO C 0 Reputation points
2 answers One of the answers was accepted by the question author.

DNSServerQueryResolutionPolicy Not Blocking

This is somewhat related to a similar issue I posted about a few days ago here. I have DENY policies in place for two subdomains and I'm able to get them to ping successfully with no issues. I had these set to IGNORE before, but due to me…

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | PowerShell
asked 2022-03-29T16:29:46.643+00:00
agfreesafety3 41 Reputation points
edited a comment 2026-05-08T12:58:44.7733333+00:00
Sebastian Cerazy 351 Reputation points
4 answers

How to Ping a list of Computer in PowerShell

Hi everybody! I have a list of Computers with IP ListOfComputerIP.txt like this: 192.168.1.2 - John'PC 192.168.1.3 - Tim'PC 192.168.1.4 - Green'PC Now I need a loop command to Ping all that Computer via IP to check every single computer Up or…

Windows for business | Windows Server | User experience | PowerShell
asked 2021-01-30T11:05:38.047+00:00
Liem Nguyen 91 Reputation points
edited a comment 2026-05-08T12:08:54.1933333+00:00
Henry F. Capraro 0 Reputation points
2 answers

how to install powershell?

pool game says it needs development action to continue I don't know how to proceed how to install powershell

Windows for business | Windows Server | User experience | PowerShell
asked 2025-11-14T03:33:35.5133333+00:00
milton bullock 0 Reputation points
commented 2026-05-07T04:09:07.21+00:00
Ed Pleva 20 Reputation points
1 answer

Restarting a service displays error about dependent services that do not exist

I am trying to grant permissions to a non-admin account so that it can restart a specific service. I have granted access to "Service Control Manager" and relevant permissions to the service itself but when I try to restart the service through…

Windows for business | Windows Server | User experience | PowerShell
asked 2026-04-29T08:38:38.7433333+00:00
Peter Bishop 256 Reputation points
answered 2026-05-04T22:04:09.0833333+00:00
Salamat Shah 420 Reputation points MVP
5 answers

Run powershell script using Task Scheduler

I have a script that is reset password of the user. I want to run it use task scheduler every hour once. But is failed. The history of scheduler show the task completed. but the script don't have any out. This is my action set …

Windows for business | Windows Server | User experience | PowerShell
asked 2020-09-14T00:22:07.777+00:00
Peizhi_Yu 6 Reputation points
edited an answer 2026-04-23T08:18:27.9066667+00:00
Benoit FOUAILLY 755 0 Reputation points
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 85 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,686 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