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.

0
votes
0answers
9 views

Monitor folder and move files automatically

Is it possible to create a batch file or a PowerShell script that can monitor a folder every 'x' minutes and move files in that folder to another folder automatically if the name of the files have a ...
0
votes
0answers
18 views

Is it possible to catch cmd.exe output format (and maybe colors) in Powershell?

If I run ng build -environment=localprod --base-href /Angular5Starter/ in command prompt I receive the following output:However, if I run the same command from Powershell:$ngBuildCommand="ng ...
0
votes
0answers
17 views

How to restore default cmd behaviour in Windows 10?

In Windows 10, when I used to type cmd in Run. The PowerShell was used to open inside black cmd like window. My friend has somehow made cmd open cmd.exe, which was default in the previous version of ...
0
votes
0answers
14 views

Set the display of Unicode filenames in Powershell

I have a folder on Windows that contains files whose name contain unicode extended characters (simplified chinese). I'd like to grab a list of these files. Of course, cmd won't display them correctly, ...
0
votes
0answers
19 views

List Unicode filenames in Powershell [duplicate]

I have a folder on Windows that contains files whose name contain unicode extended characters (simplified chinese). I'd like to grab a list of these files. Of course, cmd won't display them correctly, ...
-1
votes
1answer
58 views

Entering cmd into the file explorer address bar not working

I was trying to open an instance of command prompt by typing 'cmd' on the windows explorer's address bar and pressing Enter but nothing happens.Normally, an instance of the command prompt with the ...
1
vote
1answer
43 views

Make WinSCP commands run synchronously in PowerShell

I'm trying to use WinSCP to script a directory synchronization against a WebDAV location. I'm running it like this from PowerShell:.\WinSCP.exe -log=.\winscp.log -command "open davs://username:...
0
votes
2answers
72 views

Powershell how to get a list of running processes and run them through the MD5 algorithm [on hold]

Hi i need to be able to get a list of every process running on my windows 10 and run them through the MD5 algorithm. Is there a way to do this automatically in powershell?Any help is very much ...
0
votes
2answers
90 views

windows powershell displaying CPU percentage and memory usage

I am able to use the answer CPU percentage.While(1) { $p=get-counter '\Process(*)\% Processor Time'; cls; $p.CounterSamples | sort -des CookedValue | select -f 15 | ft -a} Now I'm having problems ...
0
votes
0answers
27 views

Combine two text files using Powershell [on hold]

I have two text files and I need to combine them into a new file in the following fashion:Input File1.txt:black yellow orange pink Input File2.txt:%mask%st1 via%mask% rue%mask%3 %...
1
vote
0answers
45 views

Powershell: use a group of dynamically added commands in new window

I am struggling with something that should be obviously simple but seems not so straightforward to solve. I have a dynamic sequence of powershell commands to run. It is a part of some templating I ...
0
votes
0answers
71 views

Return value in powershell script stored in string not utf8

I'm trying to extract tables out of a pdf using tabula and powershell. When I enter the command directly in the powershell console, I get the expected result displayed (in utf8 with umlaut-symbols)...
-1
votes
1answer
56 views

Programmatically getting an executable's Certificate Details

It is possible to somehow programmatically export a file's digital certificate's subject if the certificate itself is not installed on the workstation but is only used to sign that specific file?I ...
0
votes
0answers
19 views

PowerShell - Monitor WindowSize of a running script

I have a script with a simple UI based on Write-Progress.As an example, a seperator:$ui_seperator='_' * (Get-Host).UI.RawUI.WindowSize.WidthI would like to adjust this seperator whenever the ...
1
vote
1answer
30 views

Activation of WSearch in Windows Server 2012

I want to activate indexing service so that I can start programs by pressing the Windows key and typing the program name. I read that on Windows Server 2016 this is done by issuing this command in ...
0
votes
1answer
23 views

Office365 PowerShell logs

While running a PowerShell command for Office365, one of my colleagues got this error:The running command stopped because the preference variable"ErrorActionPreference" or common parameter is ...
1
vote
1answer
33 views

How can I limit the amount for input? Powershell

How can I limit the amount for input? $M=Read-Host -Prompt 'Input your MM' $D=Read-Host -Prompt 'Input the DD'$Y=Read-Host -Prompt 'Input your YYYY'I want to limit how many characters you ...
0
votes
0answers
34 views

PS Alias command with output to .csv

Im trying to run an alias command and have it spit out the results into a .csv. Ive got the command to run, but unsure of the syntax to add the export command. Can someone assist with this?The ...
0
votes
0answers
37 views

powershell Internet Explorer com object doesn't work in script

So I'm trying to print a specified webpage on a specified printer, on windows. (developing on 7, I'll probably ultimately deploy this to windows server 2008). I'm told that the way to do that is to ...
0
votes
0answers
43 views

robocopy to Drive File Stream Fails in powershell but not at command line Error 5

When I run the robocopy at an admin command prompt it runs successfully.C:\Users\StoreMgr>robocopy"C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale12.0\Data\Paracept" "G:\My Drive\...
0
votes
0answers
26 views

MS Exchange Server: getting past the 5000 character disclaimer limit

We are making an email signature which uses both plaintext and HTML formats.I am doing this using the Mail Flow rules to make a disclaimer and I need to add an image logo into the signature using the ...
0
votes
2answers
141 views

How to easily find files with no extension using Windows

I have some files on my Hard Disk Drive that have no extensions whatsoever. It is very hard to find them manually, I really don't like the fact that I would need to replace my mouse sooner because of ...
0
votes
1answer
35 views

Uninstall PowerShell 2

I have recently installed PowerShell 6:http://github.com/PowerShell/PowerShell/releasesHowever I noticed that PowerShell now installs to:C:\Program Files\PowerShellWhile I am still left with ...
1
vote
1answer
22 views

Search all Exchange 2013 mailboxes via powershell

I have a long list of email addresses/domains and I need to check if any of our mailboxes have received emails from them.I can find how to search using the GUI but that will take too long.Found ...
0
votes
1answer
28 views

Is there a way to run regedit on several Win10 remote computers without UAC?

Is there a way to run regedit on a bunch of remote computers without UAC popping up on Windows10? the /s on command line is not working on my windows 10 test computer (I fell certain that WILL work on ...
0
votes
0answers
19 views

powershell color options are not complete

I have changed the powershell colors according to the properties menu. However, for some linux folder (due to the permission), the colors are ugly. How can I fix that? See the picture below
2
votes
0answers
83 views

Windows control pannel sharing protected by password radio button

How i can manage 'Sharing protected by password' option (radio button) in Windows control panel with powershell ?I can modify the network profile type with :Set-NetConnectionProfile -...
0
votes
0answers
30 views

Unable to open the Hyperlink in the powershell output outside Server

I am using the PowerShell Code below which is working fine .Only part which was not working is the Hyperlink part . Though it is working fine and giving me the output , I could not open the ...
2
votes
2answers
55 views

Give Powershell the output of a command as if it was a string

I'm using Powershell to script the deletion of printers and their drivers. I'm calling the Printing_admin_scripts that are located in the System32 folder on Windows 7+. These scripts generate a LOT of ...
0
votes
1answer
26 views

New to powershell and my foreach keeps failing. Trying to iterate over a list of cert files but it fails. Probably simple

Problem:When I import a cert individually, outside of a foreach, it prints the thumbprint as needed; however, I need to iterate through a list of .cer files on a fileshare so that I can run them ...

153050per page