Your videos are definitely the most digestible for learning some of the fundamentals necessary to think in the context of code. A lot of the courses on CZcams tend to easily overlook that context of thought comes before content of thought.
@@ShanesCows My apologies, but I had a question: I've been adding a number of scripts that I've found to my $profile text file and thought it made sense to add Update-Help as an initial command to make sure everything's up-to-date- right? It seems to run fine, but it returns with an error. I didn't look "too" far into Google, but there didn't seem to be a clear reason why until it struck me that since I've only installed the Azure module and mayyybe NuGet, it probably was returning errors for not being able to update certain other modules because I didn't have them installed to be found in any directory (What I assume "HelpInfoUri property" is referring to..). Question is, what (IF/Else?) would I add to the Update-Help command to specify only updating help for the modules I do have installed on the system?.. I'm still at level 0, so if my Kung Fu question doesn't even make sense, let me know Ci Fu. Thanks!
Your video just came in on time. This helps me a lot. It is funny, both my Online Instructor and an over $150 textbook have poor lessons about a PowerShell Profile. Thanks for making this video.
Keen to set up a profile, but (on work PC HP8560p Windows 10 PowerShell ISE), fails, with error message New-Item : Could not find a part of the path 'C:\Users\Administrator.WHOMEHD009\Docume nts\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1'. At line:1 char:1 Any ideas?
Nice, but as I'm Iron Man 2.0, I need some cool ASCII art showing when opening the terminal. I made a nice batch file and would like to know -where do I have to store "terminal.bat" -how do I include the bat in $PROFILE
@@ShanesCows yep (as my profile is basically about the editing mode (The Emacs keyboard shortcuts) first I tried by creating a $Profile.CurrentUserAllHosts, then)) set out the execution policy to unrestricted, now it works
Great content. My PowerShell profiles on my laptop and desktop both point to one .ps1 file that's stored on OneDrive and I'd like to disable this so profiles on my laptop and desktop are separate. How do I do this?
Check out this video to upgrade your PowerShell. Update PowerShell for Windows 7 and Windows 8 with PSReadLine and WMF 5.1 czcams.com/video/3jAH92mBbRk/video.html
How about something like a roaming profile for PowerShell, that follows you around from machine to machine? Can you point the profile to a NAS location? (Hope you didn't mention that and I missed it).
The profile paths are hard-coded. But you can dot source or load commands from anywhere, even a UNC path. In the profile script Shane shows, you could have a single command like this: . \\NAS01\Files\MyRealProfile.ps1
Hi just started using your videos to learn PowerShell. Which are great bye the way 😁. I do everything the same but when I get to 6:34 In the vid I get error message which is too long to write on here but goes +CategoryInfo:Invalid argument. +fullyquailified error id:positional parameter not found. Any help would b appreciate. Thx
@@ShanesCows the for replying it was because the actual PowerShell folder in documents was missing. But when I updated PowerShell it came back so all good now ...keep the vids coming I'm learning quite a lot for a newbie .
Jeffery Hicks for all points and purposes, Shane's Is making PowerShell For Dummies without calling it that. Everyone has notepad if they have a Windows computer.
Bob Dillon not everyone is eager to jump on the vscode train. Personally, it may be 0.000163 percent more efficient than the available PowerShell ISE. I just don't like the way it looks, and the interface is what I see. So, internal efficiency isn't worth it in the end.
Completely understand what you're saying. For me, I can't stand ISE. Never felt comfortable using it, so I've always used something else (NotePad ++, TextPad, etc). vsCode seems to be the first editor from Microsoft that, for me, I really enjoy using. And, from what I hear, it will replace ISE in PowerShell.Next. If you don't like the way it looks, may I recommend that you try one of the many add-ins to change the look and feel?
Hi shane young i am looking on trainig video from your end On PS special characters like $ is used for Variable declaration like that {},|,%,.,::,..,!,?,'() when and how to use this special characters in PS Scripting
my name is paul welsby i have the solution for you and with this one there is 2 ways of doing this one. 1 $host.ui.rawui.foregroundcolor = "yellow" and $host.ui.rawui.backgroundcolor = "black" 2 $host.privatedata.errorforegroundcolor = "yellow" $host.privatedataerrorbackgroundcolor = "black" 3 [console]::foregroundcolor = "yellow" [console]::backgroundcolor = "black"
I'm trying to use the If Admin line to adjust the colors of the console based on which of a few buttons a user selects from, but when my Get-PSReadLineOption returns different values than show here... "EditMode : Windows AddToHistoryHandler : HistoryNoDuplicates : True HistorySavePath : C:\Users\couga\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\Console Host_history.txt HistorySaveStyle : SaveIncrementally HistorySearchCaseSensitive : False HistorySearchCursorMovesToEnd : False MaximumHistoryCount : 4096 ContinuationPrompt : >> ExtraPromptLineCount : 0 PromptText : > BellStyle : Audible DingDuration : 50 DingTone : 1221 CommandsToValidateScriptBlockArguments : {ForEach-Object, %, Invoke-Command, icm...} CommandValidationHandler : CompletionQueryItems : 100 MaximumKillRingCount : 10 ShowToolTips : True ViModeIndicator : None WordDelimiters : ;:,.[]{}()/\|^&*-=+'"--― CommandColor : "$([char]0x1b)[93m" CommentColor : "$([char]0x1b)[32m" ContinuationPromptColor : "$([char]0x1b)[33m" DefaultTokenColor : "$([char]0x1b)[33m" EmphasisColor : "$([char]0x1b)[96m" ErrorColor : "$([char]0x1b)[91m" KeywordColor : "$([char]0x1b)[92m" MemberColor : "$([char]0x1b)[97m" NumberColor : "$([char]0x1b)[97m" OperatorColor : "$([char]0x1b)[90m" ParameterColor : "$([char]0x1b)[90m" SelectionColor : "$([char]0x1b)[35;43m" StringColor : "$([char]0x1b)[36m" TypeColor : "$([char]0x1b)[37m" VariableColor : "$([char]0x1b)[92m"" Is this just a difference between OS versions (found out today that I can't download Windows 11 'cause the processor sucks- verbatim) or did I break it?
5 years later. Still relevant and awesome. Thanks Shane!
Thanks Nate! Never would have guessed these videos would live so long but they have. A statement to the live of PowerShell. :)
Your videos are definitely the most digestible for learning some of the fundamentals necessary to think in the context of code. A lot of the courses on CZcams tend to easily overlook that context of thought comes before content of thought.
Glad you like them! Thanks for the kind words.
@@ShanesCows My apologies, but I had a question: I've been adding a number of scripts that I've found to my $profile text file and thought it made sense to add Update-Help as an initial command to make sure everything's up-to-date- right? It seems to run fine, but it returns with an error. I didn't look "too" far into Google, but there didn't seem to be a clear reason why until it struck me that since I've only installed the Azure module and mayyybe NuGet, it probably was returning errors for not being able to update certain other modules because I didn't have them installed to be found in any directory (What I assume "HelpInfoUri property" is referring to..). Question is, what (IF/Else?) would I add to the Update-Help command to specify only updating help for the modules I do have installed on the system?.. I'm still at level 0, so if my Kung Fu question doesn't even make sense, let me know Ci Fu. Thanks!
I love your PS lessons ,very helpful. I come from Taiwan , Thanks Shane
Your video just came in on time. This helps me a lot. It is funny, both my Online Instructor and an over $150 textbook have poor lessons about a PowerShell Profile. Thanks for making this video.
Ahhh dubstep intros from 2017, One thing I do not miss. love the vid though!
😹 That video feels like a million years ago.
Thanks Shane, This is great stuff! I would love to have a full transcript.
This video feels 20 years old with that style of speaking and editing, even though it is only 5.
Yeah, my videos have come a LONG way in the last 5 years. I look back at some of the old ones and just shake my head. 🤣
I have watched all your videos and they helped me a lot!! Thanks
Thank you for the note. :) That is what keeps me going. Love the dog also. :)
I love your PS videos, keep them coming👌
Very helpful, thanks!
Keen to set up a profile, but (on work PC HP8560p Windows 10 PowerShell ISE),
fails, with error message
New-Item : Could not find a part of the path 'C:\Users\Administrator.WHOMEHD009\Docume
nts\WindowsPowerShell\Microsoft.PowerShellISE_profile.ps1'.
At line:1 char:1
Any ideas?
No. Sorry. Maybe try creating it in a different path?
I also ran into this recently! Not sure if u still want to know the fix, but if u do, try this:
New-Item -path $PROFILE -ItemType File -Force
@@billywashington8785 Thanks!
Love your presentations...thank you!
Thanks Shane, are you able to guide how to import functions to the profile script.
I haven't done it. sorry
Excelente vídeo!!
Thank you 🙏
Nice, but as I'm Iron Man 2.0, I need some cool ASCII art showing when opening the terminal. I made a nice batch file and would like to know
-where do I have to store "terminal.bat"
-how do I include the bat in $PROFILE
Sorry been a long time since I messed with profiles
@@ShanesCows Had to give Powershell the permission to execute the bat in the profile, works now. Have a nice time.
Awesome
good lesson but I got into security execution policies when I (re)open PowerShell, the profile file fails to load
YOu can have the profile set the excution policy I think. Not sure, I haven't ran into that.
@@ShanesCows yep (as my profile is basically about the editing mode (The Emacs keyboard shortcuts) first I tried by creating a $Profile.CurrentUserAllHosts, then)) set out the execution policy to unrestricted, now it works
Great content. My PowerShell profiles on my laptop and desktop both point to one .ps1 file that's stored on OneDrive and I'd like to disable this so profiles on my laptop and desktop are separate. How do I do this?
.... I don't know. I haven't done that one before. 😐
@@ShanesCows I eventually settled on the .ps1 file on my OneDrive containing just this line:
. $profile.AllUsersAllHosts
How did you get the "Get_PSReadLineOption"? I am seeing "ObjectNotFound". I am using Powershell 2.0.
Also, if you could tell me little about the two commandlets: test-path & New-Item
Check out this video to upgrade your PowerShell. Update PowerShell for Windows 7 and Windows 8 with PSReadLine and WMF 5.1 czcams.com/video/3jAH92mBbRk/video.html
what is the meaning by host?
How about something like a roaming profile for PowerShell, that follows you around from machine to machine? Can you point the profile to a NAS location? (Hope you didn't mention that and I missed it).
I haven't tried any of that fun. I should.
The profile paths are hard-coded. But you can dot source or load commands from anywhere, even a UNC path. In the profile script Shane shows, you could have a single command like this:
. \\NAS01\Files\MyRealProfile.ps1
Hi just started using your videos to learn PowerShell. Which are great bye the way 😁.
I do everything the same but when I get to 6:34 In the vid I get error message which is too long to write on here but goes
+CategoryInfo:Invalid argument.
+fullyquailified error id:positional parameter not found.
Any help would b appreciate.
Thx
Can you paste your PowerShell Line here? Maybe I can help
@@ShanesCows the for replying it was because the actual PowerShell folder in documents was missing. But when I updated PowerShell it came back so all good now ...keep the vids coming I'm learning quite a lot for a newbie .
Awesome
Can you please make video on PS functions??????
I need to but never got there. It is on the list.
could you please tell me from where you copied code or please paste here for poiwershell profile so that i could use
Everything is in the description above.
You're killing me with Notepad.
I've mentioned vsCode to him a few times...
Jeffery Hicks for all points and purposes, Shane's Is making PowerShell For Dummies without calling it that. Everyone has notepad if they have a Windows computer.
Bob Dillon not everyone is eager to jump on the vscode train. Personally, it may be 0.000163 percent more efficient than the available PowerShell ISE. I just don't like the way it looks, and the interface is what I see. So, internal efficiency isn't worth it in the end.
Completely understand what you're saying. For me, I can't stand ISE. Never felt comfortable using it, so I've always used something else (NotePad ++, TextPad, etc). vsCode seems to be the first editor from Microsoft that, for me, I really enjoy using. And, from what I hear, it will replace ISE in PowerShell.Next. If you don't like the way it looks, may I recommend that you try one of the many add-ins to change the look and feel?
Hi shane young i am looking on trainig video from your end
On PS special characters like $ is used for Variable declaration like that
{},|,%,.,::,..,!,?,'() when and how to use this special characters in PS Scripting
Not a bad idea for a video. Have you watched my other videos? They cover a lot of that stuff. Start with Learn PowerShell and go from there.
Shane Young OK,i will try to refer those videos.if not find i will get back to you
Bummer! PSReadLineOption is completely different in Win10.
Hmmm. I didn’t realize it was so different. 😑🤔
@@ShanesCows the color handling has changed significantly.
my name is paul welsby i have the solution for you and with this one there is 2 ways of doing this one.
1 $host.ui.rawui.foregroundcolor = "yellow" and $host.ui.rawui.backgroundcolor = "black"
2 $host.privatedata.errorforegroundcolor = "yellow" $host.privatedataerrorbackgroundcolor = "black"
3 [console]::foregroundcolor = "yellow"
[console]::backgroundcolor = "black"
Thanks for sharing 😎
I'm trying to use the If Admin line to adjust the colors of the console based on which of a few buttons a user selects from, but when my Get-PSReadLineOption returns different values than show here...
"EditMode : Windows
AddToHistoryHandler :
HistoryNoDuplicates : True
HistorySavePath : C:\Users\couga\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\Console
Host_history.txt
HistorySaveStyle : SaveIncrementally
HistorySearchCaseSensitive : False
HistorySearchCursorMovesToEnd : False
MaximumHistoryCount : 4096
ContinuationPrompt : >>
ExtraPromptLineCount : 0
PromptText : >
BellStyle : Audible
DingDuration : 50
DingTone : 1221
CommandsToValidateScriptBlockArguments : {ForEach-Object, %, Invoke-Command, icm...}
CommandValidationHandler :
CompletionQueryItems : 100
MaximumKillRingCount : 10
ShowToolTips : True
ViModeIndicator : None
WordDelimiters : ;:,.[]{}()/\|^&*-=+'"--―
CommandColor : "$([char]0x1b)[93m"
CommentColor : "$([char]0x1b)[32m"
ContinuationPromptColor : "$([char]0x1b)[33m"
DefaultTokenColor : "$([char]0x1b)[33m"
EmphasisColor : "$([char]0x1b)[96m"
ErrorColor : "$([char]0x1b)[91m"
KeywordColor : "$([char]0x1b)[92m"
MemberColor : "$([char]0x1b)[97m"
NumberColor : "$([char]0x1b)[97m"
OperatorColor : "$([char]0x1b)[90m"
ParameterColor : "$([char]0x1b)[90m"
SelectionColor : "$([char]0x1b)[35;43m"
StringColor : "$([char]0x1b)[36m"
TypeColor : "$([char]0x1b)[37m"
VariableColor : "$([char]0x1b)[92m""
Is this just a difference between OS versions (found out today that I can't download Windows 11 'cause the processor sucks- verbatim) or did I break it?