Jump to content

WinNT:// Provider


oleg
 Share

Recommended Posts

Dose anybody have the idea how to get WinNT:// object class with different credentials ?

Hi,

I don´t know, :o but think about how do you do it manually and then think about an short automatic way via autoit.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

  • Developers

Dose anybody have the idea how to get WinNT:// object class with different credentials ?

If you mean you want an AutoIt3 script to run under different credentials so you can do WinNT:// com object tasks then just restart your script with the different credentials before doing these commands..

Something like :

AutoItSetOption("RunErrorsFatal", 0) 
AutoItSetOption("TrayIconHide", 1) 
Break(0)
$USERNAME = "Administrator"
$PASSWORD = "Secret"
$RUN = 0     ; run indicator 
; retrieve the cycle from commandline
If $CMDLINE[0] = 1 Then $RUN = $CMDLINE[1]
If $RUN = 0 Then
   RunAsSet($USERNAME, @ComputerName, $PASSWORD)
   Run('"' & @ScriptFullPath & '" " 1"') 
   If @error Then MsgBox(4096+32,"Error", "Error starting under admin mode")
   Exit
EndIf
; commands go here that require Administrator rights
Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

why do you want to use the winnt provider ?

because ldap:// maybe more appropriated

but it depends of whatyou want to do

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

why do you want to use the winnt provider ?

because ldap:// maybe more appropriated

but it depends of whatyou want to do

I want to have an remote users management app . The operator of this app will not have access to the server but i want to give the app access to manage users . There is a lot of ways i know that its possible to do this but as i asked i want it to be as automated as possible :o

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Link to comment
Share on other sites

ok, tell me :

- the application you want to use

- how you want to give access

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
Share on other sites

ok, tell me :

- the application you want to use

- how you want to give access

Simple .

I will store a account and password in encrypted form in a ini file or registry so the application would be portable .

The person that will control this application will have no idea what password is and will not have any acess to any of the server resources but only to the ones that the app will provide him.

I gennerally want to manage User , Quotas , Pass Expireations and stuff like that :o

But

I need to authenticate to the app to server ? How do i do that ?

1) Have passowrd stored automatically on the machine that will run the app?

2) Will have the machine to autlogon with an account that will be authenticated on the server ?

3) Or will use WINNT Or LDAP providers and authenticate automatically ?

The last thing is the best for me but is it possible ?

That was actually my first question :geek:

I know its possible with LDAP but have to research it ;)

Edited by oleg

There is a hex ( 31303030303030 ) reasons i love AutoIt !

Link to comment
Share on other sites

hmmmmm

i don't see very much what you want to do (my english is quite poor...)

ok so i will try to understand

Simple .

I will store a account and password in encrypted form in a ini file or registry so the application would be portable .

The person that will control this application will have no idea what password is and will not have any acess to any of the server resources but only to the ones that the app will provide him.

I gennerally want to manage User , Quotas , Pass Expireations and stuff like that

But

mmmm, why to not set that in your AD with GPOs and groups , and kerberos support ? mmm i'm not sure i understand

I need to authenticate to the app to server ? How do i do that ?

1) Have passowrd stored automatically on the machine that will run the app?

with script that verifies the computername, and retrieve the password anywhere in the network (with have vbs that does this)

2) Will have the machine to autlogon with an account that will be authenticated on the server ?

every accounts are authenticated on the server, but the server don't know where you are connected, well, as far as you're not on the server

3) Or will use WINNT Or LDAP providers and authenticate automatically ?

LDAP is the best way, why ?

because LDAP provides a real client/server, that's why i do all my script with the ldap objects as far as i can.

but i need more information as

type of application and the real scenario of it, because it could be real hard or easy ^^

-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...