Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Windows Server » Determine Windows PowerShell version and see if WinRM is running via Test-WSMan
  • ssh
    How to disable RC4 Cipher Algorithms support in SSH Server Linux
  • BitLocker removal on Windows Server
    How to correctly disable BitLocker on Windows Server Windows Server
  • New OpenShift Featured Image
    OpenShift common Commands AWS/Azure/OpenShift
  • ios microsoft remote desktop app
    Remote Desktop can not find the computer FQDN and this might mean that FQDN does not belong to the specified network Windows
  • Screenshot 2020 05 14 at 19.28.50
    How to install and configure Rancid Linux
  • How To Enable Single Sign On (SSO) For Windows Admin Center
    Setup Windows Admin Center Modern Gateway for Single Sign-On Windows Server
  • Veeam SureBackup
    Ensuring Backup Integrity and Reliable Recovery with SureBackup Backup
  • images 8
    Microsoft Direct Access: Now Always On VPN Windows Server

Determine Windows PowerShell version and see if WinRM is running via Test-WSMan

Posted on 26/02/202028/08/2024 Christian By Christian No Comments on Determine Windows PowerShell version and see if WinRM is running via Test-WSMan

PowerShell is a cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and objects models. It includes a command-line shell, an associated scripting language and a framework for processing cmdlet. In this article, I will show you how to determine the Windows PowerShell version and to see if WinRM is running via Test-WSMan. Please see How to configure a remote server (windows) to Support Ansible, and How to enable or disable WinRM via the command-line.

Here are some interesting guides: How to request a certificate signing request in Windows using Microsoft Management Console. How to troubleshoot and fix Windows Admin Center that cannot be reached. Also, see how to Test Network Connection to the Windows Admin Center (WAC) Gateway.

Determine Windows PowerShell version

Firstly, to determine the PowerShell version. Run the following command below to determine the version of PowerShell that you are running

$PSVersionTable

To determine if WinRM is running on a server, use the following command below.

winrm quickconfig
image-12
Note: WinRM is currently configured by default on all servers starting from Windows Server 2012. WinRM is disabled on the client operating system.

Please see how to fix “Cannot find the computer: Fix the following error occurred while using Kerberos authentication“, and how to fix “An error occurred while attempting to connect to the server: Check if the Virtual Machine Management service is running or you are not authorized to connect to this server“.

Verify WinRM setup via the Test-WSMan Cmdlets

To verify that the WinRM service is running using the Test-WSMan command. Stay glued as I will be showing how to enable WinRM on Windows Servers & Clients via Group Policy Object. Also, see how to configure servers for remote access.

Test-WSMan
    [[-ComputerName] <String>]
    [-Authentication <AuthenticationMechanism>]
    [-Port <Int32>]
    [-UseSSL]
    [-ApplicationName <String>]
    [-Credential <PSCredential>]
    [-CertificateThumbprint <String>]
    [<CommonParameters>]

The Test-WSMan cmdlet submits an identification request that determines whether the WinRM service is running on a local or remote computer. If the tested computer is running the service, the cmdlet displays the WS-Management identity schema, the protocol version, the product vendor, and the product version of the tested service.

Here is how t fix “WinRM cannot complete the operation, verify that the specified computer name is valid“.

Status of the WinRM service on a remote computer

To determine the status of the WinRM service on a remote computer. Please run the command below. Kindly replace the computer name with your remote device as shown below

Test-WSMan -ComputerName "TechDAPC01"

Determine WinRM Status and OS

This command tests to see whether the WS-Management (WinRM) service is running on the computer named server01 using the authentication parameter. Using the authentication parameter enables Test-WSMan to return the operating system version

Test-WSMan -ComputerName "TechDA01" -Authentication default

I hope you found this blog post helpful on how to determine the Windows PowerShell version and to see if WinRM is running via Test-WSMan. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Windows Server Tags:Microsoft Windows, PowerShell, PowerShellGet, Windows 10, Windows 11

Post navigation

Previous Post: Enable or disable Microsoft Edge from showing Web Content
Next Post: Various ways to hide Windows Taskbar

Related Posts

  • windows 1 2
    How does Dynamic Host Configuration Protocol work Windows Server
  • Windows 11 taskbar features remove 1
    How to modify Windows 11 Taskbar via Intune and GPO Windows
  • https   blogs images.forbes.com jasonevangelho files 2018 06 windows 7 2018 edition 1200x676 1
    Windows deployment cannot continue, the operating system is missing via MDT deployment Windows Server
  • slide office 365 79
    Configure WSUS Email Notification for Office365 Windows Server
  • hero activedirectory
    How to move a computer object from one container (OU) to another Windows Server
  • SystoLOCK Passwordless Authentication
    Protect your Windows Devices with MFA with SystoLOCK Security | Vulnerability Scans and Assessment

More Related Articles

windows 1 2 How does Dynamic Host Configuration Protocol work Windows Server
Windows 11 taskbar features remove 1 How to modify Windows 11 Taskbar via Intune and GPO Windows
https   blogs images.forbes.com jasonevangelho files 2018 06 windows 7 2018 edition 1200x676 1 Windows deployment cannot continue, the operating system is missing via MDT deployment Windows Server
slide office 365 79 Configure WSUS Email Notification for Office365 Windows Server
hero activedirectory How to move a computer object from one container (OU) to another Windows Server
SystoLOCK Passwordless Authentication Protect your Windows Devices with MFA with SystoLOCK Security | Vulnerability Scans and Assessment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • ssh
    How to disable RC4 Cipher Algorithms support in SSH Server Linux
  • BitLocker removal on Windows Server
    How to correctly disable BitLocker on Windows Server Windows Server
  • New OpenShift Featured Image
    OpenShift common Commands AWS/Azure/OpenShift
  • ios microsoft remote desktop app
    Remote Desktop can not find the computer FQDN and this might mean that FQDN does not belong to the specified network Windows
  • Screenshot 2020 05 14 at 19.28.50
    How to install and configure Rancid Linux
  • How To Enable Single Sign On (SSO) For Windows Admin Center
    Setup Windows Admin Center Modern Gateway for Single Sign-On Windows Server
  • Veeam SureBackup
    Ensuring Backup Integrity and Reliable Recovery with SureBackup Backup
  • images 8
    Microsoft Direct Access: Now Always On VPN Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,839 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.