Questions tagged [batch-file]

batch files are simple text files executed in a command to achieve a particular task or a set of tasks

batch files are text files containing commands executed in sequence to achieve a particular task or a set of tasks. They can be very simple, or can contain complex logic.

440 questions
1
vote
0 answers

Data Execution Prevention - Optout for the exe in “C:\Program Files\SSS\sss.exe” using Command Prompt

Can any one help me in adding "C:\Program Files\SSS\sss.exe" in DEP Exception list using Command Prompt?
1
vote
1 answer

Is there a way to run a script file that searches for files BUT excludes hidden files and folder?

I need to search some windows servers for files created after a certain date. I have set something up with forfiles but would like to speed up the process and reduce file size of the output file by having it NOT search hidden files and folders. I…
mrbarker
  • 137
  • 10
1
vote
1 answer

Do CMD scripts run faster than BAT scripts?

I recently heard from someone that Windows Admins should use CMD logon scripts over BAT logon scripts, as the run or execute faster. Apparently BAT scripts are notoriously slow. I've done a bit of a google and I can't find any evidence to backup…
Hammer
  • 39
  • 4
1
vote
0 answers

Running psexec on Windows Server 2008 R2 from Windows 7

I'm trying to successfully run a batch file located on a server pc (Windows Server 2008 R2) from my Windows 7 client PC. But its not working and the command prompt shows the following error information message. When I run psexec \\199.219.21.141 -u…
this-Me
  • 111
  • 2
1
vote
1 answer

Run an executable on a remote computer with a batch file

I'm trying to see how to setup a batch file that a user would run from an application hosted on Citrix XenApp, such that it launches a .exe from their local computer rather than open the application from the remote session. I was hoping to find a…
samalkobi
  • 41
  • 2
  • 5
1
vote
2 answers

Batch File to Automatically Install List of Drivers without User Interaction

At work, one of the tasks I am responsible for is resetting computers to their factory settings and installing the updated drivers. Lenovo makes this easy with their System Update tool, but Dell and other companies require you to install drivers…
1
vote
2 answers

Bat file in another account

I have a bat file which will delete files in some folder (Profile Folder). But i do-not have access to that folder. But another account has access to the folder. How to run a batch file from one account by login into the another account which has…
Jaison
1
vote
1 answer

IIS backup on Multiple servers from Powershell

Can someone help me with backup of IIS on multiple servers from powershell script remotely. I can take backup of IIS from powershell command. backup-webconfiguration -name IIS_backup. Also i have a batch script which takes backup but that works only…
Abhishek
  • 121
  • 5
1
vote
2 answers

Remove Proxy Setting in Batch File

I want to create a batch file to remove Internet Explorer proxy settings check box. Not to grey it out - but to remove IE from using proxy settings. Anyone got any scripts for me?
The Woo
  • 579
  • 6
  • 21
  • 39
1
vote
1 answer

Vista Batch File Limits

We have created two batch files which set two lots of folder permissions. T:\folder1 level1 all get read only permissions. T:\folder1\subfolder1 level2 all get change permissions. The batch files we have created work fine and get through to H in…
user14930
  • 159
  • 1
  • 2
  • 11
1
vote
4 answers

Batch file link with parameters

I have a script which generates an Email with information based on the computer it was just run on. In the Email there is also a link to another batch file (which runs an exe) that I would only need sometimes, said batch file needs to be executed…
1
vote
6 answers

How to rename machines after image install

Today I am deploying 20 brand new Dell workstations. These will all be for public use at a local library and will be replacing 20 older workstations, which will be moved to another branch of the library, all today and by me alone. Once deployed, I…
cop1152
  • 2,656
  • 3
  • 21
  • 32
1
vote
1 answer

Task to delete a directory runs with success but the directory is still there

I have a task in the task scheduler on a Windows 2012 file server. The task has to delete the contents of a temporary general access directory every Sunday night. It runs at the scheduled times and reports success each time but the directory…
Montag451
  • 248
  • 1
  • 4
  • 19
1
vote
0 answers

Losing stdout when process restarts itself in windows

I have for example a NodeJS process running with Nodemon, and all the output redirected to a file. nodemon example.app > 123.log When I change any file in the node app, the NodeJS process is restarting itself and after that all log messages go to…
marty
  • 41
  • 2
1
vote
1 answer

Why is execution of batch files different between drag & drop and from command line?

Ok, so I've been trying to figure this out for hours with no progress. I have created a batch file to get details of a VHD. Everything runs fine and produces the expected results when run from the command line in a command prompt. However, when I…
Dharma Leonardi
  • 161
  • 2
  • 6