473,657 Members | 2,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Granting Security Permissions

I have written an application, using VB.NET 2002 which can control the
W32Time service (aka "windows time"). Basically, what it does is stops the
service, waits for 5 seconds, then configures it and restarts it.

Now, the only way I can get this application to work is to have it trusted
by the machine that is running it. This however is going to cause problems
when I deploy it, since I would then have to go around every machine in our
office (around 150 at the last count), and manually have them trust the
assembly. Furthermore, any modification made to the assembly would require
each machine to be set up with the trust again.

Is there any way of programmaticall y fixing the application so that, when
loaded, it automatically assumes the user permissions necessary to allow the
W32Time service to be stopped, configured and then restarted?

TIA

Ian Henderson
Database Developer, VBA Programmer and very Novice VB.NET 2002 Developer

Now, this application works on my machine, becau
Nov 20 '05 #1
2 2173
You can roll out the program using SMS if you are on a domain.

"Ian Henderson" <ih********@ess entiagroup.com> wrote in message
news:bj******** ***********@new s.demon.co.uk.. .
I have written an application, using VB.NET 2002 which can control the
W32Time service (aka "windows time"). Basically, what it does is stops the service, waits for 5 seconds, then configures it and restarts it.

Now, the only way I can get this application to work is to have it trusted
by the machine that is running it. This however is going to cause problems when I deploy it, since I would then have to go around every machine in our office (around 150 at the last count), and manually have them trust the
assembly. Furthermore, any modification made to the assembly would require each machine to be set up with the trust again.

Is there any way of programmaticall y fixing the application so that, when
loaded, it automatically assumes the user permissions necessary to allow the W32Time service to be stopped, configured and then restarted?

TIA

Ian Henderson
Database Developer, VBA Programmer and very Novice VB.NET 2002 Developer

Now, this application works on my machine, becau

Nov 20 '05 #2
Pardon my ignorance, but what do you mean?

Surely you don't mean SMS as in Text Messages, do you?

If this can be done using VS2002 then I'm seriously interested.

Ian

"Scott Meddows" <sc************ ******@tsged.co m> wrote in message
news:e3******** ********@TK2MSF TNGP09.phx.gbl. ..
You can roll out the program using SMS if you are on a domain.

"Ian Henderson" <ih********@ess entiagroup.com> wrote in message
news:bj******** ***********@new s.demon.co.uk.. .
I have written an application, using VB.NET 2002 which can control the
W32Time service (aka "windows time"). Basically, what it does is stops

the
service, waits for 5 seconds, then configures it and restarts it.

Now, the only way I can get this application to work is to have it trusted by the machine that is running it. This however is going to cause

problems
when I deploy it, since I would then have to go around every machine in

our
office (around 150 at the last count), and manually have them trust the
assembly. Furthermore, any modification made to the assembly would

require
each machine to be set up with the trust again.

Is there any way of programmaticall y fixing the application so that, when loaded, it automatically assumes the user permissions necessary to allow

the
W32Time service to be stopped, configured and then restarted?

TIA

Ian Henderson
Database Developer, VBA Programmer and very Novice VB.NET 2002 Developer

Now, this application works on my machine, becau


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
10112
by: LazyAnt | last post by:
Hello, I have DB2 v8.1 for Linux for a class environment; each user has his/her own database as dbadm and they are suppose to study queries from another database. They have the right permissions to this database so they can do the SELECTS but they cannot alter the tables. Now I want them to be able to study the query plans.
1
4444
by: edge | last post by:
hi, here it is my problem. My console app, reads a text file where it grabs username/password. Next, my app creates a .BAT file to trigger the command ftp:\\user:password@ftphomeaddress. Then, I use Process() to start the batch. In my local machine, the app runs just fine. But the users
0
2083
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to allow it ro run then it will execute, the code execution depends on the permission provided to the assembly. If the code is not trusted wnough to run or it attempts to perform an action which doe not have the required permissions then its execution...
16
2102
by: Marina | last post by:
Hi, I am trying to find the minimum security settings to allow a windows control embedded in IE have full trust. If I give the entire Intranet zone full trust, this works. However, this is very broad and gives the entire zone high privleges. I tried giving just the assembly full trust (using the full URL for the DLL), but this doesn't seem to work.
1
3593
by: Lee Gillie | last post by:
I need to be able to kill a process programmatically under ASP.NET. IIS runs under the local system account. The user accessing the web is using anonymous access. We would prefer NOT to grant elevated security to the proxy used for anonymous access. Is there a way to either establish a temporary security context, programmatically for the .NET Framework Process.Kill to operate under? Or perhaps a way to give the compiled binary produced...
2
1299
by: Nick | last post by:
Is there a way to do declarative security on abstract classes? I am working on a data access layer and would like to place all permission requirements on the base class so all inherited classes contain the permissions. Is this possible, and if so can anyone provide an example?
2
2397
by: Budhi Saputra Prasetya | last post by:
Hi, I managed to create a Windows Form Control and put it on my ASP .NET page. I have done the suggestion that is provided by modifying the security settings. From the stack trace, I would assume that the code throws exception when it is trying to retrieve the processes list that has certain name. Below is the code that I use to retrieve the processes. Process processes = Process.GetProcessesByName("xxxx");
1
1431
by: Jan | last post by:
How do I grant permission to use reflection by a remoting server object? I'm trying to use Type.InvokeMethod in the server object class but I get a MissingMethodException: "Method '<namenot found.". If I call the same code from the UI-thread in the server there's no problems.
3
12048
by: Mike | last post by:
Hi I have problem as folow: Caught Exception: System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. (machine.config) ---> System.Security.SecurityException: Request for the permission of type
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6167
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.