PowerShell: Simple Profile

Posted on Updated on

I’ve read a lot of different posts, articles and listened to any different Power Users tell me how to set up my PS profile. What I have seen is that a lot, if not most people want to trick up their profile adding all kinds of cool things that just increase the load time of the PowerShell console. You can import modules when you need them, you can update help when you need it. You get my point.

I believe simple is better, including just enough to make it work and that’s not much at all. Lets see what I have in my PS profile:

set-location c:\Powershell
$a = (Get-Host).PrivateData
$a.ErrorForegroundColor = “green”

Four lines, that’s it, but what do they do?

  1. set-location “Path” Just drops me in my PowerShell folder that all my scripts are in.
  2. $a = (Get-Host).PrivateData sets a variable so that I can change colors by accessing the ChildObject PrivateData to assign a different color to different things in the PS window.
  3. $a.ErrorForegroundColor = “green” uses the $a to add the ErrorForegroundColor so that I can assign it a value of  green. You can do more with assigning cmdlets to variables but that isn’t the lesson here.
  4. cls is because I like a a clean workspace while I work.

That’s my whole profile. Nothing spectacular, or even ingenious. I just want to get working and I hate the RED error messages. Green looks so much better.



A New Education and Technology

Posted on Updated on

I’ve been offline quite a bit the last year, with just a few posts here and there. A lot of my writings have been along the personal bent instead of technology, education and new technologies that are leading the field in education. With that in mind I will be separating the family and personal from the technology. I have another blog that I have started creating called “It Affects Me” I couldn’t get that URL, so I did a grammar no, no (sorry Michael) and called it

codeI plan to discuss it all, technology, education, coding, PowerShell and reviews of new technology.I have already found out that you cannot trust that what you would consider a good source to be one that will give you the time of day. What am I talking about? Here are teo examples. The first involves the @ScriptingGuys and this Tweet asking for help while whining a the same time: “What use is PS if I can’t run a program I’ve copied to 43 servers because of security in Win2012 Server R2?”  I got some every helpful advise from @twiztedsteel who got me to the part I was leaving out.

The second was to @deployjeremy reading: “like the O365 #powershell tutorials. Looking for a script to add specific users to specific Groups. Staff to staff group, etc.” That was posted a month ago with no response at all. Not even an “I’m not sure.” That is completely unacceptable from someone who has a public presence on Microsoft’s Channel 9. Luckly in this case I used my AD skills to create a global Dynamic Security group that sync’s with Office365 in which I added all the needed users gythat group making them able to be a part of the group. It still needed some tweaking but its working. I’m hoping that the rest of the Powershell community is more helpful with questions than I have started out with.

I hope that everyone will visit both sites and enjoy  them for what they are.

School’s Out, Well Not Really

Posted on Updated on

The school year for our students ended on Monday, but that only means that the official school year ended. That doesn’t mean we don’t have a lot of things to do or that we just shut down until August and here’s why.

I always leave Monday’s free on my schedule, unless my boss has a project for me to do because that is the day that seems to have the most unplanned service needs. Weekends tend to do that to people and the technology that they use, but the last day of school is notorious for not being busy with service requests. It’s a day for goodbyes for teachers and their students and button up day in the classrooms. But it was Monday and of course I get call from my boss to take care of a project for him that took part of the day.

The rest of my week  is a different story because it  had been scheduled for over a month, every minute of the the day is planned for training summer school teachers, to setting up for a move of a schools administration to another location while their office is being gutted for AC renovations, then doing the move later in the week, to tech support for teacher training in Promethean ActivBoard technologies and software for use in the classrooms with our students.

The school based tech supports are just as busy because they have to collect all technology from their teachers, check their inventories, start end of year cleaning and maintenance of technology and help their teachers be prepared before they get to my trainings this week. Of course they also need to plan for teacher return in the fall as early as possible because they are also going to have their own trainings and are going to be asked to participate in district projects or they are going to have to support summer school at their location.

As we work our way through the summer, I will also be planning for the promotion, rollover and imports of students and teachers of the programs I support at the district level. All of this requires the cooperation of the vendors, school administration and the district curriculum department. At the same time I will be planning for the Science Fair that isn’t until January 2012, but I don’t like to be behind the eight ball when it comes time to do my technology part. I also have special projects that can only be done without students present, so I have to plan for them too.

So, as you can see, school might be out, but it really isn’t. We are preparing for the next school year, all summer long.