473,486 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Change CAS permissions for all machines on a domain

Hello !

My question is simple:

How can I change ALL THE PCS ON A DOMAIN to have CAS full trust to a network
share ?

Notes:

When you deploy an application to a network share, as all the pcs have
restricted permissions for intranet zone on their machine level, not each
feature of the applications works, for example, database / registry access.

So, till now, we have to MANUALLY configure EACH PC to have full trust to
each network share where we have our .NET developed applications, this way:

caspol -m -ag 1.2 -url file:\\servername\appshareddir\* FullTrust

This is not very enriching nor amusing as you can imagine, for our technical
stuff...

Is there any way to automate this by configuring, for example, the CAS
policy from the server or something similar ? (I am speculating...)
(Of course, the domain users already have network permissions... but I'm not
talking about network permissions here...)
Thanks in advance,

--
Roger
..NET 2005 and DB developer
May 14 '07 #1
5 2795
Well, you can package the "caspol" exec into an msi, and push that msi
around the clients via a login script; I used this approach with 1.1
apps.

With 2.0, perhaps a signed ClickOnce deployment is a better option?

Marc
May 14 '07 #2
Hi,

Thanks for your answer... but I have a few more questions about this:
Well, you can package the "caspol" exec into an msi, and push that msi
around the clients via a login script;
This would be the same as making a "cmd" with the caspol sentence... not a
very big improvement ...
With 2.0, perhaps a signed ClickOnce deployment is a better option?
But It would not avoid the fact that I still have to manually configure CAS
permissions for LOCAL machine level, isn't it ?

The fact is that I was looking a way to assign CAS permissions for all the
pcs from a domain controller or a central place, as with the Active Directory
for the whole domain does for certain features...

Thanks,

Roger
May 14 '07 #3
Well in your original e-mail you said you were MANUALLY appllying the
change (the caps are from you) - so a login script (with cmd or msi)
seems a pretty huge improvement to me. But no, it doens't hook cleanly
into group policy etc.

You might want to make your changes at the enterprise level, but note
that this is still (AFAIK) configured at the machine. Truly ironic,
unless I missed the same thing you did ;-p

Marc
May 14 '07 #4
But It would not avoid the fact that I still have to manually
configure CAS
permissions for LOCAL machine level, isn't it ?
Actually, yes it would. ClickOnce allows you to ascribe permissions
via the manifest. If the user accepts the app (i.e. they click, er,
once) then the app gets the permissions it asked for - which can be
full trust or partial trust.

Marc
May 14 '07 #5
Thanks, I'll test it as soon as possible

Bye,
--
Roger Tranchez
..NET 2005 and DB developer
"Marc Gravell" wrote:
But It would not avoid the fact that I still have to manually
configure CAS
permissions for LOCAL machine level, isn't it ?

Actually, yes it would. ClickOnce allows you to ascribe permissions
via the manifest. If the user accepts the app (i.e. they click, er,
once) then the app gets the permissions it asked for - which can be
full trust or partial trust.

Marc
May 28 '07 #6

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

Similar topics

9
2879
by: Hugh Welford | last post by:
Hi, I have installed IIS5 on my machine so that I can do offline asp web development. (using WIN XP PRO). My machine is called "development" I have published an on-line working web to...
1
2106
by: sherkozmo | last post by:
I have my SQL 7.0 server set for Mixed security. I see now (finally) the advantages of having windows authentication security for windows groups. I do most of my developing in Access Projects...
4
1923
by: Jonny | last post by:
I'm sure this is easy and i'll kick myself for it. How would i go about listing all the machines on a domain? I want to display them in a list box. Thanks /Jonny
3
1585
by: jimmyfishbean | last post by:
Hi, My client has the following network structure: 2 Windows 2003 servers : Server 1 - Web server running IIS, ftp import and export folder, ASP.NET SOAP web service and asp code on here....
2
12676
by: scorpion53061 | last post by:
hi all, I thought I would give this back and see if anyone could improve on it. I was working with the remote registry class. This code opens the ScreenSaverIsSecure registry setting and changes...
2
14953
by: mail | last post by:
Hi guys, So far I've spent about a week hacking away at this code, and I just can't get it to add an ACE to a the DACL for a network share using WMI. Just to set the scene, I'm trying to add...
3
2009
by: kihoshk | last post by:
Hi, I have a C# app that needs to copy files from the local machine to another on a WORGROUP network (not a domain). The app is running as a service under the SYSTEM account. When an attempt is...
0
899
by: Larry | last post by:
Hi, I'm a C#/SQL Server developer and I'm having a technical problem with Windows Domain permissions. My problem has nothing to do with development but I thought maybe someone out there would be...
8
7687
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
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,...
0
7173
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...
0
7305
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...
1
4863
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...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
259
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...

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.