Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Applying a regFile vai VBS?

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,40394
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Applying a regFile vai VBS?
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Applying a regFile vai VBS? - 12/5/2006 4:36:07 AM   
  stephen.wolfe

 

Posts: 74
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: offline
Hi all!

I've spent a few miniutes using search but I haven't come up with samples (samples are good) on how to apply a registry file.

Quick background, the AMC NOSC in its wisom applied a GPO against our OU (921 machines) that only 245 machines should have gotten.  Their fix in this matter is to send me a regfile and tell the helpdesk to go out logon as administrators and then double click on said reg file and our problems will go away.

How can I do this via VBS?  Would it be as easy as:


      

Or, is there another way?

_____________________________

Steve
 
 
Post #: 1
 
 RE: Applying a regFile vai VBS? - 12/5/2006 4:57:46 AM   
  ebgreen


Posts: 4970
Score: 31
Joined: 7/12/2005
Status: offline
try:

Set oShell=createobject("wscript.shell")
oShell.run "regedit /s CACUndo.reg"

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to stephen.wolfe)
 
 
Post #: 2
 
 RE: Applying a regFile via VBS? - 12/5/2006 5:05:26 AM   
  stephen.wolfe

 

Posts: 74
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: offline
Gee, thanks!!!  That makes more sense.

Thank you very much!



_____________________________

Steve

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Applying a regFile via VBS? - 12/5/2006 6:57:56 AM   
  CaffeineAddiction

 

Posts: 144
Score: 0
Joined: 2/9/2005
From:
Status: offline
LoL, totaly off the wall question ... and one that im sure will not be seen by the OP, but cant hurt to ask ... may I have a copy of this CACundo.reg please ... I would very much like to see it.

_____________________________

Thanks for Answering my Questions ... I hope my Answer to your questions help!

(in reply to stephen.wolfe)
 
 
Post #: 4
 
 RE: Applying a regFile via VBS? - 12/5/2006 7:06:56 AM   
  stephen.wolfe

 

Posts: 74
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: offline
Sure, as soon as I get it working. 

The logic is detect if client is a SDC compliant client, if so, exit script.
If not a SDC compliant client then apply reg file.

The script has to be run under the local admin account security context.

I'm working on the SDC detection logic now using the WMI service.

You must be at an USAF base, huh?


_____________________________

Steve

(in reply to CaffeineAddiction)
 
 
Post #: 5
 
 RE: Applying a regFile via VBS? - 12/6/2006 12:19:55 AM   
  mbouchard


Posts: 1916
Score: 16
Joined: 5/15/2003
From: USA
Status: offline
Stupid question, but have they removed the setting from GPO?  So that it will not be reapplied.

_____________________________

Mike

For useful Scripting links see the Read Me First stickey!

Always remember Search is your friend.

(in reply to stephen.wolfe)
 
 
Post #: 6
 
 RE: Applying a regFile via VBS? - 12/6/2006 5:08:08 AM   
  stephen.wolfe

 

Posts: 74
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: offline
They will remove the GPO this Friday.  I have got the script working, but I think the USAF NOSC guy sent me the wrong reg file, because the settings look just like the settings set for locking the desktop when the CAC card is removed.

This is the reg file they sent me:


      

See where the Value Type is set to a value of (1).  That means to lock workstation on card removal.
This afternoon I'm going to do a few tests to confirm my suspicions.

It is easy enough to change the value to (0) and that is what I think it should be ...

You aren't an SC or A6 troop are you?


_____________________________

Steve

(in reply to mbouchard)
 
 
Post #: 7
 
 RE: Applying a regFile via VBS? - 12/6/2006 5:25:27 AM   
  CaffeineAddiction

 

Posts: 144
Score: 0
Joined: 2/9/2005
From:
Status: offline
Yah, 3c0 ... help desk tec over in the desert at the moment.

As far as the reg ... i checked it against my settings ... they are identical to what I got. and I can pull the card out with nothing happening. I think they just gave you the wrong reg key.

shoot me an email @ global > auab > lord (should be the only one there /w caoc cst in the display name) and I will hook you up with all the SeCEdit keys I got

PS - Thanks for the .Reg

< Message edited by CaffeineAddiction -- 12/6/2006 5:57:48 AM >


_____________________________

Thanks for Answering my Questions ... I hope my Answer to your questions help!

(in reply to stephen.wolfe)
 
 
Post #: 8
 
 RE: Applying a regFile via VBS? - 12/6/2006 10:12:53 PM   
  stephen.wolfe

 

Posts: 74
Score: 0
Joined: 8/9/2005
From: Tampa, FL
Status: offline
What they gave me is the key set to lock desktop upon card removal. The valuetype parameter has to be set to '0' for the feature not to lock the desktop on non-SDC clients.  If the client is SDCed, it appears changing the value doesn't make any difference - maybe, they have a GPO controlling that behavior ... I don't know.

My boss is fixin' to go down range and will BOG at a yet undisclosed location 5 Jan 2007.  You're just TDY, right, with your home base being Goodfellow?

_____________________________

Steve

(in reply to CaffeineAddiction)
 
 
Post #: 9
 
 RE: Applying a regFile via VBS? - 12/7/2006 12:31:05 AM   
  CaffeineAddiction

 

Posts: 144
Score: 0
Joined: 2/9/2005
From:
Status: offline
On a 4 mo rotation, but yah.

As far as what they gave you ... they gave you what I already have.  And I can remove my card with nothing happening ... either they gave you the wrong key, or there is another key that needs to be changed as well

_____________________________

Thanks for Answering my Questions ... I hope my Answer to your questions help!

(in reply to stephen.wolfe)
 
 
Post #: 10
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Applying a regFile vai VBS? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts