CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Question Start > Run Command Blocking

    how to block executing some commands that user input in the Start > Run.

    for e.g. if the user inputed regedit or cmd i want block the command and prevent them from opening.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  2. #2
    Join Date
    May 2004
    Location
    Osijek
    Posts
    61

    Re: Start > Run Command Blocking

    Check group policy.
    Here is example for server, but same thing is applicable for client also.

  3. #3
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Start > Run Command Blocking

    thanks medved.
    is it the only way or there are other ways like using the windows registry?
    Last edited by toraj58; February 6th, 2009 at 12:50 PM.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  4. #4
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Start > Run Command Blocking

    Quote Originally Posted by toraj58 View Post
    thanks medved.
    is it the only way or there are other ways like using the windows registry?
    Group Policy is the ONE proper way to do it.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  5. #5
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Start > Run Command Blocking

    ok, thanks.
    but how can i do it in c#?
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  6. #6
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Start > Run Command Blocking

    Quote Originally Posted by toraj58 View Post
    ok, thanks.
    but how can i do it in c#?
    Did you try something really radical...like looking at the documentation on MSDN????

    Using Key Words of Group Policy Edit C# give some very good information.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  7. #7
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Start > Run Command Blocking

    it is not possible in the project to call external application (exe file) so how i can executes policies in the policy scripts?

    i need to hard code everything in my module.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  8. #8
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Start > Run Command Blocking

    IPSEC maybe?
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  9. #9
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: Start > Run Command Blocking

    what can i do with IPSEC?
    as i know it is for securing IP protocol.
    would you please explain more.
    thanks.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured