5,547 questions with Windows Server PowerShell tags

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

Powershell refresh desktop screen

Hello. How can I refresh desktop screen with powerhsell? Thanks for help.

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,547 questions
asked 2021-04-15T14:01:04.17+00:00
Filip 831 Reputation points
commented 2024-11-04T08:03:14.41+00:00
Pranavi Yandapalli 0 Reputation points
0 answers

Service Fabric - Azure REST API

Hi everyone, I have an Automation Account Runbook and need to remove an application from the Service Fabric Cluster. Since I don’t have a Hybrid Runbook Worker and can’t use the Service Fabric SDK, I decided to try using the Azure REST API and…

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,547 questions
asked 2024-10-09T11:11:23.9133333+00:00
Buchczyk, Kornelia 0 Reputation points
edited the question 2024-11-04T05:19:27.77+00:00
Mounika Reddy Anumandla 590 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Powersehell command invoke-sqlcmd command is looking for an additional parameter TrustServerCertificate=True on Windows 2022 server

Hi there, We heavily use PowerShell scripts to query Microsoft SQL Server databases on Windows 2016 machines using a command invoke-sqlcmd -ServerInstance <servername> -Database <databasename> -Query <Query statement>; While testing…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,948 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,201 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,547 questions
asked 2024-10-07T16:10:36.2666667+00:00
Suresh 20 Reputation points
commented 2024-11-02T04:40:25.45+00:00
Erland Sommarskog 112.7K Reputation points MVP
2 answers One of the answers was accepted by the question author.

powershell to get all users and their managers recursively

I am looking to pull all Active Directory users and their managers all the way up to the chain. I get how to do get-aduser -filter * -properties * | select name, manager export-csv -path "csv path" I also get: $Users = Get-ADUser -filter *…

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,623 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,547 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,577 questions
asked 2024-04-30T13:24:36.5566667+00:00
Michael-5966 20 Reputation points
commented 2024-11-02T04:10:34.9833333+00:00
Abhishek Rawat 0 Reputation points
2 answers

Changes made to the mail flow in EAC do not take effect immediately

Recently, I have made changes of mail flow in EAC but the rules did not take effect immediately. Sometime, I have to wait 2-3 hours or longer How to speed up to propagate the changes and apply them across the system? Could you provide the solutions on…

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,662 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,547 questions
asked 2024-11-01T01:46:24.89+00:00
CC 0 Reputation points
edited an answer 2024-11-01T09:49:20.62+00:00
Alex Zhang-MSFT 1,600 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Azure Key Vault - Cannot get the access policies information by Azure PowerShell

Hi All, I’m working on enabling Azure Key Vault backup. I need to gather secrets, keys, certificates, and access policies, then save them to a storage account. However, I’ve encountered an issue where the Azure Key Vault cannot retrieve the access…

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,310 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,547 questions
asked 2024-11-01T06:50:21.72+00:00
cchrischeung 20 Reputation points
accepted 2024-11-01T07:54:10.5333333+00:00
cchrischeung 20 Reputation points
2 answers

IOException error in opening a virtual serial port with Powershell

Hello, I have installed a plug-and-play measurement instrument, with a USB terminal, and it appears as a serial COM port. In windows device manager, COM3 is the only port. with properties / main tab, the status says that the device works properly. I want…

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,547 questions
asked 2021-04-01T14:55:57.457+00:00
Francois Bondu 1 Reputation point
commented 2024-11-01T04:56:43.9+00:00
Graham Dombkins 0 Reputation points
1 answer

remover la app xbox por ps

Hi guys. I need to remove the Xbox app completely from Win11, I run in admin mode: get-appxpackage xbox | remove-appxpackage But. It gives an error: This application is part of Windows and cannot be uninstalled individually by each user. An administrator…

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,201 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,547 questions
asked 2024-10-29T21:27:58.6166667+00:00
Mario 260 Reputation points
commented 2024-11-01T01:16:56.6233333+00:00
Karlie Weng 18,531 Reputation points Microsoft Vendor
2 answers

How to simply enable the default version of bitlocker through gpo that doesnt require a password at startup

Hi Folks, I am trying to enable Bitlocker through GPO but want the default version of it without a password required at startup or securing the bitlocker keys. Literally like doing manually. If someone can walk me through which exact GPO policy to…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,693 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,480 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,547 questions
asked 2023-10-16T18:52:52.9933333+00:00
Sid-0195 0 Reputation points
commented 2024-10-30T17:11:24.8333333+00:00
Papp Károly 106 Reputation points
2 answers

Powershell script to get the runtime stack version for all my web apps and functions in a subscription

