Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [powershell]

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
1answer
25 views

I'm looking for some specific events in the Windows Event Log, how can I look for them using Powershell?

The security patches released by Microsoft a few days ago can cause some Bluetooth devices to stop working. The release notes explain how to check whether we will be affected: we have to check the ...
0
votes
0answers
10 views

How can I get the windows console window to span multiple monitors? [duplicate]

Is there a way to make the windows commandline span multiple monitors? I'm trying to view a console application that I've written, but it's output is too large for the default window size, I've ...
0
votes
1answer
48 views

Starting PowerShell 6.2.1 as administrator or user gives different fonts and position

When I open PowerShell from the Start menu as a user and as administrator, the console appears with different font sizes, colors, and position. Starting as a user, I am not permitted to change the ...
0
votes
1answer
15 views

List All event log events in the last n minutes in powershell

After I encounter an error or issue, I'd like to quickly review events for the last several minutes to see if there is any helpful information. The trouble is, I don't know which particular log might ...
2
votes
1answer
21 views

How do I find out what powershell script just ran?

I'm running Windows 10. I was reading a web page, when suddenly a window popped up. I got just enough time to see that it was powershell -- then it opened another window, and both disappeared. I had a ...
-1
votes
1answer
21 views

Powershell-create folder for each file and move file into folder

I want to make exactly the same thing as the link below but written in powershell. Can you help me please? CMD Command to create folder for each file and move file into folder
0
votes
0answers
11 views

What is the right way to use juniper network connection via cli

I've found that Juniper network connection has CLI so the question is how I can determine the: realm and url What kind of logs do I need to search? The main purpose of this action is to make a ...
1
vote
1answer
28 views

Remote wiping a managed computer

I'm an MSP with a client across the country who is selling one of their branches. The computers they have (some Windows 7 and some Windows 10) are also being acquired. The computers are on a domain ...
0
votes
1answer
21 views

How to sort email into two different lists using powershell

In our organization we have users who are setup to have email sent to domains outside of our organization (Mail Users). So their primary email address is different from our standard FQDN. What I am ...
0
votes
1answer
58 views

How to disable Windows Defender via PowerShell on Windows 10 version 1903+?

So, I need to automatically disable Windows Defender for certain virtual machines via a PowerShell script. Previous to the May update, one could set the DisableAntiSpyware and ...
0
votes
0answers
16 views

VSCode Powershell Syntax Highlightning Error/Bug

i got some problems with syntax-highlightning in vscode, specific: powershell. vscode-powershell-syntaxerror-screenshot Themes / extensions: FlatUI Theme Custom CSS Loader Powershell Language ...
1
vote
0answers
21 views

How Do I Check If A Service Exists And If So Execute A Command With CMD

I want to execute the following command if a windows-service does exist: myservice.exe uninstall Where myservice is the name of my windows service. I have tried: $serviceName = 'simpleservice' ...
-3
votes
1answer
34 views

Reset Windows 10 Permissions

I installed long time ago "Easy Context Menu" and added when i press right click, the option to "take ownership" from a folder/disk. Also long time ago I had plugged in my old C:/ HDD from my old ...
1
vote
1answer
24 views

Windows command line alias commands

I'd like to open multiple chrome profiles at once, what is the easiest way to do that from the windows command line? I'm thinking something like open 43, 41, 1 (where the #'s refer to the --profile-...
1
vote
1answer
89 views

How do I disable the message “Try the new cross-platform PowerShell” message when running Powershell after latest windows update

Since the latest Windows 10 update, when opening Powershell I get the message "Try the new cross-platform PowerShell https://aka.ms/pscore6". I would like to turn that notification off. Any ideas?

15 30 50 per page