Archive for the 'profile' Category

PowerGUI Survey: Safe Mode Shortcut

As we are getting closer to the first 1.5 beta we are reviewing various pieces of PowerGUI functionality, including the shortcuts we are placing into the Windows Start Menu.

First of all, we will be adding x86 shortcuts on 64-bit operating systems so administrators can use us in both modes (this will help working with 32-bit only stuff like VMware Toolkit and various legacy systems.)

Secondly, we are considering removing the existing PowerGUI (safe mode) shortcut.

All this shortcut does is actually starting PowerGUI admin console without loading the PowerShell profiles present on the computer. We used to need this long time ago when we had compatibility issues with PowerShell community extensions. For a long time I have not heard anyone actually telling me that they were using this option, so if no one needs it, why keep it?

Please spend 5 seconds by going to the survey page and answering this simple question: do we keep this shortcut or remove it and save you some real-estate property on your Windows screen and Start menu.

If there are any other modes/shortcuts you would like us to have, please suggest these in the PowerGUI discussion forums.

Thanks in advance for your feedback!

Tags: , ,


Make PowerShell record everything you do

How many times you wished you had a log of the management activities you did yesterday, or last week, a a month ago?

Luckily, PowerShell has the ability to do that! Start-Transcript cmdlet outputs all the commands you enter and the results you get into a specified text file. Now all you need to do is add the function starting a new transcript file every day which Shay shared yesterday to your PowerShell profile.

And every day everything you do is going to be preserved. Pretty powerful if you combine that with a desktop search engine!

Tags: ,

Dude, where’s my PowerShell profile?

PowerShell profiles is the “stuff” that gets loaded each time you use PowerShell. They can load your favorite Exchange management scripts, define the aliases you need, or just give you a nice welcome message.

How do you create a profile? How do you find which ones have already been created on your computer and are already affecting the execution?

The easy way is just using the File / Open Current User Profile or File / Open All Users Profile menu in PowerGUI – see the screenshot below.

Use PowerGUI to Find, View, Edit or Create PowerShell profile

These menu items allows you to see/edit the profiles already present on your computer, and create a profile if it is not there yet.

profile.ps1 profiles are guaranteed to work across all PowerShell applications on the machine. Microsoft.PowerShell_profile.ps1 might not work outside the powershell.exe “blue” console (for example, ISE will not use it – but PowerGUI by default will).

You can read more about PowerShell profiles in MSDN.

Tags: , ,

My Recent Tweets


The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

December 2022

%d bloggers like this: