Link to home
Start Free TrialLog in
Avatar of fuzzyfreak
fuzzyfreak

asked on

I have a Powershell command that spans multiple lines but how do I execute it?

I am trying to run a Powershell Command "makecert -n "CN=powershell local certificate root...." that spans a few lines.  I have no problem spanning the lines using the backtick, but I am then simply left with a >> prompt.  How do I then execute the command?
ASKER CERTIFIED SOLUTION
Avatar of SubSun
SubSun
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Press Enter until the >> goes away.

Also, if your commands include Read-Host in them, you will end up not being able to execute the block of code because the next line will be the entry for the read host if that makes sense.

-Dale Harris
>> means the system is asking to enter more input.  You can press either Control C to cancel the operation or enter the inputs or press Enter until it goes
Check that you have all you " matched as if you have a quote but no close quote it can happen

Can you post whole command here
Avatar of fuzzyfreak
fuzzyfreak

ASKER

Thanks, ENTER indeed was the answer here.  However if you see my attachment, you can see the command failed - page 1 shows you that I should be able to run the command as is, page 2 shows you that it failed - any obvious reasons why?
make-cert.pdf
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Already downloaded and installed (SDK 2.0)
Try with path to MakeCert.exe file..
For example..
C:\temp\MakeCert.exe ......
OK, I appear to have been misinformed - SDK 2.0 does NOT include makecert.exe.  could somebody please tell me the latest SDK that DOES contain makecert.exe - thanks.
Did you try the links from my previous post?
My apologies, thanks.  Now, can you tell me which component contains makecert so that I don't have to install every component, would it be windows native code development, .NET development or under common utilities?
I think it's in  windows native code development tools, but not sure..
OK, that installer is failing.  I think it is because it does not support my OS - do you know which one supports Small Business Server 2011 standard?

Thanks
You can search SDK for Windows server 2008 R2 and download it..
Sorry it has taken me a while to get back but I had to follow through some articles to get the SDK installed.  It turns out that you have to uninstall the MS Visual C++ 2010 x86 and x64 before you can install the SDK.  I took a pot shot and installed just the .NET development tools and it was bang on, giving me makecert.  I then went through a very long process of having to make my certificate, certifying a script and eventually getting to where I wanted to get to - took me the whole day.

I went home satisfied, which suggests the day was productive...with your help.

Thanks.
ENTER key was the answer to my original question.  Very grateful for off-topic assistance as well.