5,512 questions with Windows Server PowerShell tags

Sort by: Updated
1 answer

unable to connect Azure

Hi All I use the below syntax to connect to Azure Powershell, but today i am unable to connect to azure powershell. it prompts me to enter tenant and subscription number. I have 1500 subscriptions, how can i know the subscription number for my…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2024-09-19T15:36:47.1233333+00:00
Glenn Maxwell 11,136 Reputation points
answered 2024-09-19T20:07:13.2966667+00:00
Vasileios Dionysopoulos 456 Reputation points
0 answers

Warning PowerShell ID 300

Hi, More than a year after reporting the problem, I continue to receive the same PowerShell warning despite everything working normally and all versions being up to date. Maybe with this new information we can better understand the problem. I know it…

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-09-14T17:41:59.9366667+00:00
Piero 75 Reputation points
commented 2024-09-19T20:04:27.2666667+00:00
MotoX80 33,376 Reputation points
1 answer

Access Blob storage using SAS Key via PowerShell

Hi I want to be able to access Blob storage using a SAS key in PowerShell. I have the SAS key set up on the storage account, limited to the IP of the server I'm running the PowerShell from. I want to be able to use the key without signing into Azure or…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,114 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-09-03T09:55:03.15+00:00
Alex Palmer 0 Reputation points
edited an answer 2024-09-19T03:05:29.62+00:00
Vinod Kumar Reddy Chilupuri 155 Reputation points Microsoft Vendor
2 answers

Windows 2022 Server TLS 1.2 is enabled - PowerShell Error

Windows 2022 Server TLS 1.2 is enabled - PowerShell Error WARNING: MSG:UnableToDownload «https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409» «» For PowerShell to work I can run [Net.ServicePointManager]::SecurityProtocol =…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,956 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-09-18T17:29:47.7+00:00
Finazzo, Michael 0 Reputation points
answered 2024-09-18T18:54:59.8166667+00:00
Rich Matheisen 46,561 Reputation points
1 answer One of the answers was accepted by the question author.

How can I check if my OnPremise Exchange Server is still sending email as relay to the outside world?

How can I verify and check if my Exchange Servers are still sending emails to the external world? Because from this page I cannot see any list of servers: https://admin.exchange.microsoft.com/#/reports/onpremunpatchedserverdetails

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,267 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,606 questions
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
2,076 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-16T04:20:38.1833333+00:00
EnterpriseArchitect 5,336 Reputation points
commented 2024-09-18T10:23:04.45+00:00
EnterpriseArchitect 5,336 Reputation points
3 answers One of the answers was accepted by the question author.

WinGet.exe upgrade --all -Exclude

How to exclude the list of apps [third-party application, MS applications, and MS KBnumbers] while running winget upgrade -all commands. Is there any parameter to exclude any application? It will be appriciated

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,500 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,991 questions
asked 2023-04-07T17:32:54.1133333+00:00
Vij 306 Reputation points
answered 2024-09-18T05:45:56.2033333+00:00
Vij 306 Reputation points
3 answers

Azure File share mounted drive showing Disconnected Network Drive

I am using Microsoft Azure Fluent API with RunPowerShellScript method to execute powershell script. My file share drive mounted properly but it's showing disconnected .When i click on disconnected drive it's showing files properly. But same powershell…

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,283 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,811 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2021-06-13T17:16:53.273+00:00
Dnyaneshwar Surywanshi 156 Reputation points
edited an answer 2024-09-17T14:19:41.7966667+00:00
Andrey Jackiechanov 0 Reputation points
0 answers

Exporting Power Platform environment as CSV or Spreadsheet file?

How can I export the list of Power Platform environments shown in this page: https://admin.powerplatform.microsoft.com/environments as .CSV file ? I need to perform an audit of thousands of unused environments in my tenant.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,882 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
339 questions
Microsoft Fabric Training
Microsoft Fabric Training
Microsoft Fabric: A Microsoft unified data platform.Training: Instruction to develop new skills.
43 questions
asked 2024-09-17T07:19:30.9066667+00:00
EnterpriseArchitect 5,336 Reputation points
3 answers One of the answers was accepted by the question author.

copy files using robocopy

Hi All My VM is hosted in Azure. I want to copy a folder (which contains subfolders and files, and some of the subfolder and file names exceed the 255-character limit) from one local drive to another. My local drive is the E drive, and the destination…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,708 questions
Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,484 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,956 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
535 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-09-02T20:12:05.71+00:00
Roger Roger 5,751 Reputation points
accepted 2024-09-14T19:57:32.3333333+00:00
Roger Roger 5,751 Reputation points
2 answers

PowerShell - Get-Localuser PasswordExpires

Hi Guys How do I check if the local user has "password expires" true or false? Thank you very much in advance

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-01-17T11:00:25.0533333+00:00
Sergio Siqueira 41 Reputation points
commented 2024-09-14T15:05:22.9+00:00
Rich Matheisen 46,561 Reputation points
1 answer

KMS migration from 2012 OS to 2019 OS

Hi There, We have our working KMS services currently running in Windows 2012 R2 server and we are looking to plan for migration to 2019 OS. Server is hosted in our vcenter host and need a plan to execute this. Kindly assist us with the steps to go…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,708 questions
Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,581 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,956 questions
Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
425 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-09-13T14:13:41.83+00:00
Manikandan Udayakumar 0 Reputation points
answered 2024-09-13T15:23:38.1566667+00:00
Wesley Li 8,345 Reputation points
4 answers

Credential Manager, PnP Powershell and SQL Agent Proxy permissions

Hi, I have SQL Agent Job that runs cmdexec via Proxy user and executes pnp ps1 script that picks credentials from Credential Manager and connects to Sharepoint online. This is the commands that connects to Sharepoint: Connect-PnPOnline -Url…

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,947 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2021-09-20T21:12:18.657+00:00
Pam 46 Reputation points
answered 2024-09-13T09:47:07.5666667+00:00
Khouloud BELHAJ 0 Reputation points
1 answer

Azure Cloud Shell is stuck on Connecting terminal...

So i have an issue where i try to connect to azure cloud shell and it says Requesting a Cloud Shell.Succeeded. Connecting terminal... and it just stuck there for more than 40 minutes now. Is there anything i can do? I try different browsers, chrome,…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-09-13T03:04:37.69+00:00
Jeremy O Mayers 0 Reputation points
answered 2024-09-13T07:59:16.5533333+00:00
Neuvi Jiang 1,150 Reputation points Microsoft Vendor
1 answer

Does the schema upgrade while promoting server from cmdlet

Hi We are planning to promote the server using the cmdlets Install-ADDSDomainController -CreateDnsDelegation:$false -DomainName $Domain While promoting the servers from the Server Manager GUI then it also upgrades the Schema as well, so when we promote…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,956 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,456 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2024-09-13T05:30:16.01+00:00
Anant Bera 151 Reputation points
answered 2024-09-13T07:04:41.4133333+00:00
Hania Lian 14,181 Reputation points Microsoft Vendor
4 answers

Why do all web parts in a site page show as ErrorWebPart when using Powershell

When using PowerShell to try modifying web parts on a site page (SP 2013/2016), all web parts (CEWP, CQWP, List, etc...) read as ErrorWebPart. I read some really dated posts on this issue, but never found a good solution for PowerShell. I also read that…

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,605 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
asked 2022-05-13T21:14:59.17+00:00
Ramsey, Dwayne 21 Reputation points
commented 2024-09-12T18:32:11.9166667+00:00
Michael Koger 0 Reputation points
1 answer

Using Git commands with Service Principal authentication.

I have been granted service principal access to my Azure DevOps repository. Below is the script I'm using: $resource="499b84ac-1321-427f-aa17-267ca6975798" $TenantId=" " $ClientId=" " $ClientSecret=" " $TokenUri =…

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
794 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
GitHub Training
GitHub Training
GitHub: A web-based hosting service for software development and version control using Git. Acquired by Microsoft in 2018.Training: Instruction to develop new skills.
43 questions
asked 2024-09-03T15:38:19.2033333+00:00
Ahwan Mishra 140 Reputation points
commented 2024-09-12T17:23:24.45+00:00
Goutam Pratti 0 Reputation points Microsoft Vendor
0 answers

PS script deployed via GPO not installing

Hello experts, I could use some help determining why a PS script deployed via Group Policy is not applying. I suspect it is due to the ExecutionPolicy restriction however I have attempted to bypass in the script parameters as well as adding the bypass…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-05-31T15:56:09.6733333+00:00
Eric Ma 0 Reputation points
commented 2024-09-10T17:21:00.89+00:00
Seekell, Roger 26 Reputation points
1 answer

Powershell Error

Hi I am running the following script to get folders and their permissions on file shares. This returns all the folders and their permissions in a csv file. $OutFile = "C:\Temp\Permissions.csv" # Insert folder path where you want to save your…

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-08-14T20:49:44.7333333+00:00
John Kelly 166 Reputation points
commented 2024-09-10T17:03:05.49+00:00
Seekell, Roger 26 Reputation points
2 answers

Windows Powershell and Visual Studio Running Extremely Slow

Hello, I work as an IT support engineer for my company and a user reached out to me saying that they have been experiencing issues with their VS code and Powershell commands running very slow. I recreated the same environment on my laptop, and I had the…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,059 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,478 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
asked 2024-04-24T19:29:34.0733333+00:00
Daniel Bulakh 15 Reputation points
edited a comment 2024-09-07T21:08:16.8133333+00:00
louis1-6497 0 Reputation points
1 answer One of the answers was accepted by the question author.

Export users

Hi all, We create users in on-premises Active Directory, and they are synchronized to Azure AD. I have two requirements:For every user in Azure, I see an Object ID. Is this Object ID coming from the on-premises Active Directory, or is it assigned by…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,456 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,492 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,512 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,468 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,449 questions
asked 2024-08-28T20:39:39.7066667+00:00
Rising Flight 4,376 Reputation points
accepted 2024-09-07T20:54:20.1866667+00:00
Rising Flight 4,376 Reputation points