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).

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Create user - map network drive CMD

I have a pipeline which I want to do automatically (probably with a bat file) without the need to do all steps manually on my windows 10 machine. Pipeline steps: Create a normal user account e.g ...
0
votes
2answers
58 views

Windows Server DHCP server reservation list

In Windows Server acting as a DHCP server, how can I get a list of the DHCP reservations from the CMD? I need to know the MAC address and the IP address reserved to that MAC address inside the DHCP ...
-1
votes
1answer
57 views

Windows 10 - Shell commands for CTRL+Alt+Del not working

We have an icon with a target path of "explorer.exe shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0}" which pulls up Windows Security window in order for users to select change password from an RDP ...
0
votes
2answers
42 views

I'm getting Permission Denied when redirecting output from CMD to a text file using the logitech_dfu tool

I've gotten this output using this command you see here from the Logitech instructions, and using the ">" operator before the file names in said command. It errors, and does not place anything in the ...
0
votes
1answer
37 views

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 -...
0
votes
0answers
20 views

Makefile CMD long path limit

When when I have long paths in my project (250+ characters), when I trigger my makefile it can't find the include files. Is there a way to fix this instead of renaming folders to decrease path length?...
0
votes
0answers
9 views

Respawn script on Windows

On Linux, I can create a "respawn" script very easily with this shell syntax: #!/bin/sh while true; do echo "Start my script..." python3 somescript.py >> log.txt 2>&1 done This ...
0
votes
1answer
70 views

How to run command tail -f error_log|fgrep '[rewrite:' in Windows Server

I'm currently performing website redirection from non-www to www+https, but unfortunately, my redirection does not work and I've tried to create rewrite log but it ends up my website down. After ...
1
vote
1answer
137 views

how to stop, start and delete a windows service in cmd with a reference to the service name

how to stop/start a windows service in cmd with just a fragment of the service name. Example: NET STOP *part_of_name_of_service* NET START *part_of_name_of_service* For example. mysql has many ...
1
vote
1answer
40 views

language-neutral recursive takeown

In .bat files for Windows's cmd.exe, recursively taking ownership of a folder's content goes takeown /f foldername /r /d Y >nul: 2>&1 Problem is, it works only if in the current locale the ...
0
votes
2answers
40 views

CMD file just flashes by when running as administrator

When running a simple batch file (.cmd) as administrator (Rightclick --> Run as administrator), it just flashes by in the taskbar and nothing more is happening. Running the file by just ...
0
votes
0answers
22 views

Run cmd command as admin through the pipe

I find myself in a bit of a weird situation and I'm hoping someone would be able to advise for me. I have a tool, RMM datto, which allows myself to run commands to all machines on the domain. I'm ...
0
votes
1answer
202 views

Task Scheduler failed … Error Value 2147942402

I tried to schedule a task by schtasks /create /tn Test /sc minute /mo 1 /tr "del /f \"%UserProfile%\path\file\"" ...however the Scheduler always ends up with the following type of error: Task ...
0
votes
0answers
25 views

Is there a local DNS server that can be configured from cmd?

I am using Technitium as local dns server on my windows laptop. It routes all traffic (*.com, *.net, *.org etc) to a local nginx server. I need to achieve the same functionality from a batch script. ...
0
votes
1answer
20 views

How to discover if Microsoft Project 2016 is installed on a remote machine

I've been trying to find a way to learn if Microsoft Project 2016 is installed on a remote machine. The main problem I'm running into is that Microsoft has, at some point in the past, concealed or ...
0
votes
0answers
40 views

Windows 10 get latest backup from command line

How can I get the latest (most current) backup and date of my automatic Windows backup from command line (or a list of versions which I would sort) situation I have set up automatic backup via ...
1
vote
1answer
103 views

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 ...
1
vote
0answers
152 views

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 ...
0
votes
1answer
218 views

Windows Server “Core” Reopen CMD Window In Nested RDC

This question is very like this other: Open a new cmd console on Windows 2012 Server core after closing the last one? With one key difference that is not addressed in the other and which I have not ...
1
vote
0answers
230 views

Strange character inside dates in “net user” command output

When running the net user username /domain command in cmd, all the dates (Password last set, Password expires, Password changeable and Last logon) have a strange character before the individual dates ...
0
votes
1answer
22 views

Re-Posting this - Terminal Server - Group Policy prevent command line [2] [duplicate]

The actual post was here but it was an old thread and I couldn't find an answer online or with the infrastructure guys from my company as most of them already left. I have a Windows 2008 Terminal ...
1
vote
0answers
27 views

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-...
2
votes
2answers
688 views

Change Registry Key Permissions Access Control List using only Command Prompt

I am trying to change the Access Control permissions on a specific registry key i'm generating using a batch file. I try using regini.exe to pull the configuration from a .ini file and run into ...
0
votes
2answers
412 views

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 ...
0
votes
1answer
74 views

How to get login username using task scheduler?

I have search similar article but don't have the correct answer. I have a schedule task using gpo which using %USERNAME% to get the current logged username but it returns the username which the task ...
1
vote
0answers
69 views

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 ...
0
votes
0answers
29 views

