Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
32 views

dsquery * - filter How do i get rid of this error

for /f %a in ('"dsquery.exe * -filter "(&(objectClass=user)(!(objectClass=computer)(sAMAccountName=%user%))" | dsget user -hmdir | find "%user%"') do set path=%a When i run this in cmd i get a ...
1
vote
2answers
65 views

How can I customize the command prompt when your effective gid does not match your uid?

We frequently sg to switch to a "shared" effective group. I want a visible reminder that we are not using our default group. Was thinking of having the bash prompt change color or display the ...
0
votes
1answer
25 views

Is it possible to launch the Windows command prompt from Management Console?

I've googled for this quite a bit - I have a custom MMC setup at work that gives me quick access to everything I need, including various web-based admin consoles. The one thing I can't seem to do is ...
0
votes
2answers
795 views

PSExec “access is denied” on WS '03?

I'm trying to execute commands to a remote server offsite and PSExec for some reason is not working. C:\> psexec \\LOC-Server -u AdminUser -p AdminPW cmd This won't even let me run command ...
3
votes
1answer
137 views

How to create a Windows 2008 Advanced Firewall rules group definition through the command prompt

Is there a way to create a group, or add to an existing group, to a rule in Windows Advanced Firewall (preferable through a command prompt or WSH script). Edit:
1
vote
2answers
91 views

Disk Space discrepancy SMB vs command prompt

We have a Windows 2008 server core installation that has a 400GB disk attached to it. When viewing the free space of this disk via the command prompt it reports 35GB free. Computer management also ...
1
vote
2answers
81 views

Why does Windows command prompt stalls until a key is pressed when executing long batch files or programs

I've just had two occurrences of windows 7 stalling an execution until I hit enter on the command prompt/powershell. Afterward execution seems to continue as expected. First was an batch file of copy ...
2
votes
1answer
58 views

I'm having trouble finding these commands to run in a batch file?

I want a batch file to pull information from the first line of a text file (notepad), use that information to add information to a DNS server, and then delete it. I'm thinking if I create a loop, I ...
3
votes
2answers
425 views

Environment Variables in PATH Not Expanded for non-Admin Command Prompt?

