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)

1
vote
1answer
17 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
51 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 ...
0
votes
1answer
8 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 find ...
-1
votes
1answer
30 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
50 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
41 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
150 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
60 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
23 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
151 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
46 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
57 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
113 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
31 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
112 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
28 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
16 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
65 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
72 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
50 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
48 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
57 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
127 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
77 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
299 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
11 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
336 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
120 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
442 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
208 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
80 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
55 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
45 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
516 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
67 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
849 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
37 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
50 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 ...
0
votes
2answers
408 views

Windows: change own password of standard user by using commandline

I want to change the password of the current logged in Windows user (no Active Directory) in a scriptable way. The users have the right to change their own passwords and already can change the ...
1
vote
1answer
139 views

Windows findstr with AND condition?

Is it possible, in one line, without a batch file to use findstr and only return a 0 %errorlevel% if all of the strings are found? I am doing a gem list, which lists out a bunch of gems. I then want ...
-6
votes
1answer
260 views

BAT file that prompts for the computer name that will executed on it [closed]

I need to create a .bat script that will be executed on single/multiple machines I need first to create a bat that prompts for the computer name that the command will be executed on it I prefer not ...
3
votes
1answer
313 views

How to get a list of RUs, SPs and other updates installed for Exchange from a command line or PowerShell?

Is there a way to get a list of updates, rollups, service packs installed for the MS Exchange Server from a command line, PowerShell or Exchange Management Shell? I already tried Get-Hotfix, ...
7
votes
3answers
1k views

Determine if C drive has 2 GB of free disk space

I am trying to determine if a target pc has atleast 2 GB of free space. Here is what I have so far: @echo off for /f "usebackq delims== tokens=2" %%x in (`wmic logicaldisk where "DeviceID='C:'" get ...
0
votes
2answers
250 views

Assign DNS settings on client via elevated script in GPO

i have installed windows 2012 as a member server in my existing windows 2008 DC. now i want to assign secondary DNS on my windows 7/8 client PCs. I do not have DHCP in my environment. I tried to find ...
1
vote
3answers
283 views

cmd.exe, nested for loop, the variable cannot be use in option like skip=

I have many archive folder which stores the backup files. each folder increases daily. I need to delete all files except for recent N copies in each of them, N was defined by a variable from the ...
2
votes
1answer
129 views

NET USE - How to get list of all shares (elevated, non-elevated)

The command: NET USE Will display open connections by any process of current user. But, if command prompt (cmd.exe, or any shell) is non-elevated, it would display only connections opened by ...
2
votes
2answers
177 views

Provide Administrator credentials within script

I am writing a script that runs from a user account. The script needs to execute another script as the Administrator account. Tried AutoIt's RunAs - didn't work. Tried PsExec - the same. Tried ...