Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
0answers
24 views

How do I change the computer and user names during an automated installation?

I try to set the names of the computer and the user during an unattended.xml based installation. We're talking the last boot, before the user accounts get activated and the login screen appears. This ...
0
votes
1answer
34 views

Is there a Powershell way to convert evt to csv?

I have many log files from legacy Operating Systems that need to be converted to csv. Is there a way to do this using Powershell?
0
votes
0answers
44 views

Many processes such as git and node are running 10x too slow on Windows 10

Several command-line programs seem a little slow on a PC. How can I troubleshoot? For example, on this PC, It takes over a half-second to run git status: PS> for (;;) { Measure-Command { git ...
0
votes
0answers
24 views

Setting to use git-bash as default shell when connecting remotely via OpenSSH to Windows Server 2016

The Powershell OpenSSH website has good instructions on how to install and use OpenSSH. These include how to "Configuring the default ssh shell (optional)" If I elect to use git-bash instead of ...
0
votes
1answer
32 views

How do I find files containing “string A” and NOT containing “string B” and output their names into a file?

I was looking at this other question, but wasn't sure how to combine these queries together. I started off with this, but it doesn't seem to work: findstr /S /M "string A" *.vb | findstr /S /M /V "...
-1
votes
2answers
36 views

How to print contents of a directory and save it NOT in the directory?

I have a folder which freezes the whole system when I open it (probably there is a corrupted file). Luckily, I'm just interested in the names of the files in the folder. So, how do I create a dirlist....
0
votes
0answers
19 views

Where does $HOME variable comes from and why I can't change it? [duplicate]

I know this is stupid, but last 30 minutes I am trying to change $HOME variable to other value, doing $Env:HOME = "desired value" did nothing for me, I tried couple other suggestions from the first 10 ...
0
votes
1answer
58 views

How to know the bluetooth verion in my laptop by CMD or PowerShell

As this answer, I know how to find the version of my built-in Bluetooth device. But could we just by CMD or PowerShell do know such information?
2
votes
2answers
99 views

How to run a PowerShell command silently?

I want to execute a PowerShell command silently with no blue screen. How can I do this from the PowerShell command? I tried this. . . PowerShell.exe -windowstyle hidden but it didn't work—the ...
0
votes
1answer
32 views

Delete “windows Personals certificate” from command line

I try to remove certificate from command line: IMAGE i run this code but is not deleting C:\Users\A\Desktop>powershell -Command Get-ChildItem Cert:"CurrentUser\My\...
0
votes
0answers
32 views

windows 10 1709 disable updates powershell [duplicate]

How to disable windows update in windows 10 1709? I have tried New-Item "HKLM:SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Force Set-ItemProperty -Path "HKLM:SOFTWARE\Policies\Microsoft\...
0
votes
0answers
44 views

PowerShell command for ffmpeg to process items in a folder recursively

I'm trying to figure out what PowerShell command [or script if necessary] might allow ffmpeg to recursively traverse a directory, pull stills via the -vf flag, and put all the stills into a folder ...
4
votes
3answers
107 views

How to get OS Version through Powershell with WMI?

Does anybody know how to get the OS Version like this: OS Version: 1607 With using Get-WmiObject? Couldn't find this Informatin at all..
0
votes
0answers
46 views

Remove applications Windows Connect & Windows Mixed Reality Portal

I was about o remove Microsoft.PPIProjection and Microsoft.Windows.HolographicFirstRun. Running appropriate commands in PowerShell I got: Remove-AppxPackage : Deployment failed with HRESULT: ...
3
votes
2answers
72 views

Filename Extract - Powershell

I’m having trouble extracting some data from a filename as it seems to be adding a space to the end of the extracted name even if I try using the .trim() trick to remove it doesn’t work. I have also ...

15 30 50 per page