IderaBlog
  • Home
  • Performance Monitoring & Tuning
    • SQL Diagnostic Manager for SQL Server
    • SQL Defrag Manager
    • SQL Diagnostic Manager for MySQL
    • Precise
    • SQL Doctor
    • SQL Query Tuner for SQL Server
    • SQL Workload Analysis for SQL Server
    • Uptime Infrastructure Monitor Formerly Uptime
  • Database Administration
    • SQL Admin Toolset
    • SQL Enterprise Job Manager
    • SQL Inventory Manager
    • SQL Safe Backup
  • Database Security
    • SQL Compliance Manager
    • SQL Secure
  • Data Modeling
    • ER/Studio Business Architect
    • ER/Studio Data Architect
    • ER/Studio Team Server
  • Database Development & Management
    • Aqua Data Studio
    • DB PowerStudio
  • More
    • Powershell
    • Free tools
    • Events
  • U
Select Page

PowerShell string contains

by RSiddawayAug 31, 2018

How can you check if a PowerShell string contains a character or substring?
You might be tempted to try this:
PS> $s = 'abcdefghijk'
PS> $s -contains 'f'
False

But –contains is for working with the contents of arrays. So you could do this: … Read the full text.

Tags

Aqua Data Studio Azure backup cloud data architecture database database administration database monitoring database performance databases database tools data governance data modeling DBA DBArtisan diagnostics ER/Studio ER/Studio Enterprise Team Edition events Getting Started Hyper-V IDERA interbase Microsoft SQL Server monitoring Monyog MySQL news Oracle performance Precise product updates releases SQL SQL Compliance Manager SQL Diagnostic Manager SQL Diagnostic Manager for MySQL SQL Diagnostic Manager for SQL Server SQL Safe Backup SQL Secure SQL Server Storage troubleshooting Uptime Infrastructure Monitor webinar
  • Facebook
  • Twitter
  • LinkedIn
  • YouTube

Idera uses cookies to improve user experience. By using our community you consent to all cookies in accordance with our Cookie policy.