Skip to main content

All Questions

Tagged with
0 votes
0 answers
63 views

Task Bar Unresponsive in Windows 11 after Upgrade

When I built our Windows 10 Pro SOE with MDT, I used Import-StartLayout to import a custom LayoutModification.xml file, which customised the layout and pinned items of both the Start menu and Task bar....
2 votes
1 answer
2k views

PowerShell es-es Language Installation: ErrorCode -2147418113

I'm trying to install language with PowerShell run as admin on another computer but it fails with the ErrorCode: -2147418113 : PS C:\WINDOWS\system32> Install-Language es-es Install-Language : ...
8 votes
2 answers
27k views

Disconnect from smb share with powershell on Windows 10

I'm trying to disconnect a smb share with a Powershell command in Windows 10: net use * /delete However, this command does not work, because the share is not shown with net use. The output is There ...
0 votes
0 answers
31 views

Powershell lets me create a path longer than 260 characters, but Explorer does not [duplicate]

In Powershell I created a path, longer than the 260 character limit. E.g. a 305 character path as shown below. cd / mkdir ...
2 votes
4 answers
6k views

Windows PowerShell ISE freezes on launch every time - how do I diagnose?

Every time I launch PowerShell ISE (x64 or x86), I get this: It is drawn exactly as shown and immediately unresponsive. The black part at the bottom is within the window boundaries. PowerShell CLI ...
24 votes
9 answers
176k views

Remove appx package for all users

Fresh Windows 10 install. Somehow the MSN Weather app became corrupted. (Unable to launch) I removed the app with the following Powershell command: Remove-AppxPackage -Package Microsoft....
0 votes
1 answer
170 views

Installation not working in Virtual Box from the command line when using a path with spaces for the install directory

I've been trying to run vbox-setup.exe --silent --ignore-reboot --msiparams INSTALLDIR="parent/child 1 2" but it always fails because the path has spaces in it. Using escape sequences does ...
-1 votes
2 answers
230 views

How do I start Far Manager from PowerShell?

Just wondering the above. I installed the program using the .msi GUI installer, with the Path feature selected. I then restarted Windows terminal to pick up the new PATH variables. Googling shows ...
3 votes
3 answers
33k views

Run Powershell with parameters from batch file

