Page 1 of 1 |
3E74
Posts: 2559
Location: feels wrong
|
Posted: Tue, 6th Sep 2016 01:02 Post subject: How to use Powershell on win7 (net error) |
|
 |
hy,
i wanted to try a ps1 (powershell) script and it gives me an error.
i have windows 7 64bit, all up to date, NET framework is also up to date with version 4.6.1.
so, if i wanna edit or start this ps1 script, the console windows pops up and is gone again, cant really read teh text from the error but i think it says:
NET 3.5.1 is required ERROR.
when i wanna edit it it says:
so, do i have to revert back to 3.5.1 to use powershell? shouldnt it be include din 4.6.1????
i have 4.6.1 installed:
and windows was setting the services like this after the update:
If anyone has a little experience with powershell and windows 7 who could help me, that would be awesome...
thanks,, greetz
..:: Life - A sexually transmitted disease which always ends in death. There is currently no known cure::.. 
|
|
Back to top |
|
 |
|
|
Back to top |
|
 |
|
Posted: Tue, 6th Sep 2016 13:36 Post subject: |
|
 |
For future reference: you might want to install more .Net Framework versions, as they are required by software/game x/yz. Same goes for the bloody Visual C++ redistributables...
Yeah...Microsoft...Can't be bothered for an all-in-one installer.
|
|
Back to top |
|
 |
|
Posted: Tue, 6th Sep 2016 13:45 Post subject: |
|
 |
It will not revert, just install .net 3
|
|
Back to top |
|
 |
3E74
Posts: 2559
Location: feels wrong
|
Posted: Wed, 7th Sep 2016 00:19 Post subject: |
|
 |
hmmm, ok.. didnt know you have to install each version like its with c++..
i guess i install this then:
Microsoft .NET Framework 3.5 Service Pack 1
+
Microsoft .NET Framework 3.5 Service Pack 1 Update
downloading and testing...
..:: Life - A sexually transmitted disease which always ends in death. There is currently no known cure::.. 
|
|
Back to top |
|
 |
Frant
King's Bounty
Posts: 24598
Location: Your Mom
|
Posted: Wed, 7th Sep 2016 00:27 Post subject: |
|
 |
Yeah.
.NET is a bit messy (yet a very rich API for system and application development).
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn!
"The sky was the color of a TV tuned to a dead station" - Neuromancer
|
|
Back to top |
|
 |
3E74
Posts: 2559
Location: feels wrong
|
Posted: Wed, 7th Sep 2016 00:41 Post subject: |
|
 |
ok, i got it installed, and now i can edit the ps1 file without any problems.. so that works..
But when i try to run the ps1 script it doesnt work.. i did now catch the error via the pront screen..
here it is:
it says skripts are deaktivated on my system.. i didnt know that, so, where do i change this? cant find that option in windows, at least not where im searching..
EDIT:
sratch that, i got it
i had to enable:
Set-ExecutionPolicy unrestricted
in powershell..
all working good now..
THANKS for the Help guys...
Ya´ll have a nice evening...
..:: Life - A sexually transmitted disease which always ends in death. There is currently no known cure::.. 
|
|
Back to top |
|
 |
|
|
Back to top |
|
 |
Page 1 of 1 |
All times are GMT + 1 Hour |