Hello,
I have a complex AD environment involving many domains/forests and firewalls everywhere.
For sake of this question, lets say I have 20 DC's in one forest and 10 in the other, and have a two-way forest trust between them. All DC's are behind different firewalls so without rules in...
Hello,
I have a complex AD environment involving many domains/forests and firewalls everywhere.
For sake of this question, lets say I have 20 DC's in one forest and 10 in the other, and have a two-way forest trust between them. All DC's are behind different firewalls so without rules in place...
The delegations certainly are on a group (not on an individual object), and were delegated out using the GPMC's "Delegation" tab on the "Group Policy Objects" container (I cant stand the wizards) - I've successfully delegated that permission out to a group of users in the local domain, so it...
The trust is established in my test environment, the correct permissions are set (local user is delegated GPO Create permissions, for example), but still get an access denied. I havent had time to troubleshoot it further.
The trust in the production environment though is not so easy -...
The problem is though, I need to run the HTA against both domains. Basically I access information and resources from one domain and pass it to the other. So runas etc. won't have any effect, as I will only be authenticating against one domain. Besides, runas requires trusts in place.
As best as...
This script will be executed by multiple people several times a day, via a HTA GUI (where they enter their username and password and other details). These people will not have access to add scheduled tasks, and ideally, this needs to be self-contained inside the HTA.
I have the script using the...
Sorry, I meant from within VBScript..
I'm using the GPMGMT API to remotely backup GPO's and import them locally. I need to specify a remote domain username and password to be able to connect though.
[ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill...
Is there a way to preauthenticate to a remote/foreign domain before using a tool such as the GPMC Managament API (GPMGMT) to connect to that remote domain?
I get 'Access Denied' when I try to bolt up to the remote DC if I dont have the same username and password in both domains...
Thanks for the reply...
The two domains have different usernames and passwords - I explicitly made sure of this so I didn't get any authentication using my logged on credentials.
Also, I am specifying alternative credentials per the example / code below (using the remote domain username and...
Sorry, I should mention that both domains are separate forests with no trusts between them. There is simply network connectivity and name resolution.
[ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
Does anyone know how to get serverless binding to work for remote domain authentication/ADO queries?
I have tried the example1 per the MS Scripting Guy page, however I always get ‘Provider: Permission denied’ whenever I try and execute the query. I have turned on auditing on the remote DC (in...
Damn, it does work.
I missed a few things in my attempt at coding that obviously, as when I tried it cried around the time it (re)creates the command object. Thanks heaps for that - I really appreciate it.
I learnt a thing or two too.
Out of interest, why/what is the ByRef and ByVal do for...
It will return all OU's, yes, but I need to build a tree view of those OU's, not have a flat listing of them.
So currently I have something like (somewhat psudeo code):
Function DoRecursiveLookup(strObjectDN)
'Start of this level of OU
echo "<ul>"
'Retrieve a list of OU's for this...
That works; only that I need to set sScope to onelevel in order to show nested levels.
Eg.
<ul>
<li>Level 1 - 1</li>
<ul>
<li>SubLevel 1 - 1</li>
<li>SubLevel 1 - 2</li>
</ul>
<li>Level 1 - 2</li>
</ul>
As soon as I call the function to go into the sublevel, it will die as the...
I have the following code which enumerates the list of OU's in the domain and outputs the list to a HTA (indented using UL and LI tags):
Function DoRecursiveLookup(strObjectDN)
Set objConnection = GetObject("LDAP://" & strObjectDN)
For each objChild In objConnection
If (objChild.Class...
I went down the path of strlen, and used a simple HTML form to debug.
Cheers for all the help.
[ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
I have the following regular expression
return ereg('^[a-zA-Z0-9]*([a-zA-Z]+[0-9]+)|([0-9]+[a-zA-Z]+)[a-zA-Z0-9]*$', $validate);
Which work for validating a character string containing only alphanumerics and ensuring the string contains at least 1 alpha and 1 numeric; but I need to ensure it...
Nevermind - worked it out.
I had the LEFT JOIN around the wrong way - thanks for the help.
[ponder][laughtears] The dumber they think you are, the more surprised they'll be when you kill them! [machinegun][rofl2]
Sweet.
So now I need to merge that with another query:
SELECT Winner AS TeamWon, COUNT(Winner) AS GamesWon
FROM Games
WHERE Winner > 0
GROUP BY TeamWon
Which returns something like:
+---------+----------+
| TeamWon | GamesWon |
+---------+----------+
| 1 | 3 |
| 2...
I have the following query:
SELECT Team1, COUNT(Winner) AS Won FROM Games WHERE Winner = -1 GROUP BY Team1
UNION ALL
SELECT Team2, COUNT(Winner) AS Won FROM Games WHERE Winner = -1 GROUP BY Team2;
Which returns the following:
+-------+-----+
| Team1 | Won |
+-------+-----+
| 1 | 1 |
|...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.