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

Export Windows Server configuration to powershell script?

I'm looking for a way to export role/feature configuration to a scriptfile, like powershell. Lets say you've installed the DHCP-Role. You configure the scopes, reservations and all that stuff you need. AFter the configuration is completed, I want…
4
votes
1 answer

Why powershell runs executables in separate window?

On one of my servers (2008 R2) powershell refuses to run executables without extension, so typing cmd (or &cmd) in command prompt results in folowing error message: The term 'cmd' is not recognized as the name of a cmdlet Invoking executable one…
Artem Tikhomirov
  • 742
  • 3
  • 9
  • 15
4
votes
1 answer

How to find out the .exe running behind a service with cmd.exe?

If I see svchost.exe having the PID 840, how do I get the information which .exe runs behind the service with cmd.exe on Windows Server 2003? If possible without Sysinternals tools.
4
votes
6 answers

remotely check amount of RAM on a computer using command line

How would I remotely check the amount of RAM on a computer using command line? (Windows XP and/or windows server 2003)
4
votes
6 answers

Unlock AD User Account using DSMOD (command line)

Just a quick question. I need to be able to unlock user accounts from the command line, NOT using NET USER loginname /DOMAIN /ACTIVE:YES This is because our corporation lives across 4 domains, and the NET command is tied to the computer domain,…
Izzy
  • 8,224
  • 2
  • 31
  • 35
4
votes
0 answers

DSGET escapes hash signs (#) in outputted Distinguished Names (DN)s but expects unescaped hash signs for input

Lets say I want to do the very simple query in AD dsquery user -name "John Smith" | dsget user -memberof -expand This will output the DNs of the AD groups that this user belongs to. I can make it print the friendly group name via: dsquery user…
4
votes
1 answer

using git on DOS command line asks for password - but not when using TortoiseGit or gitBash

I would like to use the DOS command line to enter the command: git clone "git_path.git" myDir It asks me to enter a password which I would like to avoid. I usually use TortoiseGit to do all git related operations. I would like to setup…
Sandy
  • 41
  • 1
  • 2
4
votes
2 answers

command line utility to connect to wireless network

Can any one tell me a command line utility to connect to a wireless network in Windows XP. I cannot use netsh wlan as this is not supported in XP. Is there any open source command line utility tool . We need this for our automation . Regards, Mithun
Vidya
  • 347
  • 1
  • 6
  • 19
4
votes
2 answers

How can I get the list of app pool using appcmd.exe

we using the below command to get the list of the site added in is: %systemroot%\system32\inetsrv\AppCmd.exe list sites but the above command can not take a list of app pools related to the site. I want a list of app pools. if a single command to…
User12
  • 89
  • 1
  • 8
4
votes
1 answer

Running windows container's command prompt in admin mode

I am running Windows Nanoserver in a container.The nanoserver contains only the command prompt and lacks powershell. I want to execute certain commands inside the container in the command prompt which require elevated privileges. I am currently…
3
votes
1 answer

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 the code: @echo off setlocal…
3
votes
1 answer

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 Wizard. PowerShell has the Active Directory Module…
3
votes
2 answers

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…
mythofechelon
  • 905
  • 3
  • 24
  • 42
3
votes
1 answer

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 cert:\\CurrentUser\My\ I tried this but is not…
arlind
  • 43
  • 1
  • 7
3
votes
1 answer

Windows Command net user output

The command net user administrator, one of the output is the following: Last logon 5/27/2017 2:31:17 PM The system administrators have their own IDs when required to log on to this server. One suggested that it could be a scheduled task that was…