Windows PowerShell is a command line shell and scripting language for Windows that supersedes the CMD.exe shell and batch language. PowerShell is also an automation engine for Windows that provides functionality similar to Windows Script Host and VBScript.

learn more… | top users | synonyms

3
votes
0answers
14 views

How to know the file history that has been transferred from pc to usb device or vice versa?

When I want to know that if any usb device that has been plugged in a pc recently, I write this command in Windows Powershell. Get-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Enum\USBSTOR\*\* | ...
3
votes
0answers
97 views

What are AMT sessions used for?

I'm familiar with Powershell sessions (ie Enter-PSSession) and what they can be used for. I'm attempting to remotely manage power through vPro, so I've been messing around with the IntelvPro module ...
2
votes
0answers
740 views

Pin a tile (App or shortcut) to a specified position on Startscreen (Windows 8 / Powershell)

The title is nearly the whole question. I am searching a solution to pin an installed app or desktop application to the windows 8 startscreen. I am in an enterprise environment and the purpose is to ...
2
votes
0answers
407 views

How to enable CredSSP

I am trying to use the -Authentication CredSSP switch when entering with PowerShell (2.0) in order to remotely launch a Script that can write to files or set up new PSDrives. I get an error when I ...
2
votes
0answers
439 views

PowerShell stops executing commands/programs

Sometimes my PowerShell stops executing programs and I have yet to find out why. In this state, when I enter the name of an EXE file, the PowerShell immediately returns to a command prompt without ...
1
vote
0answers
49 views

How do I gain access to my C: Drive after completely locking it down?

I know the title might seem completely ridiculous but please read this before being biased. Okay, so I got myself into a real squeeze. I installed windows 10 technical preview for Enterprise on a ...
1
vote
0answers
17 views

PowerShell have Tab only fill in partial matches instead of first selection

I'm having trouble adapating to the behaviour of PowerShell tab completion from bash tab completion and wondering if there is a way to change it. In PowerShell when I press tab it expands to the ...
1
vote
0answers
55 views

Unable to send files over 1 MB via FTP on Windows

I tried to send multiple files via FTP commands using simple batch script. It works fine when the file size is less than 1 MB but when the file is larger than 1 MB I get the following error log. ...
1
vote
0answers
32 views

Optimize a folder for music/video via powershell

I would like to know the command to set via powershell the option 'optimize this folder for' to 'Music' or whatever on a folder. I didn't find anything approaching in the Attributes list of folder.
1
vote
0answers
18 views

“Autoscroll” Pdfs one by one from a “play-list”/directory

Is there a way to achieve this: open multiple .pdf from a "playlist"/given directory one by one in the same window, with auto-scrolling enabled? (Explanation: 1st pdf opens- autoscrolls to the end- ...
1
vote
0answers
22 views

How can I get Emacs to run correctly in a Windows console with codepage 65001 (UTF-8)?

When my codepage is set to 65001 (UTF-8) in a Powershell terminal, emacs -nw displays garbage. When the codepage is set to 437, emacs -nw works. I would like to be able to run emacs -nw (much quicker ...
1
vote
0answers
57 views

Automation of control panel > Wireless Network settings(802.11 modes) through Powershell or any other automated procedures

I want to automate the "Control Panel\Network and Internet\Manage Wireless Networks" page in Windows through Powershell or any other automated procedures, to change my wireless adapter's mode to all ...
1
vote
0answers
309 views

Get-Command missing in Powershell after installing Version 4

Something must have gone wrong by installing dot net framework 4.5 and Powershell 4.0 I tried repair install of framework 4.5 and even deinstallation and reinstallation, but it doesn't help. PS ...
1
vote
0answers
112 views

Powershell - Elevation Loses Current Directory

One problem leads to another! User help just fixed one issue, which led to another as I continued working on this script. My script runs a check to see if the current user is an Administrator as ...
1
vote
0answers
32 views

How to create many directories with access control by using powershell 2.0

I am trying to learn the win2008 r2 In the win2008 r2, i create many student users . So i need to create the independent directory for storage file (Read ,write,execute). In dc C:\place\ i create ...
1
vote
0answers
83 views

Read the COM1 output of a Hyper-V guest system

I have a guest O/S that writes debug output to the COM1 UART. This port is virtualized by the Hyper-V host. The Hyper-V Server allows only a redirection to a "named pipe". I want to read what the ...
1
vote
0answers
1k views

How to copy file names matching a pattern in powershell

I am new to powershell. I need to copy the whole folder structure from source to destination with filenames matching a pattern. I am doing the following. But it just copies the content in the root ...
1
vote
0answers
287 views

Can't create a COM object in a powershell script running as a scheduled task

I have a powershell script I'm trying to run as a scheduled task. Its purpose is to perform a nightly export from an Access database, then upload the exported flat files to an SFTP destination. The ...
1
vote
0answers
263 views

Why does FFmpeg append blank black video to the end of my MP4 files when compressed from MOV?

I have several large MOV files that I want to compress to MP4. Unfortunately, when I use FFmpeg, it appends lots of black (blank) video at the end. (The destination file is longer than the source ...
1
vote
0answers
59 views

CredSSP - How does it work?

Been trying to find a web site that lists the steps carried out to perform authentication - but to date have not found one. The reason being is that it is broken. Get 500 server error and have not ...
1
vote
0answers
80 views

How to pipe a group of files through a .exe using powershell?

I am currently using a .exe named "vbadecompiler.exe" to process a group o ".xlsm" files. Those are to many to process manually therefore Powershell seems like the answer. My current attempt is the ...
1
vote
0answers
177 views

Trying to make a symbolic link to a Powershell script

I'm trying to create a symbolic link with mklink through a Powershell script to a Powershell script on a remote server. this link should come on the desktop of all users. if(!(test-path -path ...
1
vote
0answers
462 views

Can not create process with elevated permissions from LocalSystem account

I am running a build server on windows server 2008 (team city). The builds are run by the Team city agent that runs as a windows service under LocalService account. One of the builds need to copy a ...
1
vote
0answers
162 views

Extend partition windows powershell

I want to create a Windows Powershell script to extend my partition through WMI (remotely), IP Address of my host id 10.10.10.10 $pass = convertto-securestring "abc123#" -asplaintext -force $mycred ...
1
vote
0answers
331 views

copy|move sparse files on NTFS with Windows

How can I copy or move a sparse file from one NTFS volume to another NTFS volume while maintaining the sparseness using the native tools included with Windows? If there is no way to do this with the ...
1
vote
0answers
572 views

Install Windows Store App package (*.appx) for all users

I know there are several posts where users want to install Windows Store Apps for all users. Answers were to use DISM. In my case I can not use DISM because all clients are already deployed. If a ...
1
vote
0answers
624 views

Set Windows Commandline (or PowerShell) to connect to internet via Proxy

I work behind a very strict firewall but I am able to browse (most) of the internet just fine with FireFox and I.E., however there are specific proxy settings to have. Namely, an autoconfig *.pac link ...
1
vote
0answers
588 views

Import a CSV File in a database w/ powershell jobs

I am trying to import a CSV file into a database with PowerShell but so far I have no luck. This is my code (based on this source): Start-job -Name 'ImportingData' ` -InitializationScript ...
1
vote
0answers
163 views

From within a bash, bat, or powershell script is it possible to get the last IM message sent to you within Lync?

I use Outlook and Lync 2013. I have msys bash installed, and I have a script that runs a while(1) loop that sends Growl notifications whenever an IM is sent (it reads the ugly Lync log files). I'd ...
1
vote
0answers
154 views

How do you correct the path separators in git when using powershell

I'm using the github powershell addon to run git on windows. Everything seems to work fine except for when I'm adding submodules. In this case, the powershell addon is adding in paths with \\ as ...
1
vote
0answers
417 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 ...
1
vote
0answers
268 views

Windows PowerShell doesn’t use my SSH keys

I have a Git repository hosted on Bitbucket. I can connect to this using Git Bash terminal, which uses my public key defined in my H: drive (network drive), but if I try the same from Windows ...
1
vote
0answers
27 views

Piping Output asks for parameters

In the CLI itself $foo = (Get-ADGroupMembers -identity"blah_SEC") echo $foo Works. But when I do the same exact thing in a .ps1 file it says the parameters are missing and prompts me to input ...
1
vote
0answers
287 views

How do I add fileversion to an object containing a number of filenames?

I have loooked for an answer to this question, but cannot find out how to add into an object creating a data-set pair of file name and version, and the related original wsp or cab filename. I have a ...
0
votes
0answers
13 views

How do I regain connectivity to a Windows Server after calling Powershell cmdlet Remove-NetFirewallRule?

I have some servers on AWS cloud. I accidentally invoked the PowerShell command Remove-NetFirewallRule and this has completely locked me out of the server. The server is joined to a domain. I have ...
0
votes
0answers
23 views

Powershell Refresh Script

This is a fairly simple script, but it doesn't always work. It worked once today, the first time I ran it. I believe it isn't opening the files in the path I specified on subsequent runs. I'm not ...
0
votes
0answers
25 views

WmiEvent for any usb device

I am following this answer, which contains Register-WmiEvent -Class win32_VolumeChangeEvent -SourceIdentifier volumeChange and $newEvent = Wait-Event -SourceIdentifier volumeChange This works ...
0
votes
0answers
18 views

Get calender entry from public exchange calendar with powershell

We have an MS Exchange 2010 Server named EX01 and a public folder based calender named VenueEvents. I open a remote connection from Powershell to the server using this code: $cred = Get-Credential ...
0
votes
0answers
56 views

How do I access gzip-compressed data from a PowerShell Invoke-WebRequest command, when the “Accept-Encoding: gzip” header is set?

I'm learning about response compression in IIS and I'm testing my configuration with various tools. It appears that several of these tools either auto-decompress the response, or always send the ...
0
votes
0answers
21 views

Get-childitem via PSSession

can someone explain me this behavior? I create a test folder, lets say c:\tmp\testing\folder1 I disable inheritance on folder testing, and remove all ACL entries. So i get "Access denied" when i ...
0
votes
0answers
20 views

Finding a short cut to "Connect To Network

Is it possible to create a shortcut for Network --> Properties-->Connect to a network in Windows 7? Connect to a network is available in Control Panel\All Control Panel Items\Network and ...
0
votes
0answers
27 views

install cad program (Solvespace) no installer - on Win7-32 ?

Do I run PowerShell msi, exe.,on command line ? any advise where to start would be helpful. I am used to downloading programs with an Win installer. also I am a PC novice.
0
votes
0answers
61 views

Powershell Start-Process fails to start when -Credential argument is added

If I run this in powershell, Start-Process "c:\Python27\python.exe" -WorkingDirectory "c:\wd" -ArgumentList "-m SimpleHTTPServer" It can start the python process as expected However when I add ...
0
votes
0answers
44 views

PowerShell issues with spaces in directory names

PowerShell has issues with spaces in directory names. I am trying to execute a file in the same directory as the PS1 script like so: .\getGravatarsForGource.pl It works fine when the directory ...
0
votes
0answers
41 views

GnuWin32 / sed unexpected behavior in Powershell

I am using GnuWin32 tools on Windows Command Line/Powershell. What is see: 11:15 enlil D:\Users\x> Get-ChildItem .gitconfig | sed "s/ */ /g" D i r e c t o r y : D : \ U s e r s \ x M o d ...
0
votes
0answers
21 views

How to get HDD space information through VMM?

I have Virtual Machine Mangager with list of virtual computers and I need information about their HDD spaces - used and free space on all hard disks. I am exploring cmdlets for VMM, but I can't find ...
0
votes
0answers
51 views

ping results are opened in new window when using powershell 4.0

Whenever I ping any IP using PowerShell, a new window pops up which displays the output, see the screenshot below. Please help in restoring to default i.e. ping results shown in the same PowerShell ...
0
votes
0answers
29 views

Setting up SQL Express on Azure VM

I'm trying to set up SQL express on an Azure VM. I already have SSMS 2012 installed but I cannot access .\SQLEXPRESS. This MSDN discussion says: run powershell script "ConfigureSQLExpress.ps1" ...
0
votes
0answers
24 views

wmic inside a bat script

I've been searching for a long time for a solution for this, but no success. I have to say I am not very familiar with BAT scripting. Anyway, I am trying to check if a process is running and if so, ...
0
votes
0answers
71 views

Add line to text file after specific line with PowerShell

I have to edit remotely a file called nsclient.ini on hundreds of computers, the file contains some command definitions. For example: [/settings/external scripts/scripts] check_event="C:\Program ...