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

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

Error with setting up OpenVPN Client files?

I have been trying to set up multiple OpenVPN Client files for use on multiple computers. The guide I am following is : ...
0
votes
0answers
20 views

After adding vboxmanage to PATH, getting “ 'cmd' is not recognized as an internal or external command” [migrated]

Am trying to add virtualbox exe's to the windows PATH. But after adding "C:\Program Files\Oracle\VirtualBox" to the PATH env am getting the below error. And most of the usual commands are not ...
0
votes
1answer
25 views

IIS ftp server issue from command line

I'm trying to config an ftp server on IIS (Windows Server 2008 R2) I configured basic authentication with read,write permissions for a user and no SSL I also opened port 21 on server firewall then ...
1
vote
1answer
25 views

How do you check what version of Server Message Block client a workstation is using on Windows?

Sometimes over slow connections we switch to an older version of the protocol. I'd like to be able to check and see which version is being used, I only know how to set the version ala: sc.exe config ...
0
votes
0answers
11 views

Sending email through telnet SMTP [migrated]

After I connect to one of gmail's SMTP servers (via windows cmd), when I try sending mail to myself, it keeps giving me the same error. 220 mx.google.com ESMTP u3si16129057wmg.22 - gsmtp ehlo b ...
0
votes
1answer
31 views

Windows command line tool for disk IO monitoring

I am looking at extracting disk IO statistics on Windows 2003 upon occurrence of some events, e.g. a long full GC occurring that is waiting a long time for CPU resource. I have read that Process ...
2
votes
1answer
16 views

Search strings in text files and show in output the string, preceding one and next one (cmd.exe)

I have a lot of big text files. And I'm searching (within cmd.exe) for a list of values in them as following: findstr /i /n /g:strings.txt 1\*.* >results.txt where strings.txt is the file with ...
0
votes
1answer
55 views

User write to C from CMD

I have a very strange problem. On some computers in my network I can go to C:\ directory, run edit program and save file to C:. But when I list files in directory this file is not listed. But when I ...
1
vote
0answers
16 views

net files vs openfiles IDs

