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
103 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
786 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
455 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
21 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
22 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
23 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
51 views

Powershell Window Tiny at High Resolution

I have recently bought a Lenovo Yoga 3 ultrabook which has a screen resolution of 3200 x 1800. My cmd window and Powershell window are tiny at this resolution. I have changed the size of the normal ...
1
vote
0answers
64 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
105 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
75 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
19 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
64 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
330 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
35 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
99 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
319 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
289 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
87 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
185 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
495 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
179 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
364 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
609 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
645 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
625 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
170 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
167 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
431 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
309 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
902 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
311 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
15 views

Truncate a log file by datetime using Powershell 2.0

We have a simple log file. It gets too big or the entries irrelevant as they age. Entries have a datetime prefix similar to this: 01/22/15 01:54:17 -I- Start processing stuff Occasionally the ...
0
votes
0answers
24 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
34 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
9 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
16 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
15 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
14 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
22 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 ...
0
votes
0answers
11 views

Tracking Windows Firewall Rules on multiple servers

I have a need to monitor a large number of windows firewall on servers. E.G. Have there been any changes to any of the policy rules in the last month? I have looked into the following question but ...
0
votes
0answers
45 views

Can't click application with Powershell

I am trying to automate clicks on a software for which I do not have the source ... So I do not have a choice. When I execute my code, the mouse moves well, but the clicks do not perform on my ...
0
votes
0answers
31 views

How do I get Bits transfer to download a file for me?

I've been trying to get Windows PowerShell on Windows 7 to download files for me using Bits transfer. The file I was downloading was Marvinbeans 15.1.9.0 from ...
0
votes
0answers
47 views

“Change PC Settings” link doesn't work in Windows 8.1

Okay, Today I've upgraded from Windows 8 to Windows 8.1 through Store, the upgrade finished successfully and installed as well, I tried to open the PC settings from the Charms Bar, when I pressed on ...
0
votes
0answers
37 views

Set-AzureStorageAccount - GeoReplicationEnabled parameter will be deprecated in a future release

I get the following warning in powershell for this command: Set-AzureStorageAccount -StorageAccountName $storageAccount -GeoReplicationEnabled $false WARNING: GeoReplicationEnabled parameter ...
0
votes
0answers
9 views

automate forefront identity manager 2010 with Power Shell

I have a VM running server 2012 with MS Forefront identity Manager 2010 R2 with the purpose of syncing our on prem AD to azur AD for office 365 Every 3 hours the service runs Active Directory ...
0
votes
0answers
20 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 ...