Automating the world one-liner at a time…
I talked about this before but a number of people have missed it so here it is under a better title.
In V1, we had a problem which caused our assemblies to not get ngen'ed during installation. If you don't know what "ngen" is, don't worry - you don't need to. All you need to know is that we didn't do the step that makes things go fast on your machine. The instructions for how to fix this are HERE.
You should stop what you are doing and go run that script. If you've already done this in the past, it will be harmless but if you haven't, you'll be amazed at the improvement in startup times. Please tell all your friends to do this as well. A lot of people don't know about it and have a bad opinion about PowerShell startup times. After people run it, the typical reaction is, "WOW!".
Jeffrey Snover [MSFT]Windows Management Partner ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
You've been kicked (a good thing) - Trackback from DotNetKicks.com
I do this also whenever I install PowerShell... Just one (old) question though and I think this was already asked by Thomas Lee before:
1.) ngening takes few seconds (maximum half minute)... WHY on earth you do ngening on background and not during installation????
2.) You should update that script with IsInRole. If you run it in Vista, you get "Access denied" if PS is not elevated.
3.) This is important one :) Is there any way to speed up PowerShell loading time on Terminal Services\Citrix??? I mean systems where people keep logging on and off all the time??? Are there any tricks how to pre-load .NET or do something similar? This is very important question for all people that would like to migrate vbscript\batch logon scripts to PowerShell.
First : I'm a complete noob
I get : "You must have administrative credentials to perform this task."
How do I start powershell as root
or is there something like sudo?
An invaluable piece of information.
This has reduced the startup time on all four of my regularly used PC's to "blink and it's there".
Powershell was worth waiting for anyway ;-)
> How do I start powershell as root
In Program groups, right click on the PowerShell item and "Run As Administrator"
> 1.) ngening takes few seconds (maximum half minute)... WHY on earth you do ngening on background and not during installation????
> Is there any way to speed up PowerShell loading time on Terminal Services\Citrix???
Ngen'ing is the trick.
Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
It seems a little surreal that after so much time and energy is devoted to PowerShell in books, blogs, audio and video throughout 2007/2008; one should then discover such a fundamental suggestion from JS (of all people!). Surely there might be one place to find such tips - without wondering whether one had wandered the web enough to secure all relevant information ?
Anyhoo - as ever, Many thanx to the PowerShell team - I can't recall such fun since the '80s.
I did this when I fist installed ps v1 & completely forgot about it when I installed it on my new computer (was thinking it was slow, but it never clicked).
Very glad you reminded me, but isn't this the kind of bug you should realease a windows update to fix?
This is a wonderful thing... Thank you.
Linked at http://www.andreatedeschi.com/2008/07/speeding-up-powershell.html
Yeah, Wow, I didn't use powershell if little tasks as it too long to load vs cmd, now no problems.
Don't forget that on x64 systems, you need to use "Microsoft.NET\Framework64"
I have installed a test server, Win 2008, Enterpirse edition, build 6001 SP1 and whatever I do, I cannot get Powershell installed. On my XP-system, no problem.
Installation stops, saying there is not enough memory. It is 1,5 GB.
Anyone who can help?
Speeding Up PowerShell Startup MS08-039: Which users are vulnerable to the OWA XSS vulnerability? Reducing
Jeffrey Snover of Microsoft, PowerShell dude extraordinaire, recently reminded us of a way to Speed Up
If you think your PowerShell startup is slow, or even if you think it is OK, follow the instructions
PowerShell 1.0 comes in-band with W2K8. You need to turn it on using the server manager UI.