1
vote
0answers
38 views

Run a batch file on a remote computer as administrator

I am trying to run a batch file (to install some software) on a remote computer. To do this, I am using PSExec. psexec.exe \\COMPUTER C:\swsetup\install.bat This works fine, apart from some of ...
0
votes
1answer
31 views

Windows firewall - block all incoming connections enable/disable - CREATE SCRIPT

Is it possible to create script which enable/disable the first checkbox of windows 7 firewall settings (Block all incoming connections....)?
-1
votes
2answers
65 views

Run a Script before shutdown or reboot windows 7

I need a registry entry to a run once script at shutdown or reboot. I needs cleanup sensitive data after an installation. So even if the installation failed or got interrupted, i may not leave data ...
0
votes
0answers
26 views

Automating my PC setup builds

The company that I work for orders bog standard computers from Dell. We then set these up with user and machine settings and then install our software on it to sell to out customers. I've set up ...
-1
votes
2answers
45 views

windows 7 turn off sounds via cmd line or powershell

Im looking for a way to write a script hat will turn off sounds. The sounds i would like to turn off are the start navigation sound and the play windows start up sound. is there any script that can ...
0
votes
2answers
50 views

List of MAC addresses for 10 machines

I need to list of MAC addresses for a 10 computers having Windows 7 installed on them. These are named in a series like training1 - training10. There IP addresses are on DHCP mode and update every ...
2
votes
2answers
65 views

Start program, wait until it outputs certain string, then continue

I want my batch script to run a batch script, which doesn't terminate, then run several more batch scripts, which do terminate, and then close the first batch script. The issue is, the first batch ...
0
votes
1answer
112 views

Script to enable/disable IPv4 on a specific network adapter Win 7

For reasons I don't wish to get in to at the moment I need to occasionally disable Internet Protocol Version 4 (IPv4) on my wireless card, then enable it some time later. Currently I go into the ...
0
votes
1answer
31 views

Popup notification for microhone mute

I need to create a script or a batch file to show a notification-like balloon (or a message or icon) when my microphone is muted and unmuted. I understand this can be achieved by task scheduled but I ...
0
votes
2answers
69 views

Can I create a Chocolatey installer automatically based on my currently installed applications? How?

I intend to reinstall Windows on my computer soon and I'd like to make the process of reinstalling all of my applications as seamless as possible. I know you can create a Chocolatey script that can be ...
0
votes
1answer
102 views

How do I write a batch script that iterates through all png files in all subfolders and does an action?

I'm looking to build a small batch script that executes the command line of pngout.exe So far I've got only this down for %i in (*.png) do "g:\myfiles\_pngout.exe" "%i" /s0 /c6 However, for that ...
2
votes
2answers
157 views

Robocopy “modified”

Using robocopy on Windows 8 to automate backing up several different groups of files. It labels all of them as "MODIFIED" all the time though even if I just ran it and haven't touched the files. How ...
0
votes
0answers
150 views

PsExec and invalid handles

I am trying to use a windows batch script that uses PsExec to execute commands on a remote machine. Periodically it has "invalid handle" and the script then fails. The script has not altered or ...
0
votes
1answer
66 views

Is there a way to find out if a Windows 7 workstation has updates turned off in the control panel?

I have a domain with a group policy to run updates every night at 3AM. If the computer is turned off, the next time a user logs into the computer, the updates are downloaded. When the users shuts ...
0
votes
1answer
65 views

ControlC doesn't stop .cmd script in Windows7 CMD window

I work with several Windows7-64 systems. In all but one, typing ^C into a CMD window running a .cmd file, invariably (and expectedly) stops the program. More importantly, if the .cmd script launched ...
1
vote
1answer
37 views

Launch Script for Windows7

Hey guys hopefully I can thoroughly explain what I'm trying to do here! LOL I have a dual display Windows 7 PC and what I am trying to do is launch 2 different programs on boot, and I want one to ...
10
votes
2answers
711 views

What's the difference between the following cmd scripts?