exist a Powershell script to get the runtime stack version for all my web apps and functions in a subscription?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,077 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,547 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,889 questions
asked 2022-02-18T23:31:59.777+00:00
HectorMH Jimenez 41 Reputation points
commented 2024-10-30T03:35:14.1733333+00:00
Navid Ulla (External) 0 Reputation points
1 answer

How to Resolve Volume Shadow Copy Service Error - Code 12289 (Event ID: 12289)

Hello everyone, Could anyone help me resolve this issue? I've tried everything, including installing a new Windows Server 2019, but the issue persists. I'm unable to create a shadow copy on drive D, and an error event occurs whenever I try to enable…

Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
237 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,201 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,547 questions
asked 2024-10-28T14:04:40.4466667+00:00
Ramy Lasheen 0 Reputation points
answered 2024-10-30T03:17:56.16+00:00
Karlie Weng 18,531 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

How to find version of PowerShell?

How can I found out if there is a more up to date version of Window PowerShell available?

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,547 questions
asked 2024-10-28T22:38:21.9033333+00:00
Robert Holt 20 Reputation points
commented 2024-10-29T19:50:59.5966667+00:00
Rich Matheisen 46,806 Reputation points
3 answers

Change PowerShell Font when "run as administrator"

Hey,I tried to change the font of the powershell and it was easy. However, every time I let it "run as administrator", it will use the system default font and will be reset even I change it (doesn't affect normal run- not admin). I looked…

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,547 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,577 questions
asked 2024-02-15T23:39:51.4333333+00:00
Brian C 0 Reputation points
answered 2024-10-29T18:56:47.8466667+00:00
Rich Matheisen 46,806 Reputation points
1 answer

How to Fix when i Open Sounds with taskbar it not open but when i open with control panel it works

How to Fix when i Open Sounds with taskbar it not open but when i open with control panel it works and when i open computer properties dont work but whe i open with control panel it works how to fix this i switch only "%1" %* this everything in…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,693 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,480 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,201 questions
Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,850 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,547 questions
asked 2024-10-29T10:04:58.3733333+00:00
Jeka Jekadze 0 Reputation points
answered 2024-10-29T16:06:51.9+00:00
Jacen Wang 960 Reputation points Microsoft Vendor
1 answer

powershell script is not working as expect

I wanted to export logic app which are associated with ISE(Integration Service Environment). But the below snippet is not working as expect. $SubscriptionId = "" $ISEName = "" # Replace with your ISE name $outputFilePath =…

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,547 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,577 questions
asked 2024-10-28T16:37:01.5233333+00:00
Pradeep Khantwal 55 Reputation points
commented 2024-10-29T14:59:25.3933333+00:00
Rich Matheisen 46,806 Reputation points
1 answer

crear un negocion de hosting

hola chicos una preguta tego como puedo iniciar unnegocio de hosting en azure

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,547 questions
asked 2024-10-27T01:18:09.54+00:00
Stanly Gomez 0 Reputation points
edited the question 2024-10-29T04:55:28.6466667+00:00
VenkateshDodda-MSFT 21,491 Reputation points Microsoft Employee
4 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,850 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,547 questions
asked 2024-09-14T17:41:59.9366667+00:00
Piero 75 Reputation points
commented 2024-10-27T02:18:35.83+00:00
Rich Matheisen 46,806 Reputation points
4 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,693 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,547 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,179 questions
asked 2023-04-07T17:32:54.1133333+00:00
Vij 306 Reputation points
commented 2024-10-24T15:52:01.8933333+00:00
Sergio Villaseca 0 Reputation points
5 answers One of the answers was accepted by the question author.

Install-Module Microsoft Graph PowerShell Module

Hi All I am getting below error installing Microsoft.Graph powershell module please guide me PS C:\Windows\system32> Install-Module Microsoft.Graph -Scope AllUsers PackageManagement\Install-Package : No match was found for the specified search…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,229 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,547 questions
asked 2022-09-06T05:47:58.32+00:00
Glenn Maxwell 11,496 Reputation points
answered 2024-10-24T05:36:16.1833333+00:00
Alf Løkken 0 Reputation points
3 answers One of the answers was accepted by the question author.

Exporting user last login to M365 or Azure to .CSV file ?

How can I extract and export the last user login time to the M365 portal or Azure AD as .CSV file? is there any PowerShell script or GUI procedure?

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,547 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,050 questions
asked 2022-10-10T13:43:24.61+00:00
EnterpriseArchitect 5,406 Reputation points
commented 2024-10-23T10:36:39.5366667+00:00
Simon Goulding 0 Reputation points