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
2
votes
1 answer

Create a domain GPO with cmd only

I have a domain controller running Server 2003 and the goal is to create a GPO for the domain without using a GUI program (no gpedit, gpmsc, etc.). How can I achieve this goal by using cmd only? (powershell doesn't exist on the server either)
2
votes
1 answer

How can I get a list of active directory group members that are not disabled (without using PowerShell?)

I'm trying to get a list of users that are members of an Active Directory group that are not disabled. The best I've been able to find so far is: dsquery group -name "Group name" | dsget group -members -expand | dsget user -samid -disabled -c |…
1
vote
1 answer

On Windows command line, how can I tell if a program is still running or is frozen?

I am running sqlcmd to import/execute a 2 GB SQL file that was created using SSMS's Generate Scripts command. It starts with typical output but the screen is quickly filled with... ... (1 rows affected) (1 rows affected) (1 rows affected) (1 rows…
Jeff
  • 335
  • 2
  • 4
  • 13
1
vote
0 answers

Set Proxy automatic configuration script from command prompt

I'm running into a problem where I'm running a script to clear the automatic configuration settings found below,and it does clear the windows when you check through the UI. However, it doesn't seem like it actually takes effect and I have to…
1
vote
0 answers

Redirect Console Output ,Terminal (macOS, CentOS) / Cmd (Windows) to Remote Syslog or Server Logs

I have One workstation running multiple instances of Java applications by Console/Terminal for Testing, and I develop an application for Listening Logs, TCP like (http://esus.com/using-java-util-logging-sockethandler/) and UDP like…
Anita
  • 111
  • 1
1
vote
2 answers

Finding Host Name / Computer Name over IP

I'm trying to find out how to lookup the HostName of a computer over IP using Command Prompt, however I don't need the registered DNS name. I'm attempting to do an IP/DNS Database Cleanup so finding the DNS Name would be redundant. Is there a way to…
Newfield
  • 11
  • 1
  • 1
  • 3
1
vote
0 answers

How to Check for the Java Process Running on All Network Computers?

Due to Oracle's shenanigans, our organization has decided to remove JRE from all computers under our maintenance contract. They've also decided to not replace it with OpenJDK JRE, so I've been tasked with gathering information about this change. In…
1
vote
0 answers

Do I need to have identical user account on different domains to run a net use command via batch script?

I have a Task Scheduler task that runs a batch file which copies a file from server1 to server2 on a different domain. Note:The scheduled task is running on Domain_A using user accounts created to run auto processes. Task Scheduler Task: Run under…
1
vote
1 answer

Pinging computers on the network (request timed out vs. cannot find host)?

I am working in an IT office where I have to do remote file transfers and software upgrades over the network. So before I start working on a computer, I ping the computer name (e.g., AB395729) in command prompt. When it works, I get a response like…
1
vote
1 answer

how to have gpresult on remote comupter outputted as xml or html?

I'm on a Windows 2016 server and I'm trying to get the RSOP from a Windows 2008 remote computer using the command GPRESULT. However when I use the command: gpresult /S 10.0.52.234 /U Administrator /P !2Pwz%3<.2$ /SCOPE COMPUTER /X output.xml I…
1
vote
1 answer

How to get infromation about disk location (like in diskmgmt.msc) via Powershell?

could you please help me how to get disk location number which can be found via Disk Management (diskmgmt.msc) for future VMware SCSI Disk devices assosciation via PowerShell or any other native scripting language from Microsoft? Example: From…
1
vote
1 answer

Windows PATH Variable with a Drive-letterless path

At work, we have a setup where our product's source code is mounted to a drive letter, and if you want to have different builds, you have different drives. The build tools are reached by adding something like "/Trunk/bin" to the PATH, so no matter…
Katherine1
  • 11
  • 2
1
vote
2 answers

How do I get the PID of a conhost process associated with the batch file and cmd process that created it?

Say I have several conhost processes that happen to be running already. Now I run a batch file, which starts a cmd process which, in turn, causes another conhost process to open up. From within the batch file I know I can get the PID of that batch…
1
vote
1 answer

Add, remove, and test for the existence of a registry value * at the Command Prompt?

I am trying to check and update the network zone mapping in the registry from the Command Prompt. I need to check for the value named *. For example, under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet…
Jay Michaud
  • 3,973
  • 4
  • 23
  • 36
1
vote
1 answer

Ways to extract files information for large data

I am trying to recursively extract some file information in my file server. I was able to run the commands below at my own laptop. When I run them on my file server, which is going thru 4TB of data, they run or stuck for hours. When I use the…