I've tried launching several programs through a batch file and encountered problems but that is in the past. I'm relatively new to scripts and command lines and this would be my question: What's the ...
0
votes
1answer
217 views

Using START /wait with MozBackup batch scripts

OS: Windows 7 64-bit I have three batch files. FirefoxBackup.bat ThunderbirdBackup.bat Firefox_Thunderbird_Backup.bat The script inside Firefox_Thunderbird_Backup.bat is shown below: @echo off ...
0
votes
0answers
51 views

List of LangID KLID input layouts codes for Windows 7/2008

There is one similar list for Windows XP/2003 here. Is anybody aware of a version of such list for Windows 2008/7 mentioning valid input locale ID strings for all languages and keyboard layouts? ...
0
votes
2answers
44 views

How can I swap a file in and out of a directory, in windows 7?

My brother and I play this game on the same computer, but we have different in-game configs Our in-game key binds and some other settings are different, and the game does not support separate ...
1
vote
1answer
76 views

Set IP Address based on User Name

So I have a script from my old XP installation that sets the IP address based on what the username is. Here is the script: 'Get Username set objNetwork = wscript.CreateObject("wscritp.network") ...
0
votes
1answer
272 views

windows script to copy text from one file into a new file

I am noob at coding! I am trying to create a windows script that I can copy text from one file into another. My main goal is to find lines in the text with "started processing" and "file". I am hoping ...
2
votes
1answer
2k views

How to add a network (IP) printer using command line or a script?

My company will be deploying a bunch of laptops that will be used during a seminar for people to sign up for services on our website. At the end of the signup process they will need to print out a ...
1
vote
0answers
173 views

How can I modify the BAT file in this post so it will randomly select 1 background contained in a folder containing multiple backgrounds?

Is there a way to modify the bat file from this post here: How do I set the desktop background on Windows from a script? so that it will randomly select 1 background image from a folder containing ...
1
vote
1answer
165 views

auto hotkey script to convert backward to forward slashes

Though I'm Windows based, I do my web development work in a customized console that mimics much of Unix particularities. One of these is that it uses forward slashes for paths, instead of backwards. ...
1
vote
1answer
111 views

Take automated desktop screenshots on Win 7

What I am visualizing is a script that takes desktops screenshots every 10-20 minutes and stores them in a protected folder. Non-admin users should not be able to disable the script or access the ...
0
votes
2answers
81 views

Write To a specific line of a file in a loop using batch script

I want to write some text in specific lines of a file, for example I want to write in lines 12 and 13, and also I need to do this every 5 seconds. How to do it using batch script?
0
votes
1answer
51 views

Require Password after Login [duplicate]

I have a SSD for boot up ands its fast. I do not want the computer waiting for me to load all of my programs and services. I am the only user on my account. Is there a way to require the password ...
0
votes
0answers
103 views

win7 Shutdown script does not wait for vmware to shutdown

I want to shut down a virtual machine guest operating system before windows 7 host is shut down when pressing the shutdown button. I've tried the solution suggested here ...
1
vote
1answer
1k views

Join to Domain Script - Windows 7

I'm looking for a way to diss-join a machine from a domain and join a machine to a domain via scripts. I searched online and have found the following script that should join a machine to a domain but ...
2
votes
2answers
623 views

Powershell Script to Find & Highlight Specific Files Based on Creation Date

I am trying to write a Powershell Script that checks a certain folder for .zip files. The .zip files contain information from certain backups. These .zip files lie within a folder tree for different ...
2
votes
2answers
125 views

Is there a script that can retrieve the current Windows 7 security updates? [duplicate]

I need a way to download the windows 7 security updates for multiple computers that do not have Internet connections, so running the windows update is out. What I would like is a way that I can ...
0
votes
1answer
207 views

Putty Crashing on Windows 7

Upon running a bash script via exec on Windows 7, putty crashes. The putty application closes unexpectedly without any errors that I can see. How can I figure out why it's crashing? EDIT Running a ...
3
votes
2answers
209 views

unable to set local admin password using GP

