Microsoft’s command-line scripting language. V 2.0, which was introduced in Windows 7 and Server 2008, features remoting.
Questions tagged [powershell-2.0]
76 questions
348
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…
jsalonen
- 8,843
- 14
- 35
- 40
48
votes
7 answers
Show human-readable file sizes in the default PowerShell ls command
How can I modify the default ls (Get-ChildItem) in PowerShell so that it displays human-readable file sizes, like ls -h on a *nix machine?
ls -lh does simple logic with the file size, so that it shows bytes for really small files, kilobytes for…
Tom Mayfield
- 1,447
- 1
- 12
- 13
12
votes
5 answers
Powershell script to list scheduled tasks on remote systems
I want to write a PowerShell script that lists all Scheduled Tasks on remote systems, and includes the user account which will be used to run each task.
The local system is running Windows 7, with PowerShell 3.0. The remote systems range from Server…
Ob1lan
- 1,906
- 3
- 18
- 35
11
votes
2 answers
Is there a way to run git within Powershell?
Is there a way to run git within Powershell?
I have a Windows 7 box with msysgit. I'd like to have a single shell to also run all my git commands as well as play around with Powershell scripting.
spong
- 2,029
- 6
- 28
- 40
10
votes
1 answer
Running msiexec with PowerShell
I'm try to run msiexec in PowerShell but I keep getting an error message. If I run it from cmd then it's all fine.
Can someone please let me know how I can run this command in PowerShell?
This is the command I have typed in PowerShell:
msiexec.exe…
user630320
- 123
- 1
- 2
- 8
8
votes
4 answers
Is Windows PowerShell 2.0 installed by default on Windows 7?
http://msdn.microsoft.com/en-us/library/ff637750.aspx claims
Windows PowerShell 2.0 needs to be installed on Windows Server 2008 and Windows Vista only. It is already installed on Windows Server 2008 R2 and Windows 7.
However, powershell.exe lives…
kenwarner
- 2,427
- 5
- 25
- 29
8
votes
1 answer
NetBios lookup from command line/powershell in Vista
Am trying to resolve an IP address to its Netbios name via the command line or via powershell. the system I am using is Vista SP2 so I do not believe NBLookup.exe will work. are there any alternatives to this?
user15968
8
votes
3 answers
Using powershell call native command-line app and capture STDERR
I'm using a port of a cygwin tool on Windows which writes normal status messages to STRERR. This produces ugly output when run from PowerShell:
PS> dos2unix.exe -n StartApp.sh StartApp_fixed.sh
dos2unix.exe : dos2unix: converting file StartApp.sh…
yzorg
- 745
- 2
- 6
- 20
7
votes
3 answers
Where can I download Powershell 2.0 for Windows 7?
I have spent the better part of a day hunting the Internet looking forr a way to download Powershell 2.0 to my already Win7 environment. Windows 7 is supposed to come with PS 2.0 however - I have 1.0.
How do you upgrade Powershell when there is no…
TxGeekGirl
- 71
- 1
- 1
- 2
6
votes
2 answers
Powershell: Get inital character string from file name and create directory from string, then move files
I have a folder with the following file…
JRG
- 61
- 1
- 1
- 2
6
votes
2 answers
Any quick way to call a directory using an environment variable in Powershell
Say I have a user environment variable named p and it's value is the path where I store my projects.
In Command Prompt you can use them to quickly access a particular directory from anywhere on the command line:
cd %p%
This doesn't work in…
dads
- 73
- 5
6
votes
1 answer
WinRM - what it is and how to use it?
During installing updates I noticed 'PowerShell 2.0 and WinRM' update. Upon reading some Microsoft & Wikipedia pages I read that it is remote management system that runs on SOAP and that it is useful for remote technical support.
I become interested…
Maciej Piechotka
- 815
- 1
- 8
- 30
5
votes
2 answers
Archive of Microsoft's Powershell 2.0 Documentation?
When looking up information on a specific cmdlet built into Powershell on Microsoft Technet, you can choose between version Powershell versions 3.0, 4.0, and 5.0. See this page for an example -…
romellem
- 245
- 4
- 11
5
votes
1 answer
How can I use PowerShell to parse filenames and rename them?
I've got a project analyzing logfiles. Someone, in their infinite wisdom, is naming the logfiles MM-DD-YYYY-HH-MM.LOG (e.g., 10-31-2012-18-00.LOG for 6:00pm on October 31, 2012).
My first order of business is to create something significantly more…
dwwilson66
- 1,719
- 13
- 30
- 43
5
votes
3 answers
How to run "winrm quickconfig" on all LAN computers remotely
I want to start doing my remote LAN work using powershell, but it seems I need to run winrm quickconfig on all LAN computers before I can remotely connect to them.
How can I run that command on all computers without having to manually go to each…
oshirowanen
- 1,690
- 14
- 62
- 79