0
votes
0answers
50 views

Need a PowerShell analog to the following command

I Need to repeat the following shell command on a windows server 2012 that uses powershell. Found that start command was nearly the same but I need it to be powershell like. The command (it runs in ...
1
vote
1answer
78 views

Grep analog in Powershell

I'm trying to make a port for a project from linux to MS Server. The problem is that there is grep command with special options grep -c string and grep -e which I need to convert. Found that similar ...
1
vote
2answers
2k views

Is Windows Powershell as powerful as terminal of UNIX/Linux? [closed]

I've been wondering if Windows Powershell is as powerful and efficient as Linux' terminal. People offline tell me, without explaining much, that Windows Powershell is an attempt to make UNIX ...
1
vote
2answers
311 views

Measure a process' run time in Windows and Linux

I'm writing a program that performs certain optimizations on an executable file and am looking for a way to measure the time the executable took to run. I've been using a script that measures the ...
1
vote
0answers
352 views

Remote commands over SSH with Windows PowerShell - Protection against disconnection

I am planning to connect to remote Linux hosts via SSH and call scripts with Windows PowerShell SSH. As far as I understand, if the SSH connection is lost (timeout or connection reset) whilst the ...
0
votes
1answer
233 views

How to switch between 2 ethernet NIC with Windows Powershell or coding in a Linux environment?

These are the linux routing commands I had used so far. #!/bin/sh # time checks in second SLEEPTIME=58 #IP Address or domain to test ping. TESTIP1=198.168.1.0 TESTIP2=198.168.1.1 #Ping timeout ...
4
votes
1answer
382 views

Is there an analog of Bash's Ctrl+Z & fg in Powershell?

I find the combination of Ctrl+Z with subsequent fg on Bash very handy, it's like a command line analog of alt+tab, so I can switch from viewing one file to the output of a running process etc. Is ...
7
votes
4answers
4k views

Windows PowerShell equivalent to Unix/Linux `pwd`?

In follow-up to the cmd.exe question, what is the PowerShell equivalent to echo %cd%, or Linux/Unix pwd?
5
votes
1answer
4k views

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 ...
16
votes
6answers
14k views

Linux “Top” command for Windows Powershell?

I am looking for a PowerShell cmdlet that can provide similar functionality to the Linux Top app. Something that refreshes at some given interval and displays the process list with CPU % util. I have ...
0
votes
5answers
2k views

PowerShell not displaying Unix colors

I use various Linux programs on my Windows machine; some of them have colorized output. GnuWin32 and so forth. However, Windows PowerShell does not support Linux colors; it gets a message like ...