I'm updating our local admin script which does not include server 2008 r2. Because 2008 and Windows 7 have same version Microsoft Windows [Version 6.1.7601] so I can't do a version search. I have ...
0
votes
1answer
276 views

Shortcut for toggling the space bar's function

I'm trying to make an AutoHotkey script for making Ctrl+Space toggle the space bar's function. The default function is space. When Ctrl+Space is pressed, the function changes to em space. Search em ...
1
vote
2answers
714 views

How can I write a script to count files modified within a particular month?

I use a PowerShell command to count ZIP files modified within the past 30-ish days, that goes something like this: (gci "\\servername\sharename\foldername\subfoldername\*.zip" | where ...
1
vote
1answer
1k views

How to burn a cd (files not iso) from the command line in Windows 7

I have used robocopy and a script to copy files from various resources. I now want to have my script automatically burn the files I copied to a cd. I'm looking for a command. I have tried xcopy but I ...
0
votes
1answer
230 views

Windows Terminal Emulator with powerful scripting language

I have to deal with a legacy application exposing a CHUI (Character UI, i.e. VT100) on Solaris. Users access this via terminal emulation from Windows desktops. They use macros (sequences of characters ...
5
votes
3answers
4k views

Windows 7 - How to run a script at shutdown but not at logoff

I was wondering if anyone knows how to configure a Windows 7 x64 Enterprise install that is on a domain to run a script if the user attempts to shutdown the computer - but I dont want the script to ...
1
vote
1answer
151 views

NAS and the Command Prompt

I have a Seagate GoFlex NAS drive. I keep my iTunes folder there. Windows has a map from "\GOFLEX_HOME\GoFlex Home Public" to X: This all works fine. From Window's Explorer I can drag and drop files ...
1
vote
1answer
398 views

Script to alert removing a usb drive before logging off

I keep leaving my usb drives connected to the lab machines of my dept.So far I have been lucky to always find it in the lost and found but not having it when you need it gets a bit irritating. Is ...
2
votes
2answers
671 views

How do I create a script to play one random video from a designated folder?

I have a folder full of videos, and would like to assign a script to a shortcut that I can click to open one at random in MPC-HC. I am running Windows 7. Ideally, it would just be a script to open a ...
1
vote
1answer
78 views

Counting files per owner

Using PowerShell how can I count the number of files that each owner has modified in the last 45 days? This is how I am able to get counts by extension in the last 45 days: gci -Recurse| where ...
0
votes
1answer
2k views

Local group policy logon startup script not executing

This is for Windows 7 I have a .bat and .vbs file in a folder. The .bat runs the .vbs script. In the Local Policy Group editor, under Windows Settings/Scripts I added a reference to the .bat file in ...
0
votes
1answer
112 views

Is there software that displays text on top of windows?

Is there software or a script which lets me display text on a Windows 7 screen all the time, always on top of other windows?
0
votes
3answers
1k views

Batch script to append record to csv files

I have a bunch of stock data in csv's that I am backtesting trading strategies on. The problem is that my strategy buys the open market price if a signal was found yesterday, unfortunately my data is ...
1
vote
1answer
771 views

Shortcut for toggling wireless network

Right now, when toggling the wireless network, I press Win+X. Then the Windows Mobility Center appears. I click Turn Wireless On/Off like in screen shot. I scoured the Internet to find an ...
0
votes
1answer
331 views

Script to cycle through folders and copy a specific file

I need a script to cycle through folder and copy the folder name and save it in 'temp'. Then within that folder copy a specific file and paste it into another folder with the name 'temp.dat' For ...
0
votes
2answers
580 views

I need a VB script that executes to update Time Server every time Windows starts up

I need the script to automate Time Server update. I suspect the internal battery that keeps time up-to-date is dead and I don't want to change the battery because I'll discard the laptop soon for a ...
4
votes
4answers
129 views

Download a pdf from a website every 24 hours?

I recently found G24, a pdf that The Guardian updates regularly with news summaries, which I can then print out. Is there a method to download said pdf every 24 hours? It has a static link, as they ...