Skip to primary content
Skip to secondary content

server1.dk

Tech Tips

server1.dk

Main menu

  • Home

Tag Archives: integer

Check if string contains numeric value in PowerShell

Posted on September 25, 2020 by Henrik
Reply
if($teststring -match "^\d+$")
{
   Write-host "It's a number"
}
Posted in Uncategorized | Tagged integer, powershell, string | Leave a reply
Recommended by server1.dk

Tags

  • 32bit
  • 64bit
  • Active Directory
  • ad
  • array
  • Azure
  • azure ad
  • azure function
  • cmd
  • costcenter
  • curl
  • datalake
  • Exchange
  • Exchange 2016
  • gateway
  • hashtable
  • integer
  • linux
  • network
  • nuget
  • ping
  • pip
  • policy
  • ports
  • powershell
  • print
  • public folder
  • random
  • remote
  • REST
  • Roles
  • rsat
  • sms
  • sql
  • SSL
  • string
  • tags
  • tcp
  • text message
  • Virtual Machine
  • windows
  • Windows 10
  • Windows 11
  • windows server
  • Windows Update

Recent Posts

  • You can’t access this shared folder because your organization’s security policies block unauthenticated guest access April 25, 2025
  • Download Windows 11 trial without registration March 18, 2025
  • Link to download English version of Windows Server 2025 without registration December 23, 2024

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress