All Questions
Tagged with windows-10 powershell
859
questions
2
votes
4
answers
18k
views
Set PSModulePath Environment Variable with PowerShell in Windows 10
I don't understand this. So currently my system environment variable named "PSModulePath" looks like this:
%ProgramFiles%\WindowsPowerShell\Modules;%SystemRoot%\system32\WindowsPowerShell\v1.0\...
0
votes
2
answers
24
views
Searching all XMLs in a folder that are missing a specific tag, Windows 10?
I have a folder with hundreds of XML files. I Need to search all (*.xml) files to find files that do not contain a specific tag, and somehow present me the list of those XML files missing the tag.
2
votes
1
answer
8k
views
Enable/Disable real time monitoring in Windows
I can't enable/disable real-time monitoring in Windows 10 using PowerShell ISE (as administrator). I have run the command Set-MpPreference -DisableRealtimeMonitoring $false for disabling real-time ...
1
vote
1
answer
4k
views
Uninstall set of programs using Powershell
I have a set of programs I would like to uninstall with Powershell.
Get-WmiObject Win32_Product | where-Object {$_.name -Like "MySQL*"}
How do I pipe this to an uninstall function?
Some ...
0
votes
1
answer
4k
views
Adding persistent route through PowerShell not working for Windows 10 Pro VPN client
I'm setting up a new VPN server using L2TP and I'm hitting my last snag.
I'm now able to connect to the L2TP VPN using the native Windows 10 Pro client. I do not want to use the remote gateway for ...
0
votes
1
answer
32
views
Getting the Display Version of the current computer with Powershell7 (I.E.: 22H2). But ReleaseId conflicts with DisplayVersion
I've read a bunch of threads on here about this and I want to get the Windows edition (22H2 for instance).
This is the code:
$ReleaseID = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\...
2
votes
1
answer
4k
views
Network Name assigned to non-existent object
Tl;dr: I can't rename network adapters which were reset from the creators update, at least I think it was the creators update.
Following scenario: there is an image from an configured PC (IP adresses,...
1
vote
2
answers
7k
views
Use Powershell to copy files to current users logged in and users who login in the future
I want to create a script that copies a file to all user profiles both who have already logged and for a new user who log into the windows 10 pc. The location the files should be copied to is Users\...
40
votes
8
answers
115k
views
Switching default audio device with a batch file
I'm trying to write a batch file on Windows 10 that allows me to switch between my headset and my speakers as default audio device when I run it. I don't want to use any third-party software.
I tried ...
0
votes
1
answer
52
views
Cannot delete file in Windows 10 [duplicate]
On Windows 10, there is a file [%UserProfile%\Videos\Lorem.mkv] that is less thant 9KB and I cannot delete it. The file belongs to me, I have permissions to it, there are no prompts for entering a ...
2
votes
2
answers
4k
views
Change ownership of Registry Key using script
I'm attempting to programmatically change the owner of a registry key but I can't get it to work using a few different methods in CMD or PowerShell. Is this even possible?
The key is owned by "...
2
votes
1
answer
4k
views
CMD cipher /e on a folder output "Request not supported"
I've recently discovered cipher command on windows-10 command-line.
Now, the problem is when I'm try to execute cipher /e [directory name] or cipher /e [absolute path], because I'm always receiving ...
0
votes
2
answers
7k
views
How to enable virtualization via PowerShell on Win10, HP laptop?
How to enable virtualization via PowerShell on Win10, HP laptop?
Reason why I am not doing it this way:
Go to Windows Settings
Click on Update & Security
Now click on Recovery
Click Restart now ...
11
votes
3
answers
39k
views
Get-Net* PowerShell cmdlets failing with Invalid class
How can I troubleshoot and fix Get-Net* PowerShell cmdlets? All of the following are failing with Invalid class. I'm using Windows 10, version 1511 and do not have the option to upgrade to 1607 at ...
6
votes
2
answers
51k
views
SSH is not recognized as the name of a cmdlet - client is installed and path is correct
The OpenSSH client is installed. To be sure everything was OK I removed it and reinstalled, but that made no difference.
The Path variable included OpenSSH.
Windows Explorer shows that the folder C:\...