473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

VBScript to VB.NET

I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the NET
without too much trouble but one problem is stumping me. I need to add
a user to a newly created mailbox with full mailbox access.

I was able to do this in vbscript by using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.

Larro

Feb 14 '07 #1
7 6709
dotnet won't convert VbScript, so I reccomend leaving it as vbScript.

DOTNET IS DEAD
AND NO ONE CARES

IF THERE WAS A HELL
I WOULD SEND VISUAL FRED THERE


On Feb 14, 9:04 am, Larr...@gmail.com wrote:
I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the NET
without too much trouble but one problem is stumping me. I need to add
a user to a newly created mailbox with full mailbox access.

I was able to do this in vbscript by using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.

Larro

Feb 15 '07 #2
Ignore the susiedba post; he's trolling.
Robin S.
---------------
<La*****@gmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
>I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the NET
without too much trouble but one problem is stumping me. I need to add
a user to a newly created mailbox with full mailbox access.

I was able to do this in vbscript by using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.

Larro

Feb 15 '07 #3
ignore robin, 'female programmer alert'

I mean; can she even code for 20 days out of the month?

ROFL

On Feb 15, 10:22 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Ignore the susiedba post; he's trolling.
Robin S.
---------------<Larr...@gmail.comwrote in message

news:11**********************@a34g2000cwb.googlegr oups.com...
I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the NET
without too much trouble but one problem is stumping me. I need to add
a user to a newly created mailbox with full mailbox access.
I was able to do this in vbscript by using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.
Larro- Hide quoted text -

- Show quoted text -

Feb 15 '07 #4
On Feb 15, 1:55 pm, "susie...@hotmail.com" <susie...@hotmail.com>
wrote:
ignore robin, 'female programmer alert'

I mean; can she even code for 20 days out of the month?

ROFL

On Feb 15, 10:22 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Ignore the susiedba post; he's trolling.
Robin S.
---------------<Larr...@gmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
>I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the NET
without too much trouble but one problem is stumping me. I need to add
a user to a newly created mailbox with full mailbox access.
I was able to do this invbscriptby using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.
Larro- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -
I am currently in a class learning VB.NET and ASP.NET. Working with
the script I wrote I have been able to get 90% of it up and running
it's just the permissions things that's killing me. I have researched
it but when you start playing with permissions the information kinda
tapers off as far as explainations.

Update I got around the permissions in Exchange. I had them add that
particular account directly to the store so we don't have to add it
to
the individual accounts. But I am faced with the task of setting
permissions on folders now. In my old script I called xcacls.exe and
set permissions on the new users home folder. In all honesty I can
still do it that way I was just really trying to get away from using
other tools in my program if I could help it but I'm not going to
dwell on it if the subject is to technical for me.
Thanks again for all the help.

Feb 16 '07 #5

<La*****@gmail.comwrote in message
news:11**********************@t69g2000cwt.googlegr oups.com...
On Feb 15, 1:55 pm, "susie...@hotmail.com" <susie...@hotmail.com>
wrote:
>ignore robin, 'female programmer alert'

I mean; can she even code for 20 days out of the month?

ROFL

On Feb 15, 10:22 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Ignore the susiedba post; he's trolling.
Robin S.
---------------<Larr...@gmail.comwrote in message
>news:11**********************@a34g2000cwb.googleg roups.com...
>I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the
NET
without too much trouble but one problem is stumping me. I need to
add
a user to a newly created mailbox with full mailbox access.
I was able to do this invbscriptby using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.
Larro- Hide quoted text -
- Show quoted text -- Hide quoted text -

- Show quoted text -

I am currently in a class learning VB.NET and ASP.NET. Working with
the script I wrote I have been able to get 90% of it up and running
it's just the permissions things that's killing me. I have researched
it but when you start playing with permissions the information kinda
tapers off as far as explainations.

Update I got around the permissions in Exchange. I had them add that
particular account directly to the store so we don't have to add it
to
the individual accounts. But I am faced with the task of setting
permissions on folders now. In my old script I called xcacls.exe and
set permissions on the new users home folder. In all honesty I can
still do it that way I was just really trying to get away from using
other tools in my program if I could help it but I'm not going to
dwell on it if the subject is to technical for me.
Thanks again for all the help.
Try posting your question to the ASP.Net newsgroup. I think it's
microsoft.public.dotnet.framework.aspnet.

Robin S.
Feb 16 '07 #6
well if you didn't want to use XCACLS then you could use WMI I believe
in vb6..
I don't know how to do this in .NET because I've never seen VB.net in
the real world and I don't invest times in impractical languages

-Aaron


On Feb 16, 6:20 am, Larr...@gmail.com wrote:
On Feb 15, 1:55 pm, "susie...@hotmail.com" <susie...@hotmail.com>
wrote:
ignore robin, 'female programmer alert'
I mean; can she even code for 20 days out of the month?
ROFL
On Feb 15, 10:22 am, "RobinS" <Rob...@NoSpam.yah.nonewrote:
Ignore the susiedba post; he's trolling.
Robin S.
---------------<Larr...@gmail.comwrote in message
>news:11**********************@a34g2000cwb.googleg roups.com...
I am working to convert a user creation script to VB.NET so I can add
more functionality in. Most answers I've been able to find on the NET
without too much trouble but one problem is stumping me. I need to add
a user to a newly created mailbox with full mailbox access.
I was able to do this invbscriptby using the
msExchMailboxSecurityDescriptor but from what I have read that's not
recommended in VB.NET. Any suggestions will be appreciated.
Larro- Hide quoted text -
- Show quoted text -- Hide quoted text -
- Show quoted text -

I am currently in a class learning VB.NET and ASP.NET. Working with
the script I wrote I have been able to get 90% of it up and running
it's just the permissions things that's killing me. I have researched
it but when you start playing with permissions the information kinda
tapers off as far as explainations.

Update I got around the permissions in Exchange. I had them add that
particular account directly to the store so we don't have to add it
to
the individual accounts. But I am faced with the task of setting
permissions on folders now. In my old script I called xcacls.exe and
set permissions on the new users home folder. In all honesty I can
still do it that way I was just really trying to get away from using
other tools in my program if I could help it but I'm not going to
dwell on it if the subject is to technical for me.

Thanks again for all the help.

Feb 16 '07 #7
Answered by me:

To set permissions with VB.net use:

http://msdn2.microsoft.com/en-us/lib...ysecurity.aspx

Feb 21 '07 #8

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

Similar topics

5
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't...
29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
5
by: gpence | last post by:
!!! Newbie question warning !!! I am somewhat familiar with javascript's ability to "access" the browser's favorites list -- for example, using window.home() will take you to the default URL --...
4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
2
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
7
by: skeddy | last post by:
In a nutshell, I'm trying to dynamically create a select box with ResultSet code in vbscript and then need to be able to access the value of that select box later with a Save button. I've got...
10
by: Shadow Lynx | last post by:
That subject packs a whallop, so let me explain in better detail what's happening and how it relates to ASPX pages... In a nutshell, if the first <script /on a page is of type "text/vbscript",...
6
by: rishabhshrivastava | last post by:
Hello All, I am using ASP.NET 2.0 and I am experiencing a problem using vbscript that is this script on client side is preventing the postback of my controls. I have a dropdownlist which is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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
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
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...

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.