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
1
vote
3 answers

Get installed programs via cmd or powershell

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: …
kimo pryvt
  • 431
  • 5
  • 12
  • 24
1
vote
1 answer

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 following code C:\Temp\SQLSP3.exe /qs…
1
vote
2 answers

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 [2a00:1450:4007:806::1000] over a maximum of 30…
onlyf
  • 123
  • 1
  • 3
1
vote
0 answers

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
2 answers

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 organization. I have installed the Windows 7.1 SDK package on…
1
vote
1 answer

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 --site-name=SiteName --account-pass=pass -y an error is…
Codium
  • 123
  • 1
  • 10
1
vote
2 answers

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, but I thought it'd be a good start. So how could I…
William
  • 266
  • 1
  • 4
  • 18
1
vote
1 answer

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 -user:xxx -p:MyPassword \[ip address][share folder]\…
1
vote
1 answer

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 pull in the "!" and copy the file to the…
Pyrotek
  • 13
  • 2
1
vote
1 answer

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 to use findstr/find to make sure that EACH string…
tek0011
  • 21
  • 4
1
vote
1 answer

How can I know where and how a security group is triggering a logon script for some users?

The organization I work for has implemented application access and scripts via Security Groups. This is, if a person needs to access some applications or have a script run when he logs on, we add them to a security group. There is a logon script…
1
vote
0 answers

When changing the Win display lang, will builtin CLI tools params / stdout|stderr messages also change?

I need to write a CMD script (other shells are not allowed / available) that will execute on multiple servers with different display languages. When looking at an Windows built in tool, such as logman.exe, I have two unknowns: Will logman's CLI…
1
vote
2 answers

How can I run a cmd.exe cmd file as an apache for windows cgi

It sounds simple enough, but I'm having a hell of a time getting it to work. Apache expects the first line of my script to say #! And I don't want to use perl or anything else, I want to use c:\windows\system32\cmd.exe But no…
Stu
  • 2,198
  • 2
  • 16
  • 23
1
vote
1 answer

SED returning error 2 when launched by Wpkg

Case I am deploying a software product using Wpkg over Windows workstations. I need to disable product's faulty automatic update and the best solution in this case is to modify one configuration file with a following regular expression:…
1
vote
1 answer

can't delete Resource Records through CMD in Windows Sever 2008

Final Update Problem erased in the least acceptable way: After re-installing the DNS-Server lead to even more problems, I re-installed the whole Operating System and - up to now - everything works like it should. Before anyone asks: This was/is an…