Lessons Learned

My drop-site for interesting snippets and tips. If it's useful to you as well, great!

Browse by Tags

Tagged Content List
  • Blog Post: #StupidProfileTrick - FunctionList

    As I previously posted, my $Profile is stupidly complicated, and it adds a ton of functions.  Which ones did I add? (Reason this is of interest to me is because I mistakenly named a function with the same name as a cmdlet.  Yeah, totally stupid move on my part.  More on that later.) #region...
  • Blog Post: Stupid Profile Trick: $PROFILE as Module

    I’m spending a lot of time on my $PROFILE for some reason.  Don’t tell my boss. :) Anyhow, we know that Get-Module will get you a list of modules, and Get-ChildItem Function:\ | Select-Object –Property Name, Module will show you what functions you have loaded from those modules. However, functions...
  • Blog Post: Prompts

    What does your function:\prompt look like? Here’s mine: function prompt { if ($Host.IsAdministrator -eq $null) { $CurrentUser = [Security.Principal.WindowsIdentity]::GetCurrent(); $CurrentUserPrincipal = New-Object Security.Principal.WindowsPrincipal $CurrentUser; $AdminRole = ...
  • Blog Post: CorpNet ProjectFunctionLibrary.psm1

    Sorry, nothing really intranet related here. Instead, I have a few lines of code from my CorpNet ProjectFunctionLibrary.psm1 that I want to share for managing this system. Update-ProfileSystemProfile: The goal for this system is to have the same code in each project’s $PROFILE, which is then...
  • Blog Post: $PROFILE and RDP Sessions

    Let's start with the design discussion first. Problem Statement: I need to RDP onto multiple machines in multiple labs for multiple projects. Each project has its own customizations to my $PROFILE. I need a way to keep all those files up-to-date and yet accessible. Firstly, my desktop's $PROFILE...
Page 1 of 1 (5 items)