PowerShell Convert Path for the win!

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ •

  • @alokrathore7203
    @alokrathore7203 4 роки тому +1

    Hey Shane hooe ur doing well
    Want to know how is the > changing to red when it senses an incomplete command

    • @ShanesCows
      @ShanesCows  4 роки тому +1

      I think I explain it here. ua-cam.com/video/3jAH92mBbRk/v-deo.html

    • @alokrathore7203
      @alokrathore7203 4 роки тому

      @@ShanesCows thanks Shane appreciate it

  • @marwanabuali3556
    @marwanabuali3556 6 років тому +1

    Thank you very much Mr.Shane , do you have video for change file and folder NTFS permession on windows using powershell ?

    • @ShanesCows
      @ShanesCows  6 років тому

      I don't. Sorry. Maybe a topic for a future video.

  • @davidsonmg
    @davidsonmg 7 років тому +1

    Sooooo boring....but often overlooked! Great video, keep 'em coming!

  • @NancyRileyNuniverse
    @NancyRileyNuniverse 7 років тому

    Hi Shane, do you have a video for creating office 365 distribution lists in mass?

    • @ShanesCows
      @ShanesCows  7 років тому

      Sorry Nancy I do not. Not something I have ever even looked at. A quick search tells me I would at least start here. support.office.com/en-us/article/Manage-Office-365-Groups-with-PowerShell-aeb669aa-1770-4537-9de2-a82ac11b0540
      Only thing I would have to offer is contacting me through Bold Zebras and we could scope out what it would take to help you automate this as a consulting engagement. Thanks Shane

  • @peronnikbeijer213
    @peronnikbeijer213 5 років тому +2

    you could just use the .Tolower() or ToUpper() methods on the input of the user ..

  • @WittAllen
    @WittAllen 7 років тому

    There should be videos on all those other ways as well :D

  • @alihussein3261
    @alihussein3261 5 років тому +1

    thanks!! help me with my lab

  • @adamkaminski1225
    @adamkaminski1225 4 роки тому +1

    Cmdlet Convert-Path can easy convert any indirect path into an absolute path value. It can event conver unix slashes into windows backslashes. It can convert disk drive letter to uppercase, just like it is in the result of Get-PSDrive. But it has one small shortage. When you give as a parameter a path, using case different from the original, e.g. c:\users\adam, then result is C:\users\adam. This is incorrect, it should be (on my system) C:\Users\Adam. Generally, any part of the path present in Convert-Path parameter (except drive letter) is not converted to correct case. It is used without change. It is possible to make a simple function to fil this gap...

  • @dinesh5624
    @dinesh5624 3 роки тому +1

    $LowerPath.replace($LowerPath.Substring(0,2),$Lowerpath.Substring(0,1).ToUpper()+":")
    Just a thought, instead of above line, you could also use this, right? that would make this bit simpler.
    $LowerPath.replace($LowerPath.Substring(0,1),$Lowerpath.Substring(0,1).ToUpper())