Sign in to follow this  
Followers 0
frontmill

My Very First Program: Restriction Unblocker

18 posts in this topic

this is my very first program, it unblocks some restrictions that are set by the system administrtor at a lot of companies and schools.

; Start menu & Taskbar
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" ,"NoSetFolders", "REG_DWORD", 0 );control panel and network enable
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" ,"NoSetTaskbar", "REG_DWORD", 0 );Taskbar Options enable

; Internet explorer
;Tabs
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"Accessibility", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"GeneralTab", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"SecurityTab", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"ContentTab", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"ConnectionsTab", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"ProgramsTab", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"PrivacyTab", "REG_DWORD", 0 )
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"AdvancedTab", "REG_DWORD", 0 )
;Other Options
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" ,"NoBrowserOptions", "REG_DWORD", 0 );IE optios enable
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" ,"NoFileOpen", "REG_DWORD", 0 );Open file enable
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" ,"NoSelectDownloadDir", "REG_DWORD", 0 );ability to change download directory enable
    RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions" ,"NoBrowserSaveWebComplete", "REG_DWORD", 0 );Save As enable

;Windows settings
RegWrite ( "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer" ,"DisableMSI", "REG_DWORD", 0 );installer enable
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" ,"NoFind", "REG_DWORD", 0 );Searce enable

MsgBox ( "", "Complete!", "The changes have been made!" , 5 )

Share this post


Link to post
Share on other sites



I haven't tried your code, but the first thing I notice is that you send a message telling the user that the changes were made successfully, but nowhere in your code do you actually confirm that the changes were made - you don't check the returns for the RegWrite() and you don't do a RegRead() to verify the new info.

Share this post


Link to post
Share on other sites

ok thanks for the advice... i'm going to try to make something like that...

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Something more.

By my trial and error, a limited user( users group) cannot write to the "HKEY_LOCAL_MACHINE" keys at all. :think:

just a heads up...

Edited by Hello12345

Share this post


Link to post
Share on other sites

but i only write to user.. not to machine...

Share this post


Link to post
Share on other sites

But you do

;Windows settings
RegWrite ( "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer" ,"DisableMSI", "REG_DWORD", 0 );installer enable

I allso think you rlittle utillity should clean up and restore the settings when your done with the computer. Take a look at RunFromJumpDrive for ideas.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

ok thanks... here is a new version btw:

$succeed = 0
; Start menu & Taskbar
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" ,"NoSetFolders", "REG_DWORD", 0 );control panel and network enable
$succeed = $var + $succeed
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" ,"NoSetTaskbar", "REG_DWORD", 0 );Taskbar Options enable
$succeed = $var + $succeed
; Internet explorer
;Tabs
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"Accessibility", "REG_DWORD", 0)
    $succeed = $var + $succeed
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"GeneralTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"SecurityTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"ContentTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed  
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"ConnectionsTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"ProgramsTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"PrivacyTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed
    $var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Control Panel" ,"AdvancedTab", "REG_DWORD", 0 )
    $succeed = $var + $succeed
;Other Options
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" ,"NoBrowserOptions", "REG_DWORD", 0 );IE optios enable
$succeed = $var + $succeed
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" ,"NoFileOpen", "REG_DWORD", 0 );Open file enable
$succeed = $var + $succeed
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Restrictions" ,"NoSelectDownloadDir", "REG_DWORD", 0 );ability to change download directory enable
$succeed = $var + $succeed
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Policies\Microsoft\Internet Explorer\Infodelivery\Restrictions" ,"NoBrowserSaveWebComplete", "REG_DWORD", 0 );Save As enable
$succeed = $var + $succeed
;Windows settings
$var =RegWrite ( "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer" ,"DisableMSI", "REG_DWORD", 0 );installer enable
$succeed = $var + $succeed
$var =RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" ,"NoFind", "REG_DWORD", 0 );Searce enable
$succeed = $var + $succeed


MsgBox ( "", "Complete!", $succeed & " out of the 16 changes are succesfully completed!" , 5 )
Edited by frontmill

Share this post


Link to post
Share on other sites

I allso think you rlittle utillity should clean up and restore the settings when your done with the computer. Take a look at RunFromJumpDrive for ideas.

I agree, that would be nice. :think:

Nice script.

Share this post


Link to post
Share on other sites

i could do that... but there is no use in it for... the settings get automatically restored on reboot...

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

i could do that... but there is no use in it for... the settings get automatically restored on reboot...

How do you know that? I mean it does on your computer but will it on mine? Edited by Uten

Share this post


Link to post
Share on other sites

if my school.. catches you doing any modifications, looking at porn, or adding games or virus they will ban you from computer .. i don't think they log reg changes, like they log for pornography.. but if they were reset.. no one would no. :think:

Share this post


Link to post
Share on other sites

pretty nice deal you got going here to bad when i install something the days go up and not down so basicaly i have unlimited day trial :think: i have a few macromedia stuff thats like at 70 somethin days instead of 30

Share this post


Link to post
Share on other sites

cool.. would you share how you did that?? maybe in private message.. :think:

Share this post


Link to post
Share on other sites

I would if I knew how, but my bro made the perfect windows, made an ISO out of it with Ghost and so he can install in on all the comps and not have to really do anything so idk sry :-/

Share this post


Link to post
Share on other sites

WARNING: THREAD HIJACK BELOW

I would if I knew how, but my bro made the perfect windows, made an ISO out of it with Ghost and so he can install in on all the comps and not have to really do anything so idk sry :-/

thatsgreat2345: In your signature, $* = "u" However, you write, "Don't worry no one dies a virgin because life f$ucks us all." Shouldn't it be "Don't worry no one dies a virgin because life f" & $* & "cks us all."?

END HIJACK

Share this post


Link to post
Share on other sites

WARNING: THREAD HIJACK BELOW

thatsgreat2345: In your signature, $* = "u" However, you write, "Don't worry no one dies a virgin because life f$ucks us all." Shouldn't it be "Don't worry no one dies a virgin because life f" & $* & "cks us all."?

END HIJACK

lol, I was just thinking that same thing?

[center]AutoIT + Finger Print Reader/Scanner = COOL STUFF -> Check Out Topic![/center][center][font=Arial Black]Check out ConsultingJoe.com[/font][/center][center]My Scripts~~~~~~~~~~~~~~Web Protocol Managing - Simple WiFi Scanner - AutoTunes - Remote PC Control V2 - Audio SpectrascopePie Chart UDF - At&t's TTS - Custom Progress Bar - Windows Media Player Embed[/center]

Share this post


Link to post
Share on other sites

WARNING: THREAD HIJACK BELOW

thatsgreat2345: In your signature, $* = "u" However, you write, "Don't worry no one dies a virgin because life f$ucks us all." Shouldn't it be "Don't worry no one dies a virgin because life f" & $* & "cks us all."?

END HIJACK

Wouldn't it be:

"Don't worry no one dies a virgin beca" & $* & "se life f" & $* & "cks " & $* & "s all."

Share this post


Link to post
Share on other sites

AHAHAHAH happy :think: its now an example of how not to use variables

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0