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.

3 votes
2 answers
640 views

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 ...
munrobasher'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
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
1 vote
1 answer
21k views

get-vm - wasn't recognized as name of cmdlet

We are trying to write a powershell script to start/stop our vms, but the get-vm command isn't working. The error message is get-vm: the term 'get-vm' is not recognized as the name of a cmdlet, ...
Michele's user avatar
  • 190
0 votes
2 answers
2k views

Why does running Powershell script line by line work, but the same thru executing script file - does not?

In Windows 7 Prof, executing in Windows Powershell_ISE (as administrator) the Powershell (ver. 3) commands produces expected result (of adding a domain user to local/machine Administrators group) but ...
Fulproof's user avatar
  • 101
0 votes
1 answer
1k views

Powershell Script to Return Directories Without a Zip File Created/Modified Within the Last 7 Days

I have a series of folders on a server that needs to be regularly checked that they are being backed up correctly. We like to have at least 1 backup in that folder that is no less than 7 days old. The ...
cyborgcommando0's user avatar
0 votes
1 answer
516 views

Remotely start VLC w/Salt Stack

Using Salt Stack, how does one remotely start a Windows program on the console screen? In other words, from my Salt Master (CentOS based), I want to push this sort of command to Windows 7 (with Salt ...
Roger's user avatar
  • 151
8 votes
1 answer
4k views

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 ...
Buddha's user avatar
  • 495
3 votes
1 answer
67 views

Installing Windows patch from command line gives BSOD but fine if double clicked?

I'm trying to programatically install some Windows updates that were manually downloaded. If I double click the .exe and run through the install manually - everything works fine. If I, however, use ...
nullByteMe's user avatar
0 votes
2 answers
5k views

How to Enable Data Deduplication in Windows 8.1 client

How can i enable Data Deduplication in Windows 8.1 x64 client. http://weikingteh.wordpress.com/2013/01/15/how-to-enable-data-deduplication-in-windows-8/ The above link discusses the same for a ...
Ayan Mullick's user avatar
42 votes
3 answers
97k views

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 ...
Iszi's user avatar
  • 13.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
1 vote
2 answers
1k views

Running a powershell script at startup

I am writing a script to remove a computer from the domain, rename it, then add it back. It works fine when I set the trigger to AtLogOn but when I switch to AtStartUp I run into some issues. I get ...
RandellK02's user avatar
9 votes
2 answers
22k views

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 ...
WestDiscGolf's user avatar
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

15 30 50 per page