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

Sending Message To User From Remote Computers

I have 4 networks. 10.22.227.0\24, 10.28.43.0\24, 10.0.3.0\24, 10.0.6.0\24. In total there is some where around 250 users. What i would like to be able to do is send the user a message from my computer or my laptop. I used msg from the CMD line and…
1
vote
1 answer

Windows 2012 Command prompt not accepting a few commands

I have recently installed Windows 2012. Unable to use common commands previously used e.g. "ipconfig" "hostname" etc. Have tried both Run as Administrator and non admin.
Airboss
  • 13
  • 1
  • 3
1
vote
2 answers

How to find a file in cmd and then piping the output in findstr

I have a simple question regarding how to finding a file in cmd and then piping the output to findstr to nail down a specific file. For example, dir change /s /p | findstr "error" Can this be achieved?
gsb005
  • 111
  • 1
  • 1
  • 6
1
vote
3 answers

Can I run remote PowerShell/Cmd command with RDP credential, without Remote PS enabled?

I am in a "funny" situation where I have RDP credentials of about 200 servers, but none of them have Remote Powershell enabled. I need a simple task: restart them all. But all I have is RDP (Administrator account) credentials (including: IP address,…
1
vote
2 answers

WHy is tracert working even though I changed my DNS settings to use a bad nameserver?

In my Network Settings in Windows, I've set my DNS settings to use addresses 192.168.2.239 and 192.168.2.238. These are both non-existing DNS servers. In cmd if I do nslookup www.google.com I get *** Can't find server name for address…
1
vote
2 answers

How to get the screen resolution in windows 10 with command prompt or powershell

I have been trying to run wmic path Win32_VideoController get VideoModeDescription it gives me 1920 x 1080 which is good. I change the resolution to test it and it still returns the same thing. Does anybody know why? I have the first screen set…
1
vote
1 answer

Windows Server Backup and Restore Command Line or pgAdmin

Newbie to postgresql, I come from an Windows background with Backup Exec and Veritas GUI driven applications, I also have a Centos bacula background. If this is in the wrong forum, please move. I have a Windows Server with a postgreSQL database and…
1
vote
1 answer

Setting IP that i have pinged to be a variable

I am having great difficulty with a batch file i am working with. With the update i received below, i use nslookup to return the IP of the address. Is it possible to extract the IP returned with the nslookup command as a variable, and then edit the…
Alex
  • 21
  • 5
1
vote
3 answers

How to get a list of Domain Admin users from a windows 2003 DC

I'm trying to get a list of domain admin users from my Windows Server 2003 domain controller. I am unable to obtain it with powershell because the ActiveDirectory module is not installed. I need to obtain it from CMD. I have tried net group /domain…
DSKyo
  • 153
  • 3
  • 6
  • 15
1
vote
2 answers

Takeown You do not have permission to read the contents of directory

Is there a reason I get this error when taking ownership of a directory? It works fine if I go through the permissions in the GUI, but if I try to do if from the command line I get an error that I don't have permission to read from it: takeown /s…
leeand00
  • 4,869
  • 15
  • 69
  • 110
1
vote
2 answers

Set "Allow task to be run on demand" from the command line?

On Windows 7, is it possible to set the "Allow task to be run on demand" attribute from the command line when creating a scheduled task to be run on another Windows 7 computer (actually 9 others in a workgroup environment)? This task needs to be run…
Dan
  • 51
  • 1
  • 5
1
vote
1 answer

Making secondary Ip addres primary, without disrupting internet connectivity

I'm adding a secondary IP address with this command: netsh interface ipv4 add address "Ethernet" NewIp 255.255.255.0 After that, I want to make this address primary (default), without disrupting internet connectivity. Let's say I have the…
F Andrei
  • 85
  • 6
1
vote
1 answer

Find the users of Active Directory global group?

I am using following command to get the users of Active Directory Global Group. dsquery group -name "Groupname" |dsget group -members But, this is piped command and it's not working in Visual Studio, Please suggest me any alternative DOS command…
1
vote
1 answer

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 the file" by sleeping for 10 seconds and…
1
vote
2 answers

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

"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 window. " This is what i am supposed to do.
K V
  • 13
  • 3