5,552 questions with Windows Server PowerShell tags

Sort by: Updated
0 answers

Issues with Web Front End app for background PS scripts with PS remoting inside

Hi, I have issues with Web Front End app (running on IIS) for background PS scripts with PS remoting inside: $session = New-PSSession -ComputerName dcName -ConfigurationName DomainAdmins Invoke-Command -Session $session -ScriptBlock {...} …

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,552 questions
asked 2024-11-09T07:30:47.79+00:00
Bojan Zivkovic 461 Reputation points
edited the question 2024-11-09T07:31:36.64+00:00
Bojan Zivkovic 461 Reputation points
3 answers

hexadecimal value 0x00, is an invalid character. Line 2, position 1

VbrAnswerFile_install.txt Hi Experts, We are running an PowerShell comment in that PowerShell comment we are calling the XML file and trying to install veeam software. I am getting an error like "hexadecimal value 0x00, is an invalid character.…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,796 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,228 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,552 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,595 questions
asked 2024-11-07T14:28:11.7+00:00
Jimmy Afflick 80 Reputation points
answered 2024-11-08T19:43:12.8333333+00:00
Rich Matheisen 46,811 Reputation points
1 answer

PowerShell Error:SecurityError: (:) [], PSSecurityException

Hi All, I am using Windows MDT to deploy OS and run 2 PowerShell script to install a software (with registry update) and enable BitLocker per our customization request. Environment: MDT: 6.3.8456.1000 ADK: 10.1.19041.1 Both of…

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,552 questions
asked 2021-07-12T02:34:09.007+00:00
Bruce Zhang 26 Reputation points
commented 2024-11-08T15:25:50.8633333+00:00
morbraden 41 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,669 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,552 questions
asked 2024-11-01T01:46:24.89+00:00
CC 0 Reputation points
commented 2024-11-08T09:12:46.8366667+00:00
Alex Zhang-MSFT 1,840 Reputation points Microsoft Vendor
1 answer

Restore OneDrive files in bulk from Preservation Library - Powershell

Is there a way to pull files from the OneDrive Preservation library in bulk? User had two computers and had OneDrive sync'd on both. While in the process of issues they lost their OneDrive files and had cleared the trash. They are all now located in the…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,142 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,827 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,272 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,552 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,595 questions
asked 2024-11-07T20:09:27.5433333+00:00
Capt America 0 Reputation points
edited an answer 2024-11-08T05:16:20.32+00:00
Ling Zhou_MSFT 18,100 Reputation points Microsoft Vendor
1 answer

server Error in '/' Application

When logging into our Rock portal this message pop up and we can not access the platform

Azure SQL Database
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,716 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,992 questions
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
148 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,552 questions
asked 2024-11-05T17:33:24.8433333+00:00
BCC Admin 0 Reputation points
commented 2024-11-07T17:42:34.54+00:00
Mahesh Kurva 725 Reputation points Microsoft Vendor
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,228 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,552 questions
asked 2024-10-29T21:27:58.6166667+00:00
Mario 260 Reputation points
commented 2024-11-07T16:47:34.8933333+00:00
Mario 260 Reputation points
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,893 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,552 questions
asked 2024-09-14T17:41:59.9366667+00:00
Piero 75 Reputation points
commented 2024-11-07T15:33:15.6733333+00:00
Piero 75 Reputation points
6 answers

How to get admin local from all computers in domain

How can I do to get all admin local in domain? I tried command below but error $computers = Get-ADComputer -Filter * | Select-Object -ExpandProperty Name foreach ($computer in $computers) { Write-Host "Getting local administrators for computer…

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,552 questions
asked 2023-02-21T03:08:09.2633333+00:00
Trần Ngọc Nam 20 Reputation points
answered 2024-11-07T11:16:37.11+00:00
Shiv Kumar Sharma 0 Reputation points
1 answer One of the answers was accepted by the question author.

Get-WMIObject Win32_ComputerSystem UserName returns null for RDP user

So I am writing a PowerShell script to pick up some info from domain machines and one of the things that I want to correlate with is logged on user. In theory that is (Get-WmiObject -ComputerName $CompName -ClassName Win32_ComputerSystem).username …

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,716 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,552 questions
asked 2021-04-08T14:43:54.437+00:00
Russell Ramey 26 Reputation points
commented 2024-11-07T09:38:01.01+00:00
LEVY Antoine 0 Reputation points
2 answers

Is there a way to use Powershell to query a computer to retrieve a list of all Intune policies without needing to install a module?

Is there a way to use Powershell to query a computer to retrieve a list of all Intune policies without needing to install a module? Also, is there a way to use Tychon to query intune policy/policy settings from an endpoint?

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,552 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,201 questions
asked 2024-11-05T19:36:53.2933333+00:00
Richard R 0 Reputation points
commented 2024-11-07T07:19:16.71+00:00
Crystal-MSFT 49,351 Reputation points Microsoft Vendor
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,552 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,552 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 745 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,995 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,228 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,552 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,642 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,552 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,595 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
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,314 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,552 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,552 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
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,716 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,496 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,552 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,105 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,552 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,911 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,228 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,552 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,521 Reputation points Microsoft Vendor