Skip to main content

All Questions

36 votes
5 answers
182k views

Using make from Windows PowerShell

Under Linux, sources of projects commonly come with Makefile's. Makefiles contain directives to build these projects using the command make. I am currently forced to use Windows, and so as to be able ...
Malte Skoruppa's user avatar
3 votes
3 answers
9k views

How to run a PowerShell script from a console window when there is Å, Ä or Ö in the search path?

When I right click on a script.ps1 file and select "Run with PowerShell", a PS console window comes up, and my script can't run for some reason. So I get an error, but I can't actually read ...
Samir's user avatar
  • 20.9k
0 votes
1 answer
3k views

Can't change Powershell ExecutionPolicy of User Account

Typing Get-ExecutionPolicy in PowerShell as Administrator returns Restricted, but when I run Powershell as User Account and type Get-ExecutionPolicy it returns Unrestricted. Why is that ? I thougt ...
Devid's user avatar
  • 6,397
2 votes
1 answer
1k views

Why is the Windows Features window showing PowerShell 2.0 installed?

I'm running a Windows 8 machine. The "Windows Features" window tells my that I'm using PowerShell 2, but the PowerShell environment itself says otherwise, see screenshot below. Why is the Windows ...
Tim's user avatar
  • 1,090
6 votes
3 answers
4k views

Upgrading Windows 7's PowerShell v3, to Windows 8's PowerShell v3

I have becoming increasingly aware that Windows 7's PowerShell v3 lacks cmdlets / functions and modules found in Windows 8's version of PowerShell 3. My question: Is there anyway of 'upgrading' ...
Guy Thomas's user avatar
  • 3,328
283 votes
14 answers
374k views

Equivalent of Linux `touch` to create an empty file with PowerShell [duplicate]

Is there an equivalent of touch in PowerShell? For instance, in Linux I can create a new empty file by invoking: touch filename On Windows this is pretty awkward -- usually I just open a new instance ...
jsalonen's user avatar
  • 9,111