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

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

Command to get monitor model number and serial number

simple Command to get monitor model number and serial number just like below

Windows for business | Windows Server | User experience | PowerShell
asked 2024-02-06T00:41:39.5633333+00:00
Pavan 20 Reputation points
edited an answer 2025-10-26T13:41:53.4566667+00:00
Alxndr 21 Reputation points
5 answers One of the answers was accepted by the question author.

Powershell script to export all software information installed in a domain system

Hi, Please help if any Powershell script to export all the software information installed in a domain system Regards, Vibin Raj

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
asked 2020-10-23T06:50:18.413+00:00
Vibin Raj Nadakkal 61 Reputation points
answered 2025-10-25T19:32:15.5033333+00:00
Mr. Beedell, Roke Julian Lockhart 6 Reputation points
2 answers One of the answers was accepted by the question author.

How to fix "403 forbidden" while trying to access MS Graph API during creation of User Flow using PowerShell or Bash in Azure AD B2C Tenant?

Hi all, I need help with API permissions for MS Graph API while creating User Flow using PowerShell.   Context: I am trying to create User Flow in Azure AD B2C tenant, but while trying to send Graph API requests using Invoke-MgGraphRequest command, I am…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Graph
asked 2024-07-23T13:09:04.6033333+00:00
Payel Ganguly 25 Reputation points Microsoft Employee
commented 2025-10-25T06:37:18.83+00:00
ananthan nair 0 Reputation points
1 answer One of the answers was accepted by the question author.

Is there a way in PowerShell to list DNS records that start with or include some consecutive characters

I use Get-DnsServerResourceRecord with or without -Name XYZ to list all/some DNS records or a specific record named XYZ. How about if I want to list those records starting with X or including Y? Is there a way? Note: I selected Azure DNS tag because…

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
814 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-04-15T02:35:46.4033333+00:00
Soar 116 Reputation points
commented 2025-10-23T19:06:40.96+00:00
Daniel Andryszak 121 Reputation points
1 answer

Can I initialize a PowerShell Hashtable from a loop using a "functional programming" style?

The usual way to populate a Hashtable using a loop is to create an empty Hashtable and then assign one item per loop iteration. For instance: $sqrH = @{} foreach ($i in 1..5) {$sqrH[$i] = $i*$i} PowerShell lets you create an array in a "functional…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-10-22T18:42:15.2366667+00:00
THEOBALD K 60 Reputation points
commented 2025-10-23T18:17:47.1+00:00
THEOBALD K 60 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 =…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Entra | Microsoft Entra ID
asked 2022-12-06T18:20:08.753+00:00
Marco Mangiante 21 Reputation points
edited an answer 2025-10-20T21:34:38.1733333+00:00
Brahim O 1 Reputation point
2 answers

How to access old user folder?

I recently had an issue which caused me to have to reinstall windows onto a different drive, and now that I've got that done, I'm trying to copy over my old files to the new drive. Problem: I can't access my old user folder. Now, I'm no stranger to…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2023-03-01T08:26:01.7766667+00:00
ShadowGamer3 15 Reputation points
commented 2025-10-19T23:22:14.0533333+00:00
Robert Chrisman 0 Reputation points
0 answers

gMSA Install-ADServiceAccount without rebooting

Is there a recommended way to get a group managed service account gMSA working with the Install-ADServiceAccount command on the server you want it working without rebooting? I am finding it will mentioned this error and a reboot is the way for it to…

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | User experience | PowerShell
asked 2023-11-21T14:19:46.6933333+00:00
Luke Uhren 206 Reputation points
commented 2025-10-17T13:19:06.42+00:00
Luis Rodriguez 0 Reputation points
4 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
commented 2025-10-16T08:54:02.34+00:00
Benoit FOUAILLY 755 0 Reputation points
2 answers

Issue with powershell script to run with task scheduler

Hi everyone, I’m running into an issue with Task Scheduler on Windows, and I hope someone can help me troubleshoot. I have a task configured to run a PowerShell script to fetch Azure Sign-In Logs. However, it keeps failing with the following…

Windows for business | Windows Server | User experience | PowerShell
asked 2024-12-05T17:22:07.6266667+00:00
MoTaar 310 Reputation points
commented 2025-10-15T02:53:10.1833333+00:00
Jing He 0 Reputation points
3 answers

New-ExoPSSession : Connecting to remote server outlook.office365.com failed with the following error message : For more information, see the about_Remote_Troubleshooting Help topic.

