All Questions
Tagged with windows powershell
8,154
questions
1
vote
1
answer
22
views
Yarn PM not working in Windows when the User folder(UserProfile env var) has space in folder name or path
As stated in title, the Yarn PM(package manager), that I just installed in my system(Windows 11 64Bit) doesn't work if there's space(s) in my UserProfile folder path.
My User folder name is "...
0
votes
1
answer
22
views
Failed to update help in windows powershell
I am an absolute beginner to Command Line Interface and noticed this when trying to update the help (I'm following Learn Enough Command Line to Be Dangerous, which I suppose is for Linux and I am ...
-1
votes
0
answers
18
views
Automatically upload OneDrive files on log off/reboot
I am trying to set up automatic uploading of downloaded files to a user's OneDrive directory, at logout. When running my script at logout the OneDrive processes are already completed, I edit the ...
0
votes
0
answers
14
views
Unable to Export Server Certificate with Powershell
When attempting to set up an automated process to update the Octopus Deploy Certificate library with new certificates from our Servers. We are running in the following error message when trying to ...
1
vote
0
answers
30
views
Windows 10 PowerShell: allow service interact with desktop (non system user)
The problem is: I have remote desktop, I have set up gitlab runner on it. I am running GUI application (with OpenGL) within my gitlab runner service.
When I am using System User for gitlab runner my ...
0
votes
3
answers
32
views
terminal is showing "can not find path because it doesn't exist" [closed]
I had made a folder on desktop, and I was changing the directory in Terminal, which means I was going into that folder from Terminal, but it is showing above the image text. What have I done wrong?
...
1
vote
0
answers
23
views
cmdkey not working when executed using a powershell deployed via GPO at logon [closed]
I'm attempting to deploy a PowerShell script that deletes generic Windows credentials using a GPO set to run at logon. The user has all necessary privileges. However, the script isn't working as ...
0
votes
0
answers
34
views
Windows transfer all settings made with mmc snap-in
I have 3 identical laptops, and I have to create identical environments for them. This includes adding snap-in with mmc. I did it on one of them - there a lot of settings: services auto run, messages ...
1
vote
1
answer
33
views
Powershell script to clear Windows "Recent Files" doesn't clear files, but clears quick access shortcuts somehow
I found and modified this code to get the recent files and remove any that were made on the day the script is run:
#remove from past day
$limit = (Get-Date).AddDays(-1)
$path = "$($env:...
1
vote
0
answers
46
views
Executing sfc.exe /scannow on Remote Computer Using PowerShell Doesn't Show Process
I'm attempting to run sfc.exe /scannow on a remote computer using PowerShell's Start-Process, but I'm unable to confirm whether the process starts on the remote machine. When I check for any sfc ...
0
votes
1
answer
48
views
Saving button in powershell add element [SOLVED]
I am currently writing a powershell script with Gui in order to assist me editing pop file for the MVM gamemode in TF2.
Currently the powershell script is capable of open the file and display every ...
1
vote
1
answer
49
views
How to edit NTUSER.DAT files it insert a new registry key for that user to prevent Microsoft Teams reinstallation?
I am creating a script to insert a registry key PreventInstallationFromMsi in HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Teams. I am doing this because my environment doesn’t want teams to install on ...
-2
votes
0
answers
41
views
How to run 'Import-Module PSReadLine' [duplicate]
I have a problem about the windows powershell and vs code studio plz help me to solving this error
Warning: PowerShell detected that you might be using a screen reader and has disabled PSReadLine for ...
-2
votes
0
answers
73
views
Only the First Line of Output is Printed in C Program in VS Code on Windows Using MinGW
In C program only the first line of output is printed when I run the compiled executable. Despite the program compiling without errors, the subsequent lines do not appear.
Details:
Operating System: ...
0
votes
0
answers
279
views
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: -65536
"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" terminated with exit code: -65536. When i open my terminal in vs code i got this error and my terminal closed why i dont know Can ...