I was doing a PowerShell script for a quicker way of closing locked files on a big Windows Server 2008 R2 file server (more than 2500 files opened at this moment, and the peak hour was like 3-4 hours ...
1
vote
1answer
40 views

MS-DOS attrib +s 'path not found'

I have to put some specific icons on folders and I had success doing that over all folders except the one that have some special characters. I'm using windows7. How it is done? creating a .ini ...
0
votes
1answer
68 views

remote Windows command line

I am connecting from my pc1 to Windows server via Widows Remote Desktop Client. Then I execute one application (it has maximized window, and must stay maximized) on remote computer via his own ...
1
vote
1answer
47 views

How to catch “The system cannot find the file” within For /F loop?

How to catch "The system cannot find the file" within For /F loop? I would like my code to do the following: 1 - Search for the specified file 2 - If file not found, handle the "The system cannot ...
-1
votes
1answer
33 views

Changing file permissions and adding owner from CMD

I am unable to change permissions of certain files in a directory even though I have logged into a server using an Administrator account. Is there a way to force the permissions of these files via ...
0
votes
0answers
72 views

Can mpclaim in windows show the failed path of a multipath drive?

I am having problems with several of my iscsi paths in windows. In linux, using the multpath -l command, I can get the paths that are failing as they are clearly listed.. Example: -+- ...
1
vote
2answers
60 views

how to pipe the output of a command (let's say ipconfig) in another cmd window? [closed]

"Commands that provide a lot of information should be run in a separate command shell with output piped through a pager (the “more” command), and with an appropriate title on the second command ...
1
vote
3answers
299 views

Get installed programs via cmd or powershell [duplicate]

I am trying to get all installed apps in the computers of my domain but i haven't found a way to get the information in an accurate way first i was trying to achieve this through the registry key: ...
3
votes
0answers
155 views

Exit code 0x84C40013 in silient installation of SQL 2008 service pack 3 installation

Following Command is utilized for installing SQL SP3 pack in Windows server 2008 R2. start /WAIT C:\Temp\SQLSP3.exe /quiet /IAcceptSQLServerLicenseTerms /Action=Patch /AllInstances This complete ...
0
votes
0answers
41 views

How to install Windows Mobile Device centre with License accepted in Silent mode

I have installed Windows Mobile Device centre with following code silently. driver_setup.exe /quiet /i drvupdate-amd64.msi After installation completes, i tried in launching the Windows Mobile ...
1
vote
1answer
206 views

Run Bat file in Administrator Mode in Windows Server 2008

runas.exe /profile /user:administrator "C:\temp\SQLSP3.bat" will run the SQLSP3.bat file in Administrative Prompt and it is asking Adminstrator password in Windows Server 2008. SQLSP3.bat file has ...
0
votes
1answer
68 views

Windows PowerShell - How to view commands history date/time [closed]

I want to list entered commands in Windows PowerShell with their respective timestamps. How can I do it with Get-History command? Also if that isn't doable then please show me a way to check which ...
0
votes
2answers
70 views

Tracert not resolving IP

I know this is propably a basic question, i did some research on the net as to the whys and hows and got only more confused. I wanted to ask why tracert returns this : Tracing route to youtube.com ...
3
votes
1answer
135 views

Windows Sensu client - occasional “Access is denied” errors when running batch files

We have the Windows Sensu client running on several 2008 R2 systems. One of our checks calls a batch file to gather some info and report back. We are sporadically receiving "Unknown: Unexpected error: ...
1
vote
0answers
37 views

Data Execution Prevention - Optout for the exe in “C:\Program Files\SSS\sss.exe” using Command Prompt

Can any one help me in adding "C:\Program Files\SSS\sss.exe" in DEP Exception list using Command Prompt?
1
vote
2answers
127 views

Error when creating a certificate using Windows SDK 7.1 Command Prompt

I am a new administrator with very little experience, trying to configure my ADFS to cooperate with a single sign-on solution to cloud-based help desk software to be used internally in my ...
2
votes
0answers
33 views

How do I add an iscsi target to a windows initiator through stock cmd?

I have many Windows Servers that need to run headless but I need to add many iscsi targets to each of the Windows hosts. I already have the iscsi target setup and have access to IP address of where ...
0
votes
0answers
27 views

Grant CMD internet access, just as IE and Chrome have (via proxy)

I'm on a Windows 2012r2 machine and internet access is granted via a proxy server. The machine is installed with XAMPP and after some issues I've managed to install composer (dependency manager for ...
1
vote
1answer
91 views

allow only one ip and block others by using cmd in windows firewall

I want to allow one IP address that can connect to internet (whitelist) and block others' connections through internet using Windows Firewall on Server 2008 using command prompt. Is it possible to ...
0
votes
1answer
90 views

Robocopy: How to copy assets from multiple locations to a single location and maintain a log

I have multiple folders containing assets (each folder has subfolders containing these assets .mp3, .txt, .png, etc). I want to copy all this assets along with the subfolder to a single ...
-2
votes
1answer
66 views

What does timeout /T > null mean in batch programming [closed]

What does timeout /T > null mean in batch programming. I mean I can't seem to figure out what > null means here. Sometimes it is also used for COPY [source file] [Destination file] > null
1
vote
1answer
15 views

Why command from script file isn't found by windows?

I've added drush command to environment variable. When I go to cmd and run drush command all works ok. But wheh I'm trying to call drush command inside script file, eg: #!/bin/bash drush si ...
0
votes
1answer
66 views

Can forfiles search multiple drives in the same command and create a txt file of results?

Can forfiles search multiple drives in the same command and create a txt file of results? I have the following that works to show me the results in command prompt but what I really need is a txt file ...
0
votes
1answer
64 views

How to rar the newest (The latest modified date file) file?

I have the folder c:\AA\ that everyday there will be a new BAK file. When I run the command it will re-rar every files not just the newest file. I use this batch code: FOR %%A IN (C:\AA\*.txt*) DO ...
1
vote
1answer
194 views

Killing a single service when multiple services are under same pid using taskkill

I am trying to kill wuauserv on a windows server 2008 R2, however it has the same PID as other services which I don't want to kill. I assume running taskkill /f /pid [PID] would kill them all, how do ...
-1
votes
1answer
83 views

How can I access comand line like cmd.exe on my dedicated linux server? [closed]

I have installed the ffmpeg by composer in my local server(windows7) and everything is working good now the site is live on internet (server CENTOS 6.7 x86_64 kvm) and I need to install it to the ...
0
votes
0answers
412 views

How to export SQLCMD output to Excel

I am using SQLCMD command in powershell to run SQL scripts. When i pipe the output to TXT ,the formatting is all messed up. i want to export the results to excel file. how can i do that. My command ...
0
votes
1answer
14 views

Leading zeros in lss compare in cmd.exe causes unexpected result

if 8 lss 1 echo Less [Nothing displayed] if 08 lss 1 echo Less Less Why?
0
votes
1answer
698 views

how to easily reconnect to “unavailable” network shares

Every once in a while, I run cmd as my admin user. I set up a shortcut for convenience sake... C:\Windows\System32\runas.exe /u:admin.user@domain cmd At some point, I've wanted to run scripts that ...
1
vote
2answers
162 views

How do we set the Java environment variable in cmd.exe?

I need to set the Java environment variable in cmd.exe. I tried this: set java = System.out.println(System.getProperty("java.home")); path=java;%path% I am aware that this does not change anything, ...
0
votes
1answer
549 views

Mount NFS Share Windows Server 2012

I'm trying to mount an NFS share setup on my Synology Server to my Windows Server 2012 server. Here's what I've tried: net use Z: \[ip address][share folder] /user:xxxxx [password]' mount ...
-1
votes
1answer
249 views

Can't access (ping, tracert..) from cmd but works from putty

I am not able to ping or tracert to a remote machine from windows command line, but I am able to ping/tracert and access same machine when using putty on same windows machine. What can I do to access ...
0
votes
1answer
96 views

FTP Server 2008 (This webpage is not available)

Im having trouble getting access to my FTP server on a web browser. On the local server i am able to (ftp://192.168.50.11) and login using user name and password using the browser. On a different ...
22
votes
3answers
3k views

Given a PID on Windows - how do I find the command line instruction that executed it?

On a database, I can get a list of all the currently running processes, and the sql command that kicked them off. I'd like to do a similar thing on a windows box. I can get the list of processes, ...
0
votes
2answers
60 views

Print text file with folder file names [closed]

So i have been tasked with getting folder and file names for a portable hard drive. Currently I'm not sure how to go about doing this I know the standard command prompt way to go about it, but let's ...
1
vote
1answer
31 views

From command prompt store a “!” from a file name in a varible

I have a set of files in a folder with names like test! - 01.avi. I want to make a new folder for each file with the same name and then move the file into that folder. I have everything but how to ...
0
votes
0answers
59 views

How to assign user name for “net view” command

When mapping a network drive, I use command net use z: \\servername\sharedfolder /user:myname It always succeeds. But when using net view, I sometimes get Access Denied error. I think it is due to ...
2
votes
1answer
668 views

How can I input password to manage-bde -pw option via windows powershell

I am trying to encrypt Data volume (for example E:) with the following command: manage-bde -protectors -add E: -pw When I execute the above command, it will ask for the password, so I entered it. ...
0
votes
2answers
79 views

how to identify a command prompt window?

Enviroment: windows 7 Currently i have machine on which we launch 2 batch files on system start up. These batch files internally run multiple programs by running on separate command prompt windows. ...
4
votes
2answers
1k views

How can we insert multiple keys into a registry folder without using 3rd party tools?

To insert multiple keys into a registry folder (e.g. Computer\HKEY_CLASSES_ROOT\....\....), I basically have to manually right click → New → Key for each key. This can get annoying and ...
0
votes
1answer
38 views

How can I select replace file automaticaly in cmd?

How can I select replace file automaticaly in the command prompt? I am trying to run the following command: schtasks /create /tn "Restart Ingenico" /tr "C:\IT_Dept\RestartShift4.bat" /sc daily /st ...
-1
votes
1answer
52 views

Search for file names containing space

I have a batch file that helps me in install multiple pieces of software from a shared folder. It's working well with software whose names don't contain spaces, but I need it to work with software ...