Questions tagged [windows-command-prompt]

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

Refers to the default CLI that ships with all versions of Windows, often shortened to just "command prompt" or cmd (after the file name of the executable).

383 questions
0
votes
0 answers

Trying to import a specific portion of the local security policy template for account lockout

I am trying to implement a solution to modify the local security policy on client machines using SECEDIT and a provided inf file, however /IMPORT requires the /db parameter to be listed but I cannot find the path to the active policy. I am…
0
votes
0 answers

Add context menu for file passing multiple parameters to target

I would like to use an AI subtitles sync program (Alass). This is very simple in Linux/bash but I was trying for a way to achieve this using Windows and the context menu. So here my requirement: make the context menu appear when two files are…
rs232
  • 105
  • 1
  • 10
0
votes
1 answer

Start exe as current logged in user

i am creating exe shortcut on Windows startup folder while installing application. It was automatically starts on Windows start and restart. I want check on every 5 mins whether the exe running or not. If it's not running i want to start the exe…
0
votes
1 answer

Can we use RoboCopy to synchronize data?

I have a project where we are moving from on-premise file share to AWS FSx. I need your suggestion on data synchronization. I decided to use the RoboCopy tool to copy the data. We need to also copy data with file permissions. I'm using the command…
0
votes
1 answer

SFC Couldn't Perform Requested Operation -- Options?

I had a user come to me with her company issued Dell laptop. After the "Dell" splash screen is done, Windows does not boot. It's just a blank, black screen. After rebooting several times via the power button (as usual methods weren't available) I…
0
votes
1 answer

How can I determine which network adapter a device is using for packet emission when attempting to reach a specific IP address using ping?

I have been trying to reach a particular IP and I have not been able to check on which Network Adapter it is using for publishing. Is there any way to check on a particular device to verify whether it is being used for packets emmission? I tried on…
0
votes
2 answers

Activate and specify logon script without user interaction

I would like to remotely activate a logon script to computers (Win10 and 11) not connected to a domain. I can already remotely deploy software/script/files as admin, for example: I can deploy a logon.bat in…
0
votes
2 answers

Generate SHA256 Hash of a STRING from Windows Command Line

While this is simple to do in the *nix world, I can't come up with a solution for generating a SHA256 hash of a string from the Windows command shell (not PowerShell) without installing a 3rd party application or batch file. CertUtil works fine for…
Michael Oryl
  • 215
  • 1
  • 4
  • 11
0
votes
1 answer

Renamed executable files Cmd and Utilman and now its not opening

I forgot my windows password So I tried to change "Accessibility" to "Cmd" on Sign-in windows by following these steps: Opened Advanced Startup Menu > Trouble Shoot > Advanced Options > Cmd In cmd I renamed my files in my System32 : 1)Renamed…
0
votes
1 answer

Why cant i kill the task remotly through my .bat Script? [solved]

I want to write a .bat Script, where i want to kill a task remotly from my pc on my windows server 2022. When i try the command "taskkill /u Administrator /p mypassword /s 192.168.178.226 /im Cluster_Manager.exe /f /t" it says: Error: The process…
0
votes
1 answer

check MD5 checksums from md5 file in Windows

Hopefully a simple question, does a simple Windows command line equivalent to md5sum --check [files.md5] exist? Alternatively, something I can script as a batch file. I can generate the hashes file fine, but it's the check at the destination,…
16shells
  • 1
  • 3
0
votes
1 answer

Windows DEL command behavior wrt junction points

In my installer script I want to delete known files from known locations on the local PC using the DEL command. The command should purge the file from a certain folder and all subfolders below that. I therefore use: cd /d "C:\MyFolder" del /f /s…
Carl Colijn
  • 101
  • 3
0
votes
1 answer

Having Trouble Identifying TCP Congestion Control Provider option: Default

I am running a Windows 10 (Version 1909) OS and when I am entering the following command in CMD ... netsh interface tcp show global ...I am able to see add-on congestion control provider set to "Default" I would like to know what do you mean by…
0
votes
1 answer

Erased System Path Variables

I was writing a batch file that was supposed to automatically set up a computer to receive "psexec" remote commads. Unluckly i didn't really pay attention to what i was writing and i wrote this command and then ran It: setx /M Path…
0
votes
1 answer

CMD - Check if exist firewall rule, and add if not

I need some help to make an script that check if exist a rule, and add if not. It auto add all exe inside a folder where i run it. @echo…
kapi
  • 1
  • 2