PowerShell Convert Path for the win!

  Рет қаралды 7,260

Shane Young

Shane Young

Күн бұрын

In this video, we look at how to use Convert-Path in the context of a problem I was having with one of my scripts. We first look at the problem, the terrible way I solved it, and finally how to solve the issue properly. Fun times.
Cmdlets we cover:
Convert-Path
Replace
SubString
Video on installing PowerShell Strings
• PowerShell String Mani...
For support, training, or more information about PowerShell check out www.boldzebras.com

Пікірлер: 18
@alokrathore7203
@alokrathore7203 4 жыл бұрын
Hey Shane hooe ur doing well Want to know how is the > changing to red when it senses an incomplete command
@ShanesCows
@ShanesCows 4 жыл бұрын
I think I explain it here. kzbin.info/www/bejne/aZukeWxooqeViM0
@alokrathore7203
@alokrathore7203 4 жыл бұрын
@@ShanesCows thanks Shane appreciate it
@marwanabuali3556
@marwanabuali3556 6 жыл бұрын
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 жыл бұрын
Sooooo boring....but often overlooked! Great video, keep 'em coming!
@ИероглифСтёршийся
@ИероглифСтёршийся 6 жыл бұрын
Just increase speed of the video. I like x1.5. :)
@peronnikbeijer213
@peronnikbeijer213 5 жыл бұрын
you could just use the .Tolower() or ToUpper() methods on the input of the user ..
@ShanesCows
@ShanesCows 5 жыл бұрын
Interesting idea.
@adamkaminski1225
@adamkaminski1225 4 жыл бұрын
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...
@ShanesCows
@ShanesCows 4 жыл бұрын
I am not sure. Sorry
@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
@WittAllen
@WittAllen 7 жыл бұрын
There should be videos on all those other ways as well :D
@alihussein3261
@alihussein3261 5 жыл бұрын
thanks!! help me with my lab
@ShanesCows
@ShanesCows 5 жыл бұрын
Cool
@dinesh5624
@dinesh5624 3 жыл бұрын
$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())
@ShanesCows
@ShanesCows 3 жыл бұрын
I like it 😎
PowerShell Arrays Introduction
19:20
Shane Young
Рет қаралды 54 М.
PowerShell String Manipulation
16:54
Shane Young
Рет қаралды 84 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 19 МЛН
PowerShell Quick Tips : Test-Path
16:22
JackedProgrammer
Рет қаралды 1,5 М.
New! SharePoint Copilot Agent
20:48
Shane Young
Рет қаралды 6 М.
Manipulating Objects in Microsoft PowerShell - Video 2
23:29
Shane Young
Рет қаралды 420 М.
Copy, Move, Delete files with PowerShell
17:01
Shane Young
Рет қаралды 174 М.
Getting started with the PowerShell If Statement
17:53
Shane Young
Рет қаралды 30 М.
PowerShell ForEach-Object
16:14
Shane Young
Рет қаралды 51 М.
Microsoft PowerShell for Beginners - Video 1 Learn PowerShell
27:57
Shane Young
Рет қаралды 1,7 МЛН
Use Document Libraries not Attachments with SharePoint
26:21
Shane Young
Рет қаралды 18 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 341 М.
Install and Configure PowerShell for Office 365
23:16
Shane Young
Рет қаралды 54 М.