2
votes
1answer
54 views

Network Interface binding order on Windows 8.1

When I query the local interfaces on windows 8 in the command line, I could see the results listed below: C:\> netsh interface show interface Admin State State Type ...
1
vote
2answers
52 views

Windows Server 2012 Can't Delete Folder/Files

I've got a folder with two ISO files in it and I don't need them anymore, however I can't delete the folder! I am an administrator and also the owner of the files. When I try and delete using windows ...
-3
votes
1answer
70 views

How to copy a file with its parent directories on Windows?

I want to do this on Windows command line: copy foo\bar\baz\myfile.txt c:\destination And end up with: (assuming c:\destination existed but was empty) c:\destination\foo\bar\baz\myfile.txt How ...
0
votes
1answer
38 views

Batch file output issue

I am trying to get a batch file to output some data to a CSV file. The command I have works perfectly in the command line but not when I copy it to a batch file. In the batch file, it just hangs and ...
-1
votes
2answers
82 views

Desktop backups maintenance on a network share

I have configured Windows Backup and Restore function on Windows 7 Professional desktops to make daily backup on a network share placed on a Windows Server 2012. (BTW It's a pity that this utility ...
0
votes
3answers
72 views

efficient, simple ‘lazy’ differential FTP upload tool? (i.e. for web dev workflows) [closed]

I am looking (over some time now and with some despair) for a tool, I guess most web developers need: A fast, ‘lazy’ aka ‘differential’ FTP upload tool. To quickly upload (without much server-side ...
0
votes
0answers
87 views

Output results of findstr at a Batch file so they can be read by PHP

I have this Batch file which looks for a string through a the files in the current folder: @echo off for /f %%i in ("*") do ( findstr /m /C:color "%%i" ) Now I would like to output the ...
4
votes
1answer
698 views

Is there a way to find out what printers a user has mapped remotely?

Remotely as in via command line. Not sure if there's a reg key or something similar I can peek at to see if a user has the correct printers mapped.
0
votes
2answers
42 views

How to broadcast a command on Windows

I am going to frequently deploy different versions of a program on a cluster of Windows machines (mostly Windows XP), so I am willing to use a command-line broadcasting tool (either built-in or ...
2
votes
1answer
72 views

Command-line interface for Computer Managment MMC?

I want to make a script that closes open files in our storage. I can do it with compmgmt.msc, connecting to the storage as a remote computer, then I go to "System Tools" --> "Shared Folders" --> ...
2
votes
2answers
169 views

How Can I Create Multiple Files of a single file in multiple Directories?

Hello I am trying to create multiple copies of a single file in multiple directories? for example I have 6 folders with a single file in each folder named lp.html, How can I run a batch to create 100 ...
-3
votes
3answers
48 views

VM Connected to a Domain

I'm working with an automated tool that deploys VMs to center. It is setup within the customspec to be connected to a domain [windows]. After the VM is clone, we get a success state from VMWare that ...
0
votes
1answer
68 views

Share CIFS mounted drive with all users

A CIFS share, mounted as network drive, seems to be visible only to the user who set it up. Is there a way to make the drive accessible to all the local users on the system ? Trying to achieve this ...
0
votes
1answer
561 views

run winexe on linux in order to exe CLI commands on WIN server ( workgroup server )

winexe is tool that can execute commands on WIN machines from Linux servers winexe syntax should be as the following: winexe -U [Domain/]User%Password //host command Because I have windows 7 ...
0
votes
1answer
64 views

Windows Azure Cloud Service - add Local Security Policy to a user account in startup task

I have a Windows Azure Cloud Service project that includes a startup task Startup.cmd file to create some scheduled tasks. In this file I am using the command line to create a user account which I ...
0
votes
2answers
324 views

Windows 8 - Firewall Issues from Command Line

I created the following script basically to block absolutely everything and only allow through what I want, however it's not allowing through what I like in regards to the internet. Can anyone see an ...
4
votes
3answers
432 views

How to detect current media type in CLI under Windows? (DVD-RW, BD-R, etc)

How to detect current media type in CLI under Windows? (DVD-RW, BD-R, etc) I've tried with wmic cdrom get /format:list but no info about the current media type. I want to detect if the disc is a CD, ...
1
vote
3answers
1k views

Changing the Permissions on a Windows Share Remotely?

I read about the Net Share command a lot of places. It appears to have the ability to stop a remote share from being shared using the /DELETE argument, and it also appears to be able to add users to ...
0
votes
0answers
45 views

Display only the last line of a windows command line executable

I'm trying to write a batch script that manages simple software deployments. One of the steps in the script compresses a file structure into a 7zip archive. During the compression process, the z7ip ...
-1
votes
1answer
78 views

NSLookUp using CLI in windows [closed]

My question is an amateur one. I'm looking at traffic going to and from my computer. When I find an IP address that looks suspicious I use NSLookup on it. If I was to say put random IP addresses in ...
0
votes
1answer
116 views

Is it possible to execute remote GUI process locally in Windows?

I know that Linux can open - for example - a firefox window in a local pc as if it was a window opened remotely. Can I do the same thing in windows? N.B. I use PsExec but it can launch a program from ...
0
votes
0answers
249 views

windows command line start mysql with --skip-networking

Following How to start a service with certain start parameters on Windows. Any ideas why the following doesn't work? sc start MySQL --skip-networking mysql -uroot -p -e "show variables like ...
-2
votes
1answer
90 views

Windows Command Line - Multiple PHP Versions [closed]

I am currently running Wampserver with multiple PHP versions (5.3.8, 5.4.3). Wampserver easily allows you to switch back and forth between the php version you want apache to use. However, I'm having ...
1
vote
3answers
9k views

Is there a built-in command-line tool under Windows like wget/curl?

I come from a Linux/Unix background and I have been wondering if Windows has a binary that can download files from the console. I would like to automate a certain process and one of my requirements ...
0
votes
1answer
103 views

Differential backup missing moved folders (flawed archive attribute logic)

Recently I've discovered that my backup system it flawed: there are situation where various files/folders are missed. I do my backup from local disk to a network NAS. I use Cobian backup, and I have ...
-2
votes
2answers
575 views

How to make differential backup without using archive attribute? [closed]

Plain and simple: I need to make differential backup of my files without using the typical file attribute logic. Possibly with a free software. So the software I need should rely on it's own indexing ...
1
vote
1answer
316 views

net use password limitations

I'm trying to mount a network folder in a script using net use, and I keep getting a bad password error. I'm using the following syntax: use \\server\share password /User:serviceaccount Doing it ...
3
votes
2answers
284 views

How can I find my public ip address with built in system commands without relying on any third party websites or services? [closed]

Are there any built in system commands such as ping that let me discover my public ip-address either on a Windows or Linux operating system? This should not rely on any third party websites or ...
1
vote
1answer
79 views

FOR works at prompt, but not in script file?

As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK ...
2
votes
1answer
2k views

How to Extract command-line output into a Variable?

As part of a task that I am working on for a customer, I need to make some modifications to the enterprise logon script. Windows command-line is definitely not my area of expertise, but I am doing OK ...
5
votes
2answers
3k views

Windows: How do I add a program to the system's path environmental variable from the command line?

I'm looking to permanently add a directory to the %PATH% environmental available on a large number of Windows machines. Is there any way to do this from a command line (cmd) so I can script up a ...
5
votes
3answers
5k views

How to clear Windows event logs using command line?

Normally I can open the Computer Management console, go to the Event Viewer snap-in, open the Windows Logs folder, right-click on Application/Security/Setup/System subfolder, choose Clear Log and ...
1
vote
1answer
47 views

Scheduled capture from COM port

I want to capture COM output to a daily file. I can capture manually, using something like RS232 Data Logger, but I want to run a scheduled task so I get a daily log of the data captured. Is there ...
-1
votes
2answers
90 views

Find Hostname by having IP-Address

Is there a way to find out hostnames only by having the IP's of the hosts, while only using Windows' command line (cmd)?
3
votes
1answer
347 views

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

Is there a way to see the path of a program executed from the Windows CLI?

If I type a command in the prompt, the command processor searches it in current path, and then (if not found) in the paths listed in PATH environment variable. So is there a way to easily know in ...
0
votes
1answer
73 views

VPN Server on Windows server 2003 with command

Is there any way to create VPN Server using command line on Windows server 2003 ?
9
votes
4answers
2k views

How can I tell if Windows is running in Safe Mode?

I have a Windows server that will sometimes reboot into safe mode after updates. I'm working on that issue but what I'd really like to know is how can I check to see if Windows is running in safe mode ...
1
vote
1answer
160 views

How to dump certificate file from installer via command-line?

I'm building a script that will download and install a bunch of programs. One of those programs depends on a virtual driver, which needs its certificate to be imported in order to function. Normally, ...
29
votes
2answers
21k views

How can I connect to a Windows server using a Command Line Interface? (CLI)

Especially with the option to install Server Core in Server 2008 and above, connecting to Windows servers over a CLI is increasingly useful ability, if not one that's very widespread amongst Windows ...
0
votes
3answers
191 views

copy directory including 'base' folder

I need to copy folderA into folderB via the command line: c:\temp \folderA \folderB should become c:\temp \folderA \folderB\folderA That is, exactly the same ...
5
votes
1answer
10k views

Command to remove computer from non-existant domain

I lost my domain controller machine, and then add new domain controller but with a new domain. How do I remove network machines from old domain using command line and add to new domain? Machines ...
-2
votes
2answers
3k views

Is there a Windows command line utility to verify user credentials?

On a Windows platform, is there any command line utility that I can pass a username, password domain name to in order to verify the credentials (or possibly give an error that the account is disabled, ...
0
votes
1answer
124 views

Escaping characters when calling ssh from windows

I need to call an ssh command from a Windows command prompt that will execute a command on a remote Linux machine. The command accepts two string parameters, one of which can potentially be ...
0
votes
0answers
195 views

Windows Group Policy CMD scripting problems, XP

I am creating a local group policy to lockdown an XP work station. I have used "Run only allowed Windows applications" to create a whitelist of aproved apps. CMD.exe is on that list but I want to use ...
1
vote
1answer
147 views

Windows Command-Line Utilities Started Prompting for Password

Recently my computer started prompting for the password of my domain account (that I am logged on as) when running command-line tools such as tasklist or taskkill on remote domain computers. On other ...
-4
votes
1answer
196 views

Command line: View network duration [closed]

I can see network duration in lan status snippet. How can I see it in command line?
2
votes
1answer
2k views

CPU Usage while running command in command line

I am looking for a way to output CPU usage percentage via the command line. I ran across this: wmic cpu get loadpercentage which gives me the desired percentage output however I want to test the CPU ...
2
votes
2answers
4k views

Can I send CTRL-BREAK and/or CTRL-C to a running process in Windows?

I have a Windows Console application that will be running for an extended period of time. This has been developed in house and tests have shown that over time memory usage grows and other bad things ...
0
votes
2answers
2k views

Command-Line folder structure on Windows

I need to create a folder structure via command line, structure is as follows : username > folder1 > folder2 > folder3 (and there are subdirectories within these folders as well) This is a windows ...