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.

66 questions
360
votes
12 answers

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 a file from a given URL with HTTP GET. For…
290
votes
14 answers

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

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 of Notepad and save an empty file. So is there a…
jsalonen
  • 9,241
41
votes
3 answers

Is there a way to disable script echoing in the PowerShell ISE?

Whenever I want to test execution of my script in the PowerShell ISE, the entire script gets echoed to the console before it executes. Then, any actual output from the script gets written starting on a line immediately afterward. This puts a lot of…
Iszi
  • 14,163
36
votes
5 answers

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 to use this OS I configured and enhanced the…
28
votes
14 answers

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-Host "Enter file server to search" $FolderList =…
The Woo
  • 477
9
votes
2 answers

Remote powershell permissions restricted to machine

I am unable to execute powershell scripts on a remote server, but only on my current machine - please help. Running the following script to give a list of a temp directory on the remote server works from other machines to the same server with my…
8
votes
1 answer

How to lock Powershell ISE console output scroll?

I'm using Powershell ISE for running some batch scripts. The outputs will be long and these programs will run for quite a some time. The problem I'm facing is I'm unable to lock the console output to any position to be able to read some errors that…
6
votes
3 answers

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' PowerShell v3 in Windows 7 to that of Windows 8? Have…
Guy Thomas
  • 3,348
5
votes
1 answer

Is it possible to install PowerShell 3 on a Windows Server 2003 or 2003 R2?

On a Windows Server 2003 rig (which already has .NET 4 but no 4.5 on it) that is to be expired before the end of the year, I'd like to run a few PowerShell 3 scripts on a scheduled base as the scripts depend on functionality introduced in PowerShell…
4
votes
0 answers

Changing current culture

I need to change the current culture for a script and nothing I tried works. I've tried using the Set-Culture cmdlet. I've trued setting [System.Threading.Thread]::CurrentThread.CurrentCulture. Is this at all possible?
4
votes
4 answers

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 install .net 4 full profile. However, .net 4 won't…
Keltari
  • 75,447
4
votes
2 answers

How do you install the NETTCPIP from Powershell 3.0 in Windows 7.0

How do you install the new NETTCPIP from PowerShell 3.0 in Windows 7.0? I've double checked what I've got installed with $host.version and it's showing as 3.0, so why aren't the new NET TCP/IP cmdlets showing ?
SteveC
  • 2,193
3
votes
1 answer

Is Exchange User Out of Office?

Finding Users Who Have "Out Of Office" Enabled In Exchange 2010 describes how to use PowerShell to determine if a user has his/her out-of-office setting enabled. However, it requires the use of the Exchange Management Shell. Is there a way to do…
Craig
  • 939
3
votes
1 answer

"Could not open a connection to your authentication agent."

Something has happened to my Windows Powershell, so whenever I open it there is a big long pause and then it says "Could not open a connection to your authentication agent." What is an authentication agent, and why is Powershell trying to open a…
Moss
  • 699
3
votes
2 answers

Recall PowerShell command for edit

I know about the Invoke-History command (alias r) to recall and execute a previous command, e.g. r 29 but is there a way to recall command 29 but not execute it, i.e. put it into the current line you can edit before running? A bit like pressing…
1
2 3 4 5