Hello, We're experiencing an issue with connecting to exchange online trough power-shell, it was sudden and was working fine before. Can you please help ?

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
6,640 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-07-27T09:54:13.4066667+00:00
Amin T 0 Reputation points
commented 2025-10-10T20:27:11.0033333+00:00
Nguyen, Jennifer T (CGI Federal) 0 Reputation points
1 answer

Forcing Outlook Fonts via Intune

Forcing Outlook Fonts via Intune A client has requested we force a specific font for Outlook on all their devices and I've been investigating a method of pushing this out via Intune. This post on…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-10-10T04:39:22.6133333+00:00
Jason Thornton 0 Reputation points
answered 2025-10-10T08:53:58.98+00:00
Joseph Tran 3,040 Reputation points Independent Advisor
3 answers

Azure Key Vault Set Secret from PowerShell- Pattern Match Exception

I am trying to bulk insert secrets to my Key Vault using power shell and Its throwing me Secret Validation exception saying Pattern Mismatch- ^[0-9a-zA-Z-]+$ But same secret, if i am doing manually in the portal, its working fine. Need some insights…

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,490 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2020-08-25T15:37:55.327+00:00
Pavan Kumar 1 Reputation point
answered 2025-10-04T13:42:22.9+00:00
Gary Vella 0 Reputation points
1 answer

Not able to update-help in PowerShell

PS C:\> Update-Help -SourcePath 'C:\Powershell Updates' Update-Help : Failed to update Help for the module(s) 'ConfigDefender, PSReadline, WindowsUpdateProvider' with UI culture(s) {en-US} : Unable to retrieve the HelpInfo XML file for UI culture…

Windows for business | Windows Server | User experience | PowerShell
asked 2021-05-23T02:48:39.047+00:00
Syed Razavi 6 Reputation points
commented 2025-10-01T12:25:58.0566667+00:00
Kelly Carter 0 Reputation points
2 answers

Windows Store won't install no matter what I do

Hello, I just got a new laptop (Name: Auusda) and I can not access snipping tool or sticky notes. I tried to download them from the microsoft store but nothing happens when I click "download". So I checked if I had the microsoft store…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
asked 2023-11-08T14:34:12.7533333+00:00
Jamie Sanders 0 Reputation points
answered 2025-10-04T13:30:05.36+00:00
Joe Yuna 0 Reputation points
2 answers

Windows 11 terminal error message - Failed to reload settings

Every time I open a terminal I get the following error: Failed to reload settings Settings could not be reloaded from file. Check for syntax errors, including trailing commas The file exists Temporarily using the windows terminal default settings Can…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-03-16T10:59:07.1033333+00:00
Barry Smith 0 Reputation points
commented 2025-10-03T20:37:14.5233333+00:00
Dario CIPRUT 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to Get-Aduser password last set by an administrative account

With the "Windows Command Prompt" command net user /domain <samaccountname> I get the "password last set" that is the last date when or the user change his password or an aministrative account set a new password on behalf…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-10-02T08:36:29.39+00:00
Roberto Ciccariello 20 Reputation points
commented 2025-10-02T09:42:32.85+00:00
Roberto Ciccariello 20 Reputation points
1 answer

SQL Server 2019 reports it needs a reboot after patching updates from Sept 2025, reboot completed successfully

Query of the SQL 2029 server report the following PendingFileRenameOperations : True PendingFileRenameOperationsValue C:\Windows\SystemTemp\xxxxxx SystemCenterConfigManager : WindowsUpdateAutoUpdate : False IsRebootPending …

Windows for business | Windows Server | User experience | PowerShell
asked 2025-10-02T21:04:40.3733333+00:00
Terry Rivera 0 Reputation points
answered 2025-10-02T21:43:43.58+00:00
Domic Vo 7,830 Reputation points Independent Advisor
2 answers

Why the following command not have any efect?

I try execute the following command from VSCODE: # Outputs to the console Write-Host "This is a log message." | Out-File -FilePath "C:\Logs\HostOutput.log" -Append I don't get none result in the file. The file is empty. What…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-10-05T14:11:54.2+00:00
William Torrez 0 Reputation points
commented 2025-10-07T03:29:32.7033333+00:00
_AW_ 63,236 Reputation points Volunteer Moderator
1 answer

PowerShell script to set the scale of all the connected monitors to 100% in system context

Require a PowerShell script to set the scale of all the connected monitors to 100% in system context.

Windows for business | Windows Server | User experience | PowerShell
asked 2025-10-07T05:31:05.65+00:00
Sreekanth N Kartha 60 Reputation points
answered 2025-10-07T07:18:18.1833333+00:00
Tracy Le 1,480 Reputation points Independent Advisor