105 questions with Windows Server Remote and virtual desktops PowerShell tags
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…
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…
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…
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 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
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…
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…
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…
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…
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…
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…
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…
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,…
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 =…
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***
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…
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…
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…
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.
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…