105 questions with Windows Server Remote and virtual desktops PowerShell tags

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

Cannot establish the WMI connection to local computer due to the RPC server is unavailable. (Exception from HRESULT: 0x800706BA).

Hello, When I tried to rename PC name with Powershell command "Rename-Computer -ComputerName "A" -NewName "A1" -DomainCredential (Get-Credential) -Force -Restart" in On-Premise AD, error message appears "Rename-Computer…

Windows Server Remote and virtual desktops PowerShell
asked 2024-11-26T08:37:02+00:00
Anonymous
answered 2025-02-24T10:30:53+00:00
Anonymous
2 answers

How to impersonate a Windows domain account on the system account

Hi, I have the below Powershell command which is calling the SSM Parameter to get the domain username and password. then it start the application "Winrar" using the domain account. This works fine when i run it under the local administrator…

Windows Server Remote and virtual desktops PowerShell
asked 2025-02-21T04:04:45+00:00
Anonymous
answered 2025-02-21T13:34:49+00:00
Anonymous
5 answers One of the answers was accepted by the question author.

Wrong version of Get Help app installed by accident

We have a corporate version of windows 10 with all "unnecessary" appx apps removed by default. Get Help was unnecessary until recently Microsoft disabled the SARA tool and integrated its troubleshooters into Get Help app. I manually installed…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-04T22:01:07+00:00
Anonymous
answered 2025-02-12T16:22:36+00:00
Anonymous
1 answer

Powershell breaks with semicolons in the PATH environment variable

I've been going down a rabbit hole with how Powershell processes the PATH environment variable. I am developing a program that helps manage the PATH, and I recently discovered that it has issues when a path containing semicolons is added to the PATH. …

Windows Server Remote and virtual desktops PowerShell
asked 2025-01-20T23:04:48+00:00
Anonymous
answered 2025-02-04T08:25:52+00:00
Anonymous
2 answers

windows server 2022 nat change TcpFilteringBehavior or UdpFilteringBehavior to EndpointIndependentFiltering not work

https://learn.microsoft.com/en-us/powershell/module/netnat/set-netnat?view=windowsserver2025-ps * Moved from zh-hans

Windows Server Remote and virtual desktops PowerShell
asked 2025-02-02T15:16:19+00:00
Anonymous
answered 2025-02-04T07:51:25+00:00
Anonymous
2 answers

How to fix Powershell update modules failed error?

greetings; I use a thurd party ap called Topgrade to automate all the updates, I even installed PSWindowsUpdate via the nuget package manager, however when it comes to Powershell modules it failes. the output is below: Microsoft Windows [Version…

Windows Server Remote and virtual desktops PowerShell
asked 2025-01-29T14:56:19+00:00
Anonymous
answered 2025-01-29T15:26:45+00:00
Anonymous
1 answer

Need accessible color scheme for PowerShell

I suffer from macular degeneration. Visual elements on dark background are difficult to see, especially text. This is made much worse if the font is small, or if the text color isn't bright enough, or contrast is generally lacking. The CMD.EXE shell and…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-17T22:44:47+00:00
Anonymous
answered 2024-12-19T06:42:08+00:00
Anonymous
1 answer

Restart (File) Explorer Desktop and Taskbar Using PowerShell

Have been deploying apps via Intune using PowerShell scripts in conjunction with the installer. When an updated program installs, the desktop and taskbar disappear. The user then has to Ctrl + Alt + Delete to get to Task Manager and Run…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-17T17:09:54+00:00
Anonymous
answered 2024-12-18T02:57:50+00:00
Anonymous
2 answers

Query list of available/installed Registry Key fixes in SCCM through PowerShell Scripts

Hello, I want to query the list of available/installed Registry Key fixes in the SCCM Applications tab through a PowerShell script. Right now I am able to use the Get-WMIObject class that will return me the names of the applications available in the…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-11T07:28:39+00:00
Anonymous
answered 2024-12-12T00:15:19+00:00
Anonymous
1 answer

Looking for advice on where to start learning how to fix a windows profile that has corruption or bluescreens, with CMD or PowerShell commands

Let me Preface with this. My question in TLDR format is: What's a solid way to learn PowerShell and CMD commands in a way that is tangibly accessible for someone who really only uses dism/online [or the image:(drive name): variant] /cleanup-image…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-08T22:33:37+00:00
Anonymous
answered 2024-12-10T01:51:12+00:00
Anonymous
2 answers One of the answers was accepted by the question author.

PowerShell script help required: Confirming computer exists under all domain controllers in a domain?

Hi all. I'm new to PowerShell coding and require assistance if anyone can help me? I work with a domain that has 5 domain controllers. 4 are local, 1 is remote and there is about a 20 minute replication delay between the locals and remote. This cannot…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-05T11:14:42+00:00
Anonymous
answered 2024-12-06T09:24:22+00:00
Anonymous
1 answer

Powershell docker image, Restart-Computer cmd missing 'ComputerName' parameter

Trying to remotely restart a windows computer with powershell and Restart-Computer command. Powershell is running from a docker container with mcr.microsoft.com/powershell image, and from within the docker container i am running a powerhell script. The…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-02T12:14:39+00:00
Anonymous
answered 2024-12-03T23:55:20+00:00
Anonymous
1 answer

WinRM to accept PSSession from Particular Source

Hi, I have a set of Computer A-E; now I can establish PSSession from any computer to Any Computer. Need to restrict PSsession being established from Any Computer to Particular Computer, i.e E. if I try to create PSSession to Computer A from Computer B,…

Windows Server Remote and virtual desktops PowerShell
asked 2024-12-02T12:17:27+00:00
Anonymous
answered 2024-12-03T04:45:55+00:00
Anonymous
3 answers

Mail Notification Script for Domain User Account Enabling or Disabling by Admin

Hello When admin Disable or Enable the Domain User Account. Mail Notification should be sent. Below the script when i tried with Event ID Define SMTP and email parameters $SMTPServer = "smtp.yourdomain.com" $From =…

Windows Server Remote and virtual desktops PowerShell
asked 2024-11-27T07:02:42+00:00
Anonymous
answered 2024-11-28T00:03:15+00:00
Anonymous
1 answer One of the answers was accepted by the question author.

Cannot open Power Shell or Power Shell admin ?

cannot open Power Shell or Power Shell admin ? on Windows 10 and My Dreamweaver 8 now doesnt work since the last windows update Nov 2024 * Changed to a question ***Move from Windows / Windows 10 / Performance and system failures***

Windows Server Remote and virtual desktops PowerShell
asked 2024-11-25T14:49:08+00:00
Anonymous
answered 2024-11-27T06:30:16+00:00
Anonymous
1 answer

Login failed for user domain/machinename$ on SharePoint subscription servers

Getting this error in logs event viewer. SQL database login for 'SharePoint_Config' on instance 'dbserver' failed. Additional error information from SQL Server is included below. Login failed for user 'domain\machinename$'. We tried timer service, app…

Windows Server Remote and virtual desktops PowerShell
asked 2024-11-26T18:20:32+00:00
Anonymous
answered 2024-11-26T23:25:40+00:00
Anonymous
1 answer

When i use the -DetectOnly switch with the New-MailboxRepairRequest, how can i see how many corruptions have been detected in the mailbox before repairing it?

I want to check the type of corruption in my mailbox before repairing it. I used the New-MailboxRepairRequest with the -DetectOnly switch against all the corruption parameters. I check the status of the job using the Get-MailboxRepairRequest. Now I want…

Windows Server Remote and virtual desktops PowerShell
asked 2024-11-12T08:47:48+00:00
Anonymous
answered 2024-11-13T02:28:22+00:00
Anonymous
1 answer One of the answers was accepted by the question author.

Querying Win32_PageFileSetting results in empty response

I am trying to query some information from Win32_PageFileSetting WMI class and I am unable to gather any kind of information. I tried on multiple versions of PowerShell including: Major 5, Minor 1, Build 22621, Revision 4249 Major 5, Minor 1, Build…

Windows Server Remote and virtual desktops PowerShell
asked 2024-11-12T13:57:06+00:00
Anonymous
answered 2024-11-12T17:56:04+00:00
Anonymous
8 answers

How to Convert OST to PST by Windows PowerShell?

I need to convert my OST Files into PST by Windows PowerShell but the cd prompt gives an undefined error. They show an error in the AddStoreFromFile syntax. I request the community to please answer my query if you have a solution.

Windows Server Remote and virtual desktops PowerShell
asked 2024-10-22T11:04:26+00:00
Anonymous
answered 2024-10-23T01:17:53+00:00
Anonymous
1 answer

Powershell script

Need a gpo script to find the value of multiple policy settings For example Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment Computer Configuration\Windows Settings\Security Settings\Local Policies\User…

Windows Server Remote and virtual desktops PowerShell
asked 2024-10-14T13:58:10+00:00
Anonymous
answered 2024-10-16T02:46:47+00:00
Anonymous