I have a Windows 7 machine which, when Command Prompt is run by a normal user, fails to expand environment variables in the %PATH%. If command prompt is instead run as administrator (right click, Run ...
1
vote
2answers
157 views

Specifying date in robocopy destination folder

I would like to specify the date via CLI when running robocopy so that the destination folder includes the date. robocopy C:\folder\ Z:\folder_DATE /E /ZB /COPYALL /NP /V /LOG:F:\backup_log.txt ...
3
votes
2answers
148 views

Open Elevated “Administrator:” cmd prompt instead of “cmd prompt (Running as Administrator)”

If you open a command prompt with a runas command, you will see a window that shows (Running as some_user) In the title bar, but if you right click on cmd.exe and choose Run as Administrator you ...
0
votes
1answer
71 views

How to re-save web.config using command prompt

I'm using a simple cmd batch file to deploy my Asp.net MVC web application to server network share. The problem I'm having is that my DLLs can't be simply replaced by new files since existing ones ...
0
votes
3answers
164 views

Change data path for PostgreSQL

I run PostgreSQL as a Service. In Administration - Services, I can see the following path "C:\Program Files\PostgreSQL\8.4.3-3.1C\bin\pg_ctl.exe" runservice -w -N "pgsql-8.4.3-3.1C" -D "C:\Program ...
2
votes
2answers
70 views

screen not dropping down a line?

Minor annoyance with the Screen linux utility; when connected to a Linux (Fedora) box from my Mac (using Terminal), when I'm writing out a long command, usually when the text reaches the edge of the ...
4
votes
2answers
178 views

Terminal only shows $?

I recently set up a new user using "adduser username" on my server and noticed that when I login I get: $ Also, with my new user there is no folder highlighting, or tab completion. However when I ...
2
votes
2answers
147 views

Know of a trick to sustain quiet ssh connections from firewall auto-disconnects?

Our enterprise firewall is configured to disconnect ssh connections after 30 minutes of of inactivity. Sometimes, I need to perform an operation on a server that requires a sustained connection ...
0
votes
2answers
185 views

wsname logfile to a filename using mac address or hostname

I am using wsname to rename workstations as they are deployed. i have a \logfile switch which changes the default location of the wsname logfile to a folder on the C drive. I want to change this to a ...
0
votes
1answer
168 views

Unlock Windows XP for Command Prompt (and other admin feature)

I have the admin access to a Win XP machine, I want to setup that as a public kiosk and so I go to group policy to disable all Command Prompt, Control panel etc. The problem is, even I have admin ...
1
vote
1answer
150 views

Change Command Prompt Hostname

How can I change the hostname that is in the command prompt. I have [root@domU-12-31-19-93-37-71 ~]# ls Can I change to [root@jasonvaritek ~]# ls
1
vote
1answer
182 views

Command Prompt - see who is on network [closed]

Using Command Prompt... can you see all of the users who are logged on a network?
3
votes
4answers
800 views

Different color prompts for different machines when using terminal/ssh?

I have 5 machines I constantly ssh into to do work. Its getting increasingly frustrating when I am issuing wrong commands on wrong boxes. Luckily I havent done anything bad yet. I wanted to know if ...
0
votes
1answer
69 views

Show command prompt on reboot

In one of my linux machines, when i give reboot command at the shell command prompt then press enter, i get another command prompt and then the system reboots. $reboot $ But in one of my office ...
0
votes
2answers
413 views

Escape TAB in cmd.exe?

I need to pass a tab character into a program from the command-line on Windows. eg: grep "foo<TAB>bar" filename However, cmd.exe's auto-completion gets in the way. On Unix, you can hit Ctrl-V ...
5
votes
2answers
620 views

Weird symbols always appearing in command line (putty / zsh)

I've had this problem for a while and I hope it's a pretty easy fix: In various places, I'll see weird symbols appearing in the command line. Such as 'รข'. It seems like it's replacing some other ...
0
votes
2answers
87 views

How do I set the PATH environment variable to point to JRE version 1.5

Hi there I have a program that requires me to set the PATH environment variable to point to JRE version 1.5 as I need to access the program via a command prompt. So any ideas on how to do that?
0
votes
3answers
350 views

How to convert a elevated command prompt to a regular command prompt?

I have UAC disabled on my system, and all command prompts start as elevated ("Administrator: ..."). Even if I start cmd.exe from the Start Menu, it's still elevated. Is there a way to run a ...
0
votes
1answer
362 views

Telnet session - can't run commands

I have 2 VMs running CentOS 5.0 and I configured telnet on both of them. I can telnet from one to another... but when I type ls or cd at the prompt I get a message like this -bash: ls: command not ...
2
votes
3answers
252 views

What's wrong with this bash prompt?

I use the following entry in ~/.bashrc file to colorize the prompt and display current branch of git repository: PS1='\[\e[1;32m\]\[\u@\h\]\[\e[m\] \[\w\]\[\e[1;1m\]\[$(__git_ps1 " (%s)")\] ...
2
votes
2answers
159 views

Ubuntu server: lost prompt on monitor

I am running Ubuntu 9.04 server edition. I have a monitor plugged into the box for occasional admin tasks. I pulled out a USB disk (without unmounting) and the screen is now full with this message: ...
3
votes
10answers
19k views

Windows command prompt: how to get the count of all files in current directory?

What command would you use in cmd.exe to find the number of files in the current directory? Is there a powershell option here? Update: I was hoping to avoid dir, as I know there are 10,000+ files in ...
2
votes
2answers
936 views

Batch file to call multiple batch files and keep going after errors

I have a batch file like this, the issue that I have is that if the first batch file fails, the second one never gets started, how can I get them to both keep going? @echo off MapNetworkDrive_J.cmd ...
2
votes
7answers
2k views

Command window missing default 8x12 font

Installation: Windows Server 2008 R2 Remote Desktop Service role When I logon locally my command window (cmd.exe) displays with default font that is 8x12. But when I logon remotely and open ...
1
vote
3answers
412 views

How to add Command Prompt Here to a folder context menu in Windows 2003?

I am doing quite a bit of work at the command line and recently started having to do it on a Windows 2003 box. I can't figure out how to add a Command Prompt Here to a folder context menu. And ...
2
votes
4answers
311 views

How can I copy sanely (not using “Mark”) from the Windows command prompt

Given a very long single command at the command line in Windows, I'd like to simply copy that command into clipboard. I am just looking for the ubiquitous Shift-End , Ctrl-C type functionality almost ...
0
votes
2answers
2k views

Automatically capture the output of poolmon

I'm hunting of a memory pool leak using poolmon. In the KB article, they explain how to capture the output manually using cut&paste. Isn't there a way to automate this? Since the tool doesn't ...