All Questions
Tagged with batch-file group-policy
19 questions
0
votes
1
answer
2k
views
Group Policy scheduled task for running .bat file applies, but task does not create
I am trying to add a scheduled task to run a batch file that updates / installs software. I created a GPO to create the task, using these settings:
Task Settings
Task settings 2
Task settings 3
For ...
0
votes
0
answers
327
views
Best Method For Clearing User Data On Shared Windows Device?
I have had a client request that I setup a user account on a Windows device that will clear all user profile data once the account has been logged off. The computer is a shared device that will be ...
0
votes
1
answer
3k
views
running batch file as administrator privilege in clients with gpo(scripts/logon)
I want to run a batch file on all my domain clients via gpo(scripts/logon), but the problem is that to run a batch file, administrator privilege is required.
I wanted to know is there any command or ...
0
votes
0
answers
860
views
GPO to detect if application is installed, if not install it and then create log file
@echo off
IF NOT EXIST "C:\Program Files\APPLICATION_DIR" ( msiexec /q /i "https://www.SOME-WEBSITE.com/software/APPLICATION_NAME_x64.msi" LICENSE_KEY="LICENSE_KEY_GOES_HERE&...
1
vote
2
answers
2k
views
Push out Commands to all Domain PCs
I'm looking for a way to push out commands to all workstations. The scenario is as follows:
I often go to environments that I am not familiar with to audit the network. Part of that is a network scan, ...
1
vote
2
answers
291
views
Advanced PDF File Associations on Domain
I have a complex setup that I'm having issues getting to work properly. Microsoft is so aggressive at defaulting PDFs to Edge. Edge gives our organization so many problems when working with PDFs and ...
0
votes
2
answers
7k
views
Run Log-on Script with Admin Rights
I created a batch logon script that checks and removes old versions of a specific piece of software and installs the newest version. Both the install and uninstall process use an .EXE file. The script ...
3
votes
1
answer
3k
views
Running Batch file with elevated rights through GPO
I have a shortcut that specifically uses Google Chrome. We have XP and Windows 7 in our environment, and I want to only use one shortcut for both OS. The reason being is that our environment is quite ...
3
votes
3
answers
102k
views
Can I Deploy a batch file with Group Policy to run as administrator?
I have created a batch script which will block Facebook by amending the hosts file in this location C:\windows\system32\drivers\etc\hosts
This is the contents of the batch file:
@echo off
echo 127.0....
0
votes
1
answer
148
views
Creating batch files from txt files - is this right?
Forgive me if I am completely of the rails here, but....
I am just learning about Group Policies and Domain Controllers etc. and I have a some .bat files, now I can edit them in notepad or any text ...
0
votes
2
answers
9k
views
Install RSClientPrint for Reporting Services 2012 using .bat file and still be able to use 2005
I have a Reporting Services 2005 server that when users accessed it and tried to print reports would get a message asking them to install the print control, which they could not do because of lack of ...
15
votes
1
answer
6k
views
Is MSIZAP still useful, or is it obsolete?
I update flash using MSI files installed by group policy. However, with every update, about a third of the workstations fail to update (Windows Vista and Windows 7 32/64-bit editions). In the event ...
0
votes
1
answer
2k
views
How do you log the output of startup.bat from a GPO?
I'm trying to write some .bat files for GPO. I would like a way to see the output of the script to help debug problems. For the life of me I can't get it to log anything.
I have tried the following....
0
votes
1
answer
114
views
Batch file installing executable only gives SYSTEM permissions
So, I have a couple of batch files that install some executables and they work, but when the executables setup shortcuts on the desktop only SYSTEM has access to them. Is there a way I can prevent ...
1
vote
4
answers
2k
views
Setup.exe called from a batch file crashes with error 0x0000006
We're going to be installing some new software on pretty much all of our computers and I'm trying to setup a GPO to do it. We're running a Windows Server 2008 R2 domain controller and all of our ...
6
votes
2
answers
14k
views
Mass delete mapped & local printers
Is there any way to mass remove all local and network mapped printers from all workstations on a domain via group policy or a batch file?
I need to remove local Windows 7 printers such as Fax, ...
0
votes
3
answers
2k
views
I Cannot create a .BAT file in the root of C "Access is Denied" Server 2k3
I have an oracle db server on a windows 2k3 box. I am currently unable to create or copy a batch file to the root of c. I can create batch files on different folders (i.e. in my user directory) or I ...
1
vote
4
answers
907
views
Preventing a program from opening
I am supporting a few offices across the country running Windows XP. They are stand alone, no Windows Server or Active Directory, anything like that. I just switched them over to Google Apps, and in ...
17
votes
3
answers
46k
views
How can I edit local security policy from a batch file?
I am trying to write a utility as a batch file that, among other things, adds a user to the "Deny logon locally" local security policy. This batch file will be used on hundreds of independent ...