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

Sort by: Updated
4 answers

SCCM Configuration Item \ Baseline Powershell script issues

I found a PowerShell Script that uses the SCCM Configuration Items and Baselines to ensure DNS is set correctly. This script is awesome however it allow allows you to set to DNS servers. I need to set 4. I am not sure what I am doing wrong any help would…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Configuration Manager | Other
asked 2022-10-27T20:54:14.883+00:00
Benjamin Hagen 126 Reputation points
edited an answer 2025-12-01T15:06:18.4066667+00:00
Sago 0 Reputation points
0 answers

cannot respond to powershell question about region code

I can't actually respond to the query The source requires the current machine's 2-letter geographic region to be sent to the backend service to function properly (ex. "US"). I have typed in Y and YES but neither of those worked, and neither of…

Windows for business | Windows Server | User experience | PowerShell
asked 2024-11-25T01:53:53.25+00:00
Phil Burton 0 Reputation points
edited a comment 2025-11-25T09:34:28.1766667+00:00
Josh 0 Reputation points
1 answer

Rename my files

see my script Add-Type -AssemblyName System.Windows.Forms # --- Helper functions --- function Select-FolderDialog { $dialog = New-Object System.Windows.Forms.FolderBrowserDialog if ($dialog.ShowDialog() -eq…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-11-24T01:22:03.3733333+00:00
DEREK CHUA 0 Reputation points
answered 2025-11-24T08:12:12.4666667+00:00
Quinnie Quoc 7,475 Reputation points Independent Advisor
2 answers

Get-EXOMailboxPermission issues

Hi all I have a script that goes through all mailboxes (about 6k) in our org and collects access data. Then, based on this data, we can find out which user has access to what mailboxes. To speedup the process, I run 48 streams in parallel. For some…

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,791 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2024-10-04T14:13:23.2533333+00:00
Roman King 26 Reputation points
commented 2025-11-21T14:26:47.29+00:00
Roman King 26 Reputation points
3 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.
6,791 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,057 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2025-01-13T15:53:39.0066667+00:00
Andrea Thiel 10 Reputation points
answered 2025-11-20T10:25:52.2566667+00:00
Oweis Rangrej 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
edited an answer 2025-11-18T03:42:59.5133333+00:00
Chen Tran 4,550 Reputation points Independent Advisor
2 answers

Facing : Connect-ExchangeOnline: A parameter cannot be found that matches parameter name 'Organization'.

Hi all, I tried following the document: https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth but unable to get through this step:…

Exchange | Exchange Server | Development
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,057 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2022-09-15T13:18:46.527+00:00
Vinay Sharma 56 Reputation points
commented 2025-11-17T22:42:30.2233333+00:00
Tharaka Abeysinghe 0 Reputation points
2 answers One of the answers was accepted by the question author.

Possibility for Automation of DC promo and DC Demotion?

Hi Team, As new to the Automation part and exploring the few opportunities to utilize Automation for my some of the tech, like we do the DC promotion and DC Demotion activity manually on our environment, where as we have lots of servers in line to be…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-04-02T14:43:10.05+00:00
AJAY PRAJAPATI 40 Reputation points
accepted 2025-11-16T08:03:28.91+00:00
AJAY PRAJAPATI 40 Reputation points
2 answers

WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications.

I can't seem to update modules. I do not know why I keep getting this error. WARNING: The version '1.4.8.1' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications. I'm trying to update Exchange…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-02-14T15:34:54.99+00:00
ComputerHabit 1,051 Reputation points
commented 2025-11-11T09:54:46.31+00:00
Anna Saukkonen 0 Reputation points
2 answers

Is this the best it can get?

Add-Type -AssemblyName System.Windows.Forms $dictDialog = New-Object System.Windows.Forms.OpenFileDialog $dictDialog.Title = "Select dictionary.txt" $dictDialog.Filter = "All files (.)|." $null =…

Windows for business | Windows Server | User experience | PowerShell
asked 2025-11-11T00:25:35.2466667+00:00
DEREK CHUA 0 Reputation points
answered 2025-11-11T02:59:57.34+00:00
Domic Vo 11,070 Reputation points Independent Advisor
1 answer

Is there a PowerShell script that gets all SharePoint sites and the owners of the site

Using the PowerShell commands below, it lists all sites and sub sites including the title, author and url of those site. However, the author property returns the user who created the site not the site owner. Write-Host("Getting Site…

Microsoft 365 and Office | SharePoint Server | For business
Windows for business | Windows Server | User experience | PowerShell
asked 2023-09-18T20:15:47.89+00:00
MDuBose 716 Reputation points
commented 2025-11-09T20:39:56.5+00:00
luna 0 Reputation points
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 a comment 2025-11-07T11:31:02.2466667+00:00
Alx24 0 Reputation points
3 answers

how to export the list of email forwarding on O365 including all the mailbox(shared, live etc)

I tried to export the list in powershell, but i very less details, one of my friend export in some other way, he got some other users. Please do the needful.

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,791 questions
Microsoft 365 and Office | Development | Office JavaScript API
Microsoft 365 and Office | Development | Microsoft 365 Publishing
Windows for business | Windows Server | User experience | PowerShell
asked 2021-03-25T06:41:14.143+00:00
Gururaj Ravichandran 1 Reputation point
edited an answer 2025-11-07T09:50:53.18+00:00
Marco Quaresmini 5 Reputation points
2 answers One of the answers was accepted by the question author.

SharePoint online: Get permission from each document folder by PowerShell via CSV file

Hi, I'm looking for solution on following. I want to get permission from a document library the folder and subfolder with permission settings and want it as CSV file output. During searching, I found this script, but it doesn't include the…

Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
asked 2021-12-10T05:58:24.157+00:00
Sato,Rene 21 Reputation points
commented 2025-11-06T18:39:35+00:00
LIM KENG SEONG 0 Reputation points
3 answers

how to fix The term 'az' is not recognized as the name of a cmdlet, function, script file ?

Hi when I run the command "az dt list -o table" in Powershell from visual studio code, I get the following error: The term 'az' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the…

Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
834 questions
Windows for business | Windows Server | User experience | PowerShell
asked 2023-06-14T11:46:21.3133333+00:00
Gnetchejo, Patrick Juvet 90 Reputation points
commented 2025-11-05T16:49:08.47+00:00
Andrew Gooding 20 Reputation points
3 answers

Powershell command runs really slow on first run, then runs fine until powershell is closed

OK so we deploy pipelines to a couple of servers, both are identical and get the same scripts but 1 shows the issue and the other does not. Both are Windows Server 2019 with the same specs The issue simplified down is, when you open a Powershell…

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
asked 2022-06-23T09:32:53.22+00:00
Daniel Sherwood 6 Reputation points
commented 2025-11-05T15:12:01.1033333+00:00
MotoX80 37,151 Reputation points
1 answer One of the answers was accepted by the question author.

Export all NSG Rules in a subscription to one CSV file

Please provide a PowerShell script to export all Azure NSG's along with rules in one subscription to one csv file

Windows for business | Windows Server | User experience | PowerShell
asked 2025-05-04T08:33:02.1033333+00:00
Vishu 1,571 Reputation points
accepted 2025-11-04T14:14:24.02+00:00
Vishu 1,571 Reputation points
1 answer

Azure DevOps API is not returning all users - Only the First 498 users are returned

The below code is fetching only the first 498 users. How to fetch all the users from Azure DevOps Variables $organization = "" $pat = "" $base64AuthInfo =…

Windows for business | Windows Server | User experience | PowerShell
asked 2024-05-22T12:01:58.0033333+00:00
Anonymous
answered 2025-11-03T16:45:52.29+00:00
David Joseph 0 Reputation points
3 answers One of the answers was accepted by the question author.

Windows powershell starts old python

Hello together, this is what I get if I try to start my new installed python 3.11.4: PS C:\Users\XXX> python Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32 Type "help",…

Windows for business | Windows Server | User experience | PowerShell
asked 2023-07-18T18:34:01.2266667+00:00
XeniaSophieKatharinaStibane-5237 20 Reputation points
edited an answer 2025-10-31T19:20:42.7433333+00:00
Alison A 3,240 Reputation points Microsoft External Staff Admin
2 answers

Intune script that will check the uptime of each machine in the organization and restart laptop after checks

Hello everyone, I need your help, please, because I’m feeling desperate. I want to create a detection and a remediation script in Intune. As a result, I would like it to check if the uptime of each machine reaches 5 days and send a warning to the user:…

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
asked 2024-10-23T10:24:26.2633333+00:00
Anonymous
answered 2025-10-31T18:11:22.19+00:00
Jeff Strubberg 0 Reputation points