Skip to main content

Questions tagged [powershell-3.0]

Microsoft’s command-line scripting language. V 3.0, which was introduced in Windows 8 and Server 2012, supports code autocompletion (IntelliSense). Remote sessions are more reliable, and there is a bigger selection of cmdlets and built-in functions.

355 votes
12 answers
625k views

Native alternative to wget in Windows PowerShell?

I know I can download and install the aformentioned library (wget for Windows), but my question is this: In Windows PowerShell, is there a native alternative to wget? I need wget simply to retrieve ...
jsalonen's user avatar
  • 9,111
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
28 votes
13 answers
223k views

PowerShell Get List Of Folders Shared

I am trying to get a list of folders that are shared on a file share. At the moment I have two test folders: \\MYPC\Test1 \\MYPC\Test2 This is the code I have at the moment: $FileServer = Read-...
The Woo's user avatar
  • 477
4 votes
4 answers
14k views

Can't install Powershell 3.0

Im trying to install powershell 3.0 on my Win7 64 bit pc, but I get the error "the update is not applicable to your computer." After googling the error, all the solutions I see are that you need to ...
Keltari's user avatar
  • 73.6k
3 votes
1 answer
5k views

Unable to SSH to my virtual machine via Windows Power Shell ISE

I have a Linux VM guest running in my vmWare host that I want to access using Windows PowerShell ISE. I normally can SSH to my VM, but I cannot with Windows PowerShell ISE. When I try to do SSH to my ...
Sri Harsha Kappala's user avatar
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
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
0 votes
1 answer
1k views

Pick up 2 file extensions in a directory using FileSystemWatcher

I am looking to pick up only pdf and rtf files but I get a result of "true" when echoing the variable $watcher = New-Object System.IO.FileSystemWatcher Write-Host "First line of the script, getting ...
mdr's user avatar
  • 1
0 votes
4 answers
23k views

Simple batch file fails on Windows Server 2012

On a Windows 2012 Server, from a logged-in Administrator (local and domain), created a batch file "test.bat" by redirecting console input into a file: echo Hello When run from PowerShell cmd prompt ...
user340089's user avatar