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
108 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
801 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
463 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
33 views

Issues Adding Data to an XML Document w/PowerShell

Trying to add an element to an existing XML file using PowerShell. I have looked at several examples and my 'add' script works but, it is misplacing the element. Sample of XML I am using: ...
1
vote
0answers
32 views

How to install a network printer on powershell?

I've been trying to install a network printer using Powershell on Windows 7 so that I can automate the setup of our development machines using Puppet. I found a couple of instructions around but none ...
1
vote
0answers
61 views

Excel VBA that calls Powershell ActiveDirectory cmdlet, but Module won't load?

I have a powershell script I use to dump user and computer lists to csv files; it works great and I don't want to touch it much. It uses the ActiveDirectory cmdlet, and the Get-ADComputer and ...
1
vote
0answers
68 views

Get Network Printers From A Remote Computer

I am using this to attempt to get a list of printers on a remote computer: Get-WmiObject win32_printer -ComputerName "$oldPcName" The problem is I only get local printers, not those printers from ...
1
vote
0answers
82 views

Windows Activation Powershell Script

I'm looking for a method to automate activation Windows 7 machines through PowerShell. We get approximately 50 computers a month and it's slowly increasing, so manual activation is no longer possible ...
1
vote
0answers
141 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
79 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
40 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
20 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
26 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
66 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
336 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
37 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
107 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
334 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
317 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
89 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
190 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
507 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
186 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
390 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
636 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
668 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
647 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
176 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
171 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
437 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
323 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
29 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
358 views

Test-Connection slow response

This is probably pretty simple but I ddont understand why test-connection has this behavior If I use the command: test-connection -computername 192.168.1.1 There is about a 3 second delay between ...
1
vote
0answers
921 views

PowerShell script to Associate applications in Windows 8 (possibly employing ftype / assoc)

In Windows XP / Vista / 7, it was simple to re-associate items away from the defaults in bulk by using ftype and assoc as below. This was an important time-saver in system setup to make sure that all ...
1
vote
0answers
317 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
16 views

Is there a Powershell remoting equivalent of using psexec as the system account?

PSEXEC has a -s argument that will "Run the remote process in the System account." I'm currently using a Powershell remoting session as follows: $s = New-PSSession -computerName $server The user ...
0
votes
0answers
33 views

PowerShell script is interrupted by a automatic reboot during unattend Windows installation

I have a problem during the unattended installation of Windows 7. I'm using an unattend.xml file to install Windows. In the unattend.xml, there are RunSynchronousCommand statements to run a PowerShell ...
0
votes
0answers
27 views

How Can i Remotely Install .inf file for FLT Driver

I am using power shell to execute the install.bat on remote machine that install the filter driver. Prob: Script operations such as set registry key executes remotely but .inf file for driver ...
0
votes
0answers
15 views

How to make a github commit be authored by “unknown”/“unrecognized author”?

For fun I'm trying to create an awful git command called "git shove" that basically does this: git add -A git commit -a -m "git shoved" git push --force I would like it also so that the author is ...
0
votes
0answers
33 views

Reflect HKLM/SOFTWARE/Policies registry changes to HKCU/Software/MS/Win/CV/GPOs

Ok so I have a Local Group Policy (under Computer Config, not User Config) to force install extensions in Chrome. This policy needs to run for every user of the computer. The value is going to change ...
0
votes
0answers
27 views

Why does PowerShell give “Access Denied” for Get-Content on a directory?

By accident, I recently tried running Get-Content on a directory. I'd initially thought it was a file because it was named very similarly to a common file I'd expected to be in the location. So I was ...
0
votes
0answers
20 views

Windows PowerShell - SqlServerCmdletSnapin100 Error

I am trying to run the following command through my winodws powershell: Add-PSSnapin SqlServerCmdletSnapin100 But I get the following error: How can I install SqlServerCmdletSnapin100? I can't ...
0
votes
0answers
30 views

Computer does not stay awake after scheduled task

I have a scheduled task that wakes up the computer to run a batch file. However the computer turns back off after some time. I have my computer set to (never sleep) so after waking up from the task it ...
0
votes
0answers
59 views

Windows task scheduler with regular user

I have a powershell script on my network share (\server\dir\my.ps1). if I run this from command prompt (powershell -file "\server\dir\my.ps1") than work as expected. if I create a basic task in the ...
0
votes
0answers
13 views

intermittent reparsepoint attribute

We have a file server with a directory S:\ that is shared out as \\server\share. On the server we have the directories S:\rootDir1, S:\rootDir1\subDir, S:\rootDir2, and a junction ...
0
votes
0answers
21 views

why remote powershell session dose not need password

why remote PowerShell session dose not need username and password? this is very terrible because I feel anybody can connect remotely to my server. I use negotiate authentication method and server ...
0
votes
0answers
33 views

How do I use Powershell to set Delegate permission on a mailbox?

When I add a user to Outlook delegation, using this method I see them in the following powershell command [PS] C:\Windows\system32>Get-CalendarProcessing aaaa| fl AutomateProcessing ...
0
votes
0answers
23 views

EventLog Source “Connect”. No events in EventLog

I'm baffled by this, as I can find no documentation on wether or not "Connect" or "Connection" is some kind of registered keyword for EventLog Sources. I'm trying to create an EventLog Source called ...
0
votes
0answers
37 views

Line wrapping in Powershell ISE Console?

I sometimes write long lines of code as I am playing with things in the PowerShell ISE (v4 on Windows 8.1). I find its console window helpful in many ways, but I'm unable to figure out how to make it ...