<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx</link><description>Microsoft Scripting Guy, Ed Wilson, teaches how to use a Windows PowerShell module to simplify your profile.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3500389</link><pubDate>Sun, 27 May 2012 16:19:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3500389</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@JV yes, Scripter@Microsoft.com is down right now. I have been working with the help desk to get it back up, but it might take a bit of time. I will let you know. In the mean time, can you Direct Message me on Twitter, @ScriptingGuys or message me on Facebook?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3500389" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3500322</link><pubDate>Sat, 26 May 2012 04:42:29 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3500322</guid><dc:creator>JV</dc:creator><description>&lt;p&gt;@Ed - scripter@microsoft.com - invalid address.&lt;/p&gt;
&lt;p&gt;&amp;lt;Scripter@Microsoft.Com&amp;gt;: host mail.messaging.microsoft.com[216.32.180.22]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;said: 550 5.4.1 Scripter@Microsoft.Com: Recipient address rejected: Access&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Denied (in reply to RCPT TO command)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3500322" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3500097</link><pubDate>Fri, 25 May 2012 13:24:22 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3500097</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@JV this makes sense and would provide a very simple and powerful solution. I would love to hear more about it ... can you email me at Scripter@Microsoft.Com please?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3500097" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3500096</link><pubDate>Fri, 25 May 2012 13:23:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3500096</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@K_Schulte Yes, modules are GREAT. I have even written a blog article called Don&amp;#39;t Write Scripts, Write Modules. The nice thing is that if prople write modules and share them, perhaps on the Scripting Guys Script Repository, then others can easily use those modules. In this way, only ONE person needs to write a specific module, and thousands of others can share in the use of that modules. Modules are a great way to share code.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3500096" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3499979</link><pubDate>Thu, 24 May 2012 23:30:53 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3499979</guid><dc:creator>JV</dc:creator><description>&lt;p&gt;@Ed&lt;/p&gt;
&lt;p&gt;On all of my sites I have both admin and standard user ‘My Documents’ redirected by a GPO to the same network folder. &amp;nbsp;I can access all scripts and modules from both sessions and from Win7/08 elevated. &amp;nbsp;I constantly create and modify scripts in the standard user environment then just click a link on the desktop that does ‘RunAs’ my admin account. &amp;nbsp;I can then test the scripts as an admin when needed. &amp;nbsp;I am finding that most things do not require elevation if we are querying remote systems as I can just use credentials. &amp;nbsp;Once I launch PosH I enter my Admin password into a $cred and have it to use whenever needed. &amp;nbsp;I only need to log in as an admin to run some code against the local machine.&lt;/p&gt;
&lt;p&gt;The trick is to use a GPO to redirect you’re ‘My Documents’ for both accounts. &amp;nbsp;They will then share the same network folder where PowerShell stores its profile.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3499979" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3499941</link><pubDate>Thu, 24 May 2012 20:41:44 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3499941</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;this is probably a very good idea ... &lt;/p&gt;
&lt;p&gt;But I have to admit that I never had to (or just avoided to) create a reasonably complex module on my own!&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using some modules ... for sure ...&lt;/p&gt;
&lt;p&gt;But developing a module is something else than consuming a module.&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m really excited to see, what the weekend scripter will be blogging here!&lt;/p&gt;
&lt;p&gt;Klaus.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3499941" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3499889</link><pubDate>Thu, 24 May 2012 15:55:49 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3499889</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@JV My normal user account is called ed. It is the one I use to log onto my computers day in and day out. That account is not a memember of any admin group -- either on the local computer or in the domain. Therefore, when i need to elevate the Windows PowerShell console, to do admin work, I must right click and select RUN AS Administrator. When this happens, a credential dialog box appears prompting me for credentials. I then type in EdAdmin for my domain, and supply the password. This IS in fact, a completely different domain user, that has ADMIN rights on my local computer. If you do not see a different profile path being used, then it means you are running your computer as a user that has administrator rights ... and that is not a very good security practice. But thank you for clarifying this point ... &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3499889" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3499872</link><pubDate>Thu, 24 May 2012 15:19:03 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3499872</guid><dc:creator>JV</dc:creator><description>&lt;p&gt;I have now checked numerous WS2008, Windows 7 and WS2008R2 systems with PowerShell V2. &amp;nbsp;On all tests, when running elevated, the profile is always pointed correctly. &amp;nbsp;The PowerShell setup is basic. &amp;nbsp;No changes have been made. &amp;nbsp;The GPO just sets the security and enables remoting. &amp;nbsp;Nothing else has been done.&lt;/p&gt;
&lt;p&gt;If you are not seeing this on your systems then there is a problem with your installation. &amp;nbsp;This may be because you upgraded to V2 without first removing V1. (that is a guess)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3499872" width="1" height="1"&gt;</description></item><item><title>re: Use a Module to Simplify Your PowerShell Profile</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/05/24/use-a-module-to-simplify-your-powershell-profile.aspx#3499868</link><pubDate>Thu, 24 May 2012 15:10:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3499868</guid><dc:creator>JV</dc:creator><description>&lt;p&gt;On WIndows 7 with PowerSHell V3 the profile path does not change when elevated. &amp;nbsp;It should not change in PosH V2 either. &amp;nbsp;If it does then something may have altered the registry settings.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3499868" width="1" height="1"&gt;</description></item></channel></rss>