Knowledge Repository

Search
Skip to content
  • Home
  • Microsoft
    • Powershell
    • Configuratie
    • Inrichting
    • Storingen
  • Linux
  • VMware
    • Back-up
    • Configuratie
  • Netapp
  • Overige
Microsoft, Powershell

First Character to Upper Case

April 14, 2014 steven

Using Substring you can convert the first character to upper case of a string. Let’s say  your string is $leverancier:

$Leverancier = $Leverancier.substring(0,1).toupper()+$Leverancier.substring(1).tolower()
CaptionPowershellStringSubString

Post navigation

Previous PostSuprise woman with days anniversaryNext PostVery basic hiding of words

Recent Posts

  • Find where a certificate is installed
  • Count homedirectories
  • Connecting to Powershell Endpoints Exchange/Lync
  • Modsecurity for Plesk 2
  • ShareFile edit Storage quota limit

Tags

  • ACL
  • AD
  • AD Management
  • Administration
  • Apache
  • App-V
  • Automation
  • Calculation
  • Caption
  • Certificates
  • Citrix
  • Convert
  • Custom Functions
  • Date
  • DNS
  • DPAPI
  • Driver installation
  • Encrypting
  • Equalit
  • ESXi
  • Exchange
  • Export
  • FAN
  • File Presence
  • Folder Security
  • Import
  • LUN
  • Lync
  • NetApp
  • OpenSSL
  • Passwords
  • Plesk
  • Powershell
  • Security
  • Server 2008 R2
  • ShareFile
  • String
  • Troubleshooting
  • Ubuntu
  • vFiler
  • Virtual machine
  • WDS
  • Window 8
  • Windows Server 2012
  • Xenapp
Proudly powered by WordPress