![]() This allows me to have available anything I am currently working on (plus all my favorite books). I’ve also modified the $PSModulePath automatic variable: $env:PSModulePath = ' Dropbox:\PowerShell\Profile' New-PSDrive -Name Dropbox -PSProvider FileSystem -Root "c:\Documents and Settings\Moravec\My Documents\Dropbox" | Out-Null It has really a lot of very useful functions.įirst line of my $PROFILE.AllUsersAllHosts is: PS> Get-Content $PROFILE.AllUsersAllHosts | Select -First 1 If you haven’t checked that one out yet, it’s time for it now. You can see that for showing this structure, I’ve used Show-Tree function, a part of PowerShell Community Extensions. ![]() At the moment I have this structure: PS> Show-Tree Dropbox:\PowerShell -Depth 1 ![]() When I started working with PowerShell few years ago I was looking for solution to have scripts available on all of my computers. ![]() When I was asked to provide some PowerShell tips, I decided to look at the first possible place–my $profile. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |