Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Making a .bat run silently via GPO?


  • Please log in to reply
4 replies to this topic

#1 DnDer

DnDer

  • Members
  • 646 posts
  • OFFLINE
  •  
  • Local time:08:35 PM

Posted 08 February 2010 - 12:10 PM

Here's my batch file, in its entirety:

@echo off
 
NET USER Administrator newpasswordhere

I've been on the search engines and seen suggested adding "/B" before the command I'm executing (didn't work) and "/Silent" after the command I'm executing (also didn't work). What sort of switch or extra line can I add to the code to make it run silently?

It is part of the group policy that starts when a user logs onto the network. But they're still getting prompted with, "This publisher could not be verified. Are you sure you want to run this software?" It should be something that no user sees.

Edited by rigel, 08 February 2010 - 06:48 PM.
Moved to a more appropriate forum ~ rigel


BC AdBot (Login to Remove)

 


#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:07:35 PM

Posted 08 February 2010 - 07:07 PM

Sure, after you set the UAC to 'off'. Surely you can understand that allowing any sort of file to run silently is a huge security risk?

#3 Grinler

Grinler

    Lawrence Abrams


  • Admin
  • 43,472 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:09:35 PM

Posted 09 February 2010 - 09:59 AM

I don't think this a uac issue, but rather the confirmation on whether to run unsigned programs. Instead of having it launch a batch file, why not just add it to the users login script for the domain?

#4 DnDer

DnDer
  • Topic Starter

  • Members
  • 646 posts
  • OFFLINE
  •  
  • Local time:08:35 PM

Posted 09 February 2010 - 11:33 AM

My boss would like me to do it this way as a learning exercise before I go and break the login script. :thumbsup:

#5 Grinler

Grinler

    Lawrence Abrams


  • Admin
  • 43,472 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:USA
  • Local time:09:35 PM

Posted 09 February 2010 - 11:47 AM

This may help:

http://social.technet.microsoft.com/Forums...14-5a20ce72cd7f




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users