I have this PowerShell command that I run from directly from the PowerShell terminal on my Windows 10 system and it works great. PowerShell Get-AppxPackage | % { Add-AppxPackage -...
6 votes
2 answers
10k views

Cannot type in cmd- or Powershell-window when run from Powershell as different user in Windows 10

When I execute the following code: $creds = Get-Credential -UserName other -Message none # answering the creds dialogue with correct password here Start-Process C:\Windows\system32\cmd.exe -...
6 votes
2 answers
15k views

Powershell error: The type initializer for 'System.Net.ServicePointManager' threw an exception

Whenever I try to open Powershell, it just won't open. When I try to open it from the cmd, I get this error: The shell cannot be started. A failure occurred during initialization: The type ...
0 votes
1 answer
240 views

Fast kernel reboot with Windows 10 : how to execute a quick partial reboot with a powershell script?

In windows 10, instead of doing a full reboot, it's convenient to do a partial reboot by login out and login in again, for instance to reload a certain set of drivers and OS user related data. I can ...
0 votes
1 answer
12k views

Powershell script completely removing user profile, user's folder, and user's registry key for dormant accounts

I'm trying to create a Powershell script that removes from a Windows computer a user's profile, a user's folder in "C:\Users", and a user's registry key in "HKLM:\Software\Microsoft\...
2 votes
2 answers
4k views

Change Windows Display Language (Windows 10) - Local Experience Packs (LXPs) - via CMD/Powershell

I want to add an Local Experience Pack and change the default Windows Display Language via CMD/Powershell. I came across Change display language in Windows 10 with CMD or PowerShell commands But this ...
0 votes
0 answers
1k views

Cannot install a Windows store app for all users : The current system configuration does not support the installation of this package

I'm trying to install this Windows Store app on Windows 10 for all users : PS C:\Windows\system32> winget install --accept-package-agreements --id 9NF8H0H7WMLT --scope machine The `msstore` source ...
0 votes
0 answers
47 views

How can I disable the new Windows 10 search toolbar? [duplicate]

In Windows 10, they recently introduced this horrific toolbar in the middle of the desktop and I wonder how I can from Powershell permanently disable it from ever showing up again? I got many ...
0 votes
0 answers
3k views

How to install language packs for all existing and new users

I have to install 5 languages in an already Windows 10 installation : "fr-FR","ro-RO","es-ES","it-IT","en-GB" I have tried : $languagePacks = @("...
14 votes
9 answers
105k 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..
15 votes
3 answers
24k views

Pipe file content into PowerShell command without loading the entire file to memory

I've recently started using PowerShell, hoping to never miss Bash again. I want to restore an instance of a PostgreSQL database. In Bash, or in the old command prompt, I would type: psql --...
0 votes
0 answers
244 views

Get-HotFix shows no results

This is similar to the question asked here but is over 3 years old, so I will ask again: PowerShell's 'Get-Hotfix' and 'Win32_QuickFixEngineering' WMI class doesn't return any ...
31 votes
9 answers
40k views

Scripting connecting/disconnecting a paired Bluetooth device

Is there a way, through powershell, or any other tools to connect and disconnect a paired Bluetooth device? Basically press the Connect/Disconnect button in Bluetooth & other devices, except from ...
0 votes
3 answers
2k views

PowerShell keyboard shortcuts

Currently I am using Bash on Windows via MSYS2. I have this file .inputrc: "\33[1;3A": "cd ..\n" Whenever I press Alt Up Arrow, it moves to the parent directory. Does PowerShell have a similar ...
1 vote
2 answers
15k views

How to replace the Desktop background image with a solid color, using PowerShell and registry?

I would like to replace the default Desktop background image with a darker solid color, on an unregistered Windows 10 Pro (Insider Preview) edition. I am testing various terminal coloring schemes, and ...
0 votes
0 answers
265 views

Windows Update COMPLETE history

I've looking some time for a script that can be used to export a full history of installed updates on a Windows System. I have alredy tried some community solutions like: wmic qfe list Get-Hotfixes ...
3 votes
0 answers
2k views

PowerShell - Cannot uninstall the Microsoft.HEIFImageExtension on several Win10 systems

I have a PowerShell command line to uninstall the HEIF image extension component provided by default on Win10/Win11 OS. This command is the following: get-appxpackage Microsoft.HEIFImageExtension -...
4 votes
3 answers
12k views

Windows 10 Update 1511 Breaks Hyper-V Switches

After upgrading to windows 10 v1511, the Hyper-V switch I had has gone all over the place. Aside from being disabled, and not being able to start, the network connections manager shows the switch ...
2 votes
2 answers
1k views

SSH from PowerShell/CMD to Linux w/out dark blue text

So currently my shell looks something like this when I SSH into my Debian server: I mostly use PowerShell as the client and customize the background & text colors to match system theme. Command ...
0 votes
1 answer
164 views

Windows 10 - Recover missing content of large folder

I have a large pictures folder, most of then "bulk" downloaded using Hitomi Downloader, DownThemAll and similar. Yesterdary I ran a Powershell command I always use to rename the last ...
0 votes
2 answers
2k views

Powershell vs Cmd

I am recently shifted from Ubuntu to Windows 10. There are two different terminals in Windows: PowerShell and Command Prompt. What is the main difference between them?
2 votes
1 answer
468 views

Opening two edge tab side by side with powershell

I've been trying to create a script that will open two edge tab side by side but my script isn't working and there is no error showing up: This is the script # On lance les deux instances de Edge $...

15 30 50 per page
1 2
3
4 5
29