Tagged Questions
0
votes
1answer
24 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 ...
-1
votes
1answer
28 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 ...
5
votes
3answers
106 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
2answers
51 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
22 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
33 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
57 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
40 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
32 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 ...
0
votes
0answers
174 views
How to enable Internet Connection Sharing using command line in Windows 7 and 8 [closed]
I spent around 4 hours looking for this thing, but finally I got forced to ask it here. I want to enable a Network Connection sharing from lets say Local Area Network to Wireless Hotspot either ...
1
vote
2answers
170 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
0answers
53 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
109 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
86 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
141 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
65 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 ...
0
votes
1answer
311 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
241 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 ...
3
votes
2answers
579 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
28 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 ...
0
votes
0answers
42 views
How to redirect the output of the vmrun listProcessesInGuest command on windows?
I run vmrun.exe with listProcessesInGuest on the command line and get the list of processes displayed in the console window.
The exact command line is:
"C:\VIX\vmrun.exe" -T vc -h ...
0
votes
2answers
69 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
150 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
73 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
65 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
776 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 ...
0
votes
1answer
98 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, ...
25
votes
1answer
3k 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
86 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 ...
-3
votes
1answer
545 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
81 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
131 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
96 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
118 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
1k 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
2k 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
1k 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 ...
1
vote
2answers
412 views
How can I create a scheduled task from the command line that only runs on demand?
I"m trying to duplicate the steps in this article for creating a shortcut that launches a program without a UAC prompt. I'd like to create the task from the command line, however.
Here's the ...
5
votes
3answers
404 views
How to get an IP Address from a disconnected terminal services session
I'm using qwinsta and rwinsta to manage disconnected sessions at the moment. I usually get something like this:
SESSIONNAME USERNAME ID STATE TYPE DEVICE
console ...
1
vote
3answers
3k views
Execute Windows SC command as another user
I would like to execute the SC command against a network target as a different user. I need to be able to specify username and password on the commandline as well, as this is for scripting purposes. ...
3
votes
2answers
427 views
Is there a .history file on Windows machines?
Is there an auditable file on a Windows machine that shows the command-line history for either cmd or PowerShell? On UNIX machines I believe there is a hidden file in the home directory called ...
1
vote
1answer
956 views
Wget from HTTPS url using user/password -still getting 400 error
I'm trying to run Wget for a certain HTTP url, also using http-user and http-password command line options (tried the --user and --password, same results).
Using the --no-check-certificate options as ...
1
vote
0answers
73 views
Is it possible to set up a pptp server in windows via console?
I want to be able to turn a machine into a pptp server from commandline so that it can be scripted, is this possible?
0
votes
4answers
412 views
Windows XP batch file to block all incoming and outgoing traffic
Is it possible to block all incoming and outgoing traffic on a Windows XP host via batch file?
Bonus question, I only want to allow 1 outgoing port and all traffic going over that port.
0
votes
1answer
491 views
How to change the proxy settings for the Network Service account from the command prompt?
Currently, I am only aware of the following command:
C:\>bitsadmin /util /SetIEProxy NetworkService MANUAL_PROXY 1 92.168.0.200:8080 NULL
But, it has the following defects:
It is deprecated
It ...
2
votes
1answer
61 views
Scripted printer configuration changes
I've got about a dozen Windows XP machines that I need to make a couple specific printer configuration changes to. The printer is local "virtual" printer connected to a program for an electronic ...
0
votes
3answers
2k views
how to get default gateway of certain adapter in windows bat?
Please see below ipconfig output in windows.
C:>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection 11:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . ...
3
votes
2answers
461 views
Display complete command line (including arguments) for Windows process
I want to display a process's command line (including any arguments) from the command line itself. In other words, I want to show the "Command Line" column in the Task Manager but from a command line. ...
4
votes
5answers
6k views
Can you change windows update settings via command line?
I sent out some servers(running server 2008R2 x64) without checking their windows update settings...fail. By default they are set to automatically download and install. I need them to download but ...
2
votes
1answer
1k views
How to delete scheduled task from command line without confirmation? (schtasks delete)
I can create a task from command line like this:
schtasks /create /tn SomeTask /tr "do.bat arg1 arg2" /sc ONCE /st 00:00:00 /sd 01/01/1991
and now I need to delete it. However the command needs to ...
