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

Visual APP to run CMD commands

I make use of the command prompt quite a bit, but I've noticed that it has really poor support for copying and pasting. Usually I get around this by creating a batch file, then executing that. What I was wondering is , is there a free program that…
JL.
  • 1,283
  • 10
  • 22
  • 35
3
votes
1 answer

winrm access denied for new user

On windows server 2012 was created new user as administrator. in powershell was started winrm(winrm quickconfig). But after winrm configSDDL default result is WSMan fault: access denied. What's wrong?
3
votes
2 answers

Command line tool for listing audit policy settings

I'm trying to find a command line way to get security settings from Local Security Policy. Specifically Security Settings > Local Policies > Audit Policy. A list of the policy and the current security setting. Ability to see if policy is editable or…
StackWolf
  • 33
  • 1
  • 1
  • 4
3
votes
1 answer

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 installation is happening in Administrative…
3
votes
1 answer

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: Access is denied (5)" messages for these checks…
Dan
  • 1,278
  • 18
  • 27
3
votes
1 answer

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 only allow given IP address (example…
3
votes
2 answers

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 password via GUI. But I've no way to integrate this in a…
3
votes
1 answer

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, Get-WmiObject and Systeminfo but all of the above seem to…
3
votes
1 answer

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 non-elevated processes. To see shares open by elevated…
3
votes
2 answers

How to run multiple commands with psexec?

I need to run a command to uninstall forefront on some of our workstations and am having a bit of trouble formatting the command. Here's what needs to happen (in multiple commands) xcopy \\serverpath\Installer.exe C:\Windows Install.exe /u /s Del…
3
votes
1 answer

Save output and exit code of command to files on windows

I want to run a command and save its output and its exit code, in different files. Here's what i am doing: cmd.exe /C command 1> %TEMP%\output.log 2> %TEMP%\error.log && echo %ERRORLEVEL% > %TEMP%\status || echo %ERRORLEVEL% > %TEMP%\status If i…
3
votes
1 answer

How to change the secondary DNS server entries on a network device via cmd?

In Windows XP, how do you change the secondary DNS server on a network adapter via the command line?
3
votes
1 answer

Detecting a registry key with a space in the path from the CLI (or .bat file)?

I've run into a problem in which my experience (and Google-fu) have let me down. Basically, I need to push out KB968730 to a couple hundred clients or so. Naturally, would like to check for the installation of the hotfix before kicking off the…
HopelessN00b
  • 53,795
  • 33
  • 135
  • 209
3
votes
3 answers

How are "locked" files handled by the system (i.e. WinXP)?

How exactly are locked files handled by the os ? Or to be precise, why is it that sometimes I cannot delete a locked file from a Windows Explorer, but if I open a command prompt in the directory in question, I can delete it from there ?
Rook
  • 671
  • 6
  • 15
3
votes
1 answer

Administrator User on Windows 2008 R2 server gets "access denied" messages for starting/stopping services

I logged into a Windows 2008 R2 server as a domain user that is part of the Administrators group on the target computer. Executing the following command, I get access is denied errors: $> sc stop ServiceName [SC] OpenService FAILED 5: Access is…