BleepingComputer.com: Making a .bat run silently via GPO?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Making a .bat run silently via GPO?

#1 User is offline   DnDer 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 605
  • Joined: 25-October 08

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.

This post has been edited by rigel: 08 February 2010 - 06:48 PM
Reason for edit: Moved to a more appropriate forum ~ rigel


#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

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?
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   Grinler 

  • Bleep Bleep!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Admin
  • Posts: 36,603
  • Joined: 24-January 04
  • Gender:Male
  • Location:USA

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 User is offline   DnDer 

  • Distinguished Member
  • PipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 605
  • Joined: 25-October 08

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 User is offline   Grinler 

  • Bleep Bleep!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Admin
  • Posts: 36,603
  • Joined: 24-January 04
  • Gender:Male
  • Location:USA

Posted 09 February 2010 - 11:47 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users