Adding Server (Windows server 2012) on Servermanager (Windows 8.1)?

Before proceeding on the main concern, i want to tell everyone that im new to server technologies and im trying to simulate on vmware on how to manage non-domain join servers on different subnet How ...
0
votes
0answers
23 views

how can I remove a persistent gateway address in a server?

I'm running a server with multiple NICs, Nic 1 is only for internal use so I assigned 10.1.1.10 and the mask 255.255.255.0 with no gateway Nic 2 has 10.1.2.10 with mask 255.255.255.0 and the gateway ...
0
votes
0answers
29 views

scheduled task not running

i have a problem, created a scheduled task, to run a bat file. it's programmed to run with administrator credential, works in other tasks. the file is a normal bat file. the code inside the file is ...
1
vote
0answers
49 views

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 ...
5
votes
1answer
2k views

NET USE command doesn't authenticate when credentials are passed as parameters

I'm trying to connect to a remote WebDAV server by mapping it as a drive using NET USE command. NET USE * <domain> /user:<username> <password> Executing this command gives the ...
1
vote
1answer
443 views

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 ...
0
votes
1answer
670 views

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 ...
0
votes
1answer
96 views

can you sum within a function or use '!' within '!' in cmd?

Having some difficulty with the delayedexpansion in cmd. This might be a stupid question but is there any way of summing within a function (ie without 'set') or using ! within ! (or something to ...
0
votes
0answers
49 views

How to delete all files and subfolders older than 5 days by cmd call [duplicate]

I use Windows. I want to delete all files and subfolders older than 5 days by system call. I have this command, but i want to delete all files and subfolders older than 5 days. FOR /D %i IN (C:\...
0
votes
1answer
39 views

Move one file in a folder to another folder and rename?? Cmd?

I am hoping to get some help with this, I am thinking of using Command Line to do the following: Move ONE file in a folder (that has hundreds of files) to a new folder (new folder is the folder this ...
2
votes
1answer
459 views

Windows Command - Delayed Expansion Syntax to Echo The VALUE of a Variable That Contains Another Number Variable

I am trying to echo the VALUE of a variable whose name contains another variable ($project!$project_number!_control) while using delayed expansion. I can't figure out the syntax to do this. Here's ...
2
votes
1answer
87 views

mklink folders from Windows server to AIX

We need to make a softlink to other server on AIX and when doing accordingly to guide in cmd occurs an error mklink /D \\10.0.0.10\folder C:\folder and it returns - The request is not supported ...
0
votes
2answers
94 views

Compter Management & Shared Folders

I'm trying to get a list of all "Volume Paths" for all shares on a remote NetApp server through PowerShell. WMI, CIM, WMIC, NET VIEW, NET SHARE, NET USE. I haven't been able to use any of those to get ...
2
votes
0answers
321 views

Autocomplete in CMD.exe from psexec

I am not sure if this is the best place to ask. But I am just wondering if it is possible to have autocomplete in cmd.exe / powershell.exe spawned by psexec.exe? For example: psexec \\127.0.0.1 -u ...
1
vote
1answer
1k views

Creating a new AD LDS instance without the Setup Wizard?

Is the installation of a new unique instance of AD LDS (using either cmd or PowerShell) possible? All resources I can find online just use the Active Directory Lightweight Directory Services Setup ...
0
votes
0answers
580 views

CMD LDAP error Cannot connect to the LDAP server but connect success by c# code

I tried to search and use command line to test connection to LDAP server but it throw error "Cannot connect to the LDAP server" even at my local computer I use visual studio to debug code at my ...
1
vote
1answer
935 views

Check whether user account has password set

In standalone (non-domain-joined) Windows, is it possible to use PowerShell to check if a given local user account has a password set / a blank password? According to https://gallery.technet....
1
vote
1answer
977 views

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 ...
3
votes
1answer
7k views

Get PowerShell command output as a variable in bat (cmd) script

I'm trying to get FQDN of a host in some .cmd file. We have disjointed AD domain so "@echo %COMPUTERNAME%.%USERDNSDOMAIN%" does not work. I mean it works, but returns wrong value. The solution I ...
2
votes
1answer
1k views

delete windows certificate from powershell or cmd

I want to delete all my PERSONAL certificates from certmgr.msc from command line , is this possible? I tried some code but it doesnt work I can list my certificates by runing this in powershell dir ...
12
votes
2answers
46k views

call batch file and run using its own path/directory

I have a batch files that calls other batch files like this: e:\foo\master.bat has the content: call e:\bar\run1.bat and e:\bar\run1.bat has the content app1.exe the problem is that when I run ...
-1
votes
3answers
459 views

Is it possible to know who hosts a website using cmd only?

I read similar questions but I didn't find something similar to what I'm asking. Suppose that we want to know who hosts a particular website knowing the domain name using the cmd only. I found many ...
0
votes
1answer
265 views

Command line argument to change security settings for running IE-instance only

Just curious to know: How to Enable ->Access data sources across domain<- in IE, using CMD only and NOT by changing the registry or group-policy. I know that the following command works for the ...
1
vote
1answer
139 views

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 ...

1
2 3 4 5
7