Script to determine computername of user connected to share

Does any know how I can get the computername of a user connected to a file share?
I started using FSRM to monitor for files that are created when a crypto virus hits. We have had several in the past few weeks.
Currently FSRM sends an email to me and logs an event when ever decrypt_instructions.txt is added to a folder.
This works pretty good so long as I can get to the user fast enough and have his machine shutdown before it gets too far
I would like to be able to run a scheduled task on my file servers based on this event id which will shutdown the computer.
The event log only shows the user and not computer so the script would have to I guess query the active sessions by username , then determine the computername and run the shutdown command against that computer.
Any and all help would be greatly appreciated
WP 

Get-WMIObject -Class WIN32_ServerConnection
Screen Shot from
Powershell GUI Application - WIN 32 Class Explorer
https://gallery.technet.microsoft.com/Powershell-GUI-Application-a884a710

Similar Messages

  • Powershell script for security groups and users for multiple share folders

    Hi scripting team,
    I need your help with powershell script for the below queries 
    1. List out the security groups for more than one server share path and output it to a file ( csv ) 
    For eg.
    If the are are two share paths 
    \\servername\foldermain\folder1
    \\servername\foldermain\folder2
    So I needs the list of security groups for each share path
    And the output needs to be under each any every path.
    2. Grab the users belongs to main security groups and it nested groups for more than one security group and listed the users under each and every group. No need to display nested groups. Just users belongs to main group and users under nested.
    Your teams help is much appreciated 
    Thank you.
    Thilochana kumararatne

    Hi Braham,
    Thanks for your quick reply.
    Are we able to do this on two stage method
    1. grab the security groups from the share paths
    if can grab the share path from a separate txt file than copying it to the <your path> location
    so i can modify the txt file
    once run the script
    if can the output like below to a CSV file
    \\servername\foldermain\folder1group 1group 2group 3\\servername\foldermain\folder2group 1group 2group 3then i know which groups belongs to which share paththen i can remove the duplicate groups and keep the common groups to grab the users belongs to itso with the second script same as the first copy the security groups to a txt file and the out put as below.what I needs is the users full name and the samaccount name ( user id )group 1user1user2user3
    group 2user1user2user3looking forward your help on thisThank you.Thilo

  • Limiting the number of users/connections

    We currently have a very large user community (120000)who will be accessing the portal for ESS/MSS functionality.
    We would like to limit the number of users to around 20000. Any more connections should get a nice error message (rather than a standard IE no more connections or a time out message).
    We can obviously throttle the number of connections via the load balancer or via max connections in unix. Is there any method in the Portal itself, that will automatically direct the users to a seperate web page in the event of pre determined number of users/connections being reached.
    I have search high and low but can't find a solution.
    Thanks in advance
    Fenton

    Hi Tim,
    No, there is nothing like this as a standard functionality within the portal. Similar requests are regulary asked on SDN (like: restrict the number of users logging in as you ask, restrict the number of parallel logins of one user, and things like this).
    A possibility would be to implement your own login module which tries to check how many users are online. All techniques - independent if on portal or on WAS side - that try to count this have the problem that they cannot be sure who is "online" as you have no definite information if a user is online or not; one can only use more or less heuristic methods.
    Hope it helps
    Detlev

  • Script to Determine Users Connected to Oracle Apps and For Imitating Users

    I found this great script (Note:430948.1 on Metalink) to track users connected to the E-Business Suite.
    My colleague though noticed that users who had shut their browsers without logging off or those users who had 'timed out of their session' would still come back in the report.
    He wanted an accurate measure of who was in fact using the e-Business suite.
    We took the original query and added the last line (below). It basically takes the ‘last connect’ time and adds 60 minutes to it to figure out who is ‘validly’ still connected.
    select distinct ic.disabled_flag, fu.user_name User_Name,fr.RESPONSIBILITY_KEY Responsibility, fu.user_name,fu.user_id, fu.description, fu.employee_id,
    ic.responsibility_application_id, ic.responsibility_id, ic.org_id, ic.function_type, ic.counter, ic.first_connect, ic.last_connect,
    ic.nls_territory, ic.time_out, fr.menu_id, fr.responsibility_key
    from apps_fnd.fnd_user fu,
    apps_fnd.fnd_responsibility fr, apps_fnd.icx_sessions ic
    where fu.user_id = ic.user_id AND
    fr.responsibility_id = ic.responsibility_id AND
    ic.disabled_flag='N' AND
    ic.responsibility_id is not null AND
    ic.last_connect > sysdate - (ic.time_out/60)/96
    Can anybody see any issues with this query? or a better way to do this?
    It looks like Oracle runs a clean up script to wipe out sessions after a certain amount of time so they are no longer active sessions - so this works around that.

    From my Exchange Server in an Exchange PS session:
    Name        : Admin Audit Log Agent
    Enabled     : True
    Priority    : 255
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Scripting Agent
    Enabled     : False
    Priority    : 6
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : OAB Resources Management Agent
    Enabled     : True
    Priority    : 5
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Provisioning Policy Agent
    Enabled     : True
    Priority    : 4
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Mailbox Creation Time Agent
    Enabled     : True
    Priority    : 3
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Mailbox Resources Management Agent
    Enabled     : True
    Priority    : 2
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Rus Agent
    Enabled     : True
    Priority    : 1
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    Name        : Query Base DN Agent
    Enabled     : True
    Priority    : 0
    WhenCreated : 6/15/2012 9:54:46 AM
    WhenChanged : 6/15/2012 9:54:46 AM
    The output is the same from my workstation after loading the PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
    Rob Smura, MCSE

  • BASH script to determine most recent/used user account

    Hi everyone,
    I'm trying to patch a script I have to copy user data and set permissions accordingly. I'd like to have the script sense the most-logged-into user account and set permissions on the corresponding home folder, is there a way to do this in Tiger?
    My next question is that these computers are being upgraded from Tiger to Leopard. Is there a way in Leopard to sense all existing user accounts (again in BASH), and set permissions on their corresponding home folders? That might be the best solution, and the easiest to implement.
    TIA!

    Hi everyone,
    I'm trying to patch a script I have to copy user data and set permissions accordingly. I'd like to have the script sense the most-logged-into user account and set permissions on the corresponding home folder, is there a way to do this in Tiger?
    My next question is that these computers are being upgraded from Tiger to Leopard. Is there a way in Leopard to sense all existing user accounts (again in BASH), and set permissions on their corresponding home folders? That might be the best solution, and the easiest to implement.
    TIA!

  • How do I have an exe in a logon script run as a different user (either a domain admin or even the local system account)

    So, I'm having some problems getting a logon script to work.  I need a way to deploy the agent that we use via login/startup scripts and what I have works fine if the user has admin rights, or if UAC is disabled.  I've tried to convert the .exe
    to an .msi to make it easier, but the .msi never works and it's only distributed as an .exe.  We deploy this to different clients, I can't disable UAC in their environment unless they specifically tell us to.  Can anyone think of a way around this? 
    I've been searching for days and I'm just lost.  If we could execute the file as the system account, or connect to shares using a startup script instead of logon, that would be perfect.  Basically what it does is check to see if the process for the
    agent is running (agentmon.exe) so we don't attempt to install it if it is already installed, if it's not, then it calls on a different agent installer depending on the IP address of the system (for clients that have more than one location).  Here's what
    I've got written that works for me in my test environment:
    Const strAgent1 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup1.exe"
    Const strAgent2 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup2.exe"
    Const strAgent3 = "\\home.wiginton.local\SysVol\home.wiginton.local\Policies\{CD4ED3BD-0709-4E3D-A303-C9E3B0F5198D}\User\Scripts\Logon\Test-KcsSetup3.exe"
    Const strFolder = "C:\Temp\"
    Const Overwrite = True
    dim objFSO, objNIC1, arrNIC, strIP, strMask, objShell, objWMIService
    dim
    'Checks for Kaseya agent process, AgentMon.exe, exits if running
    Set objWMIService = GetObject ("winmgmts:")
    Set proc = objWMIService.ExecQuery("select * from Win32_Process Where Name='agentmon.exe'")
    If proc.count > 0 Then
        WScript.Quit
    End If
    'Instantiate a NIC configuration object
    Set objNIC1 = GetObject("winmgmts:").InstancesOf("Win32_NetworkAdapterConfiguration")
    'Instantiate a shell object
    Set objShell = CreateObject("wscript.shell")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Create Temp Dir if it doesn't exist
    If Not objFSO.FolderExists(strFolder) Then
        objFSO.CreateFolder strFolder
    End If
    For Each arrNIC in objNIC1
        if arrNIC.IPEnabled then
            StrIP = arrNIC.IPAddress(i)
            strMask = arrNIC.IPSubnet(i)
            Set WshNetwork = WScript.CreateObject("WScript.Network")
        end if
    next
    Function NetworkID(Address, Mask)
        Dim AddressOctets, MaskOctets, Result, N
        AddressOctets = Split(Address, ".")
        MaskOctets = Split(Mask, ".")
        ReDim Result(UBound(AddressOctets))
        For N = 0 To UBound(AddressOctets)
            Result(N) = AddressOctets(N) And MaskOctets(N)
        Next
        NetworkID = Join(Result, ".")
    End Function
    Select Case NetworkID(strIP,strMask)
        Case "192.168.0.0"
        ' Kaseya install commands for 192.168.0.0 subnet
        objFSO.CopyFile strAgent1, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup1.exe"
        Case "192.168.1.0"
        ' Kaseya install commands for 192.168.1.0 subnet
        objFSO.CopyFile strAgent2, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup2.exe"
        Case "192.168.2.0"
        ' Kaseya install commands for 192.168.2.0 subnet
        objFSO.CopyFile strAgent3, strFolder, Overwrite
        Wscript.Sleep 1*60*1000
        objShell.run "C:\Temp\Test-KcsSetup3.exe"
        Case Else
        ' Some sort of error checking. Maybe a BLAT SMTP command to send an email
    End Select
    Set objWMIService = Nothing
    Set objNIC1 = Nothing
    Set objShell = Nothing
    Set WshNetwork = Nothing
    Wscript.quit

    You need to read the documentation carefully:
    The Deploy Agents install package is created using a Configure Automatic Account Creation wizard. The wizard copies agent settings from an existing machine ID or machine ID template and generates an install package called
    KcsSetup.All settings and pending agent procedures from the machine ID you copy from—except the machine ID, group ID, and organization ID—are applied to every new machine ID created with the package.
    Including Credentials in Agent Install Packages
    If necessary, an agent install package can be created that includes an administrator
    credentialto access a customer network. Credentials are only necessary if users are installing
    packages on machines and do not have administrator access to their network. The administrator credential is encrypted, never available in clear text form, and bound to the install package.
    ¯\_(ツ)_/¯

  • SYS user connects at database level, is it correct?

    My senior colleague has given me following information about the sys user. I want to know, is it correct?
    Since SYS user connects at the database level, therefore, on killing the active session of the SYS user,only the current statement is cancelled. The database session does not disconnect. Instead it continues to run the remaining statements in the script file in case we are running a script file containing a lot of SQL statements.
    Moazzam

    Moazzam wrote:
    My senior colleague has given me following information about the sys user. I want to know, is it correct?
    Since SYS user connects at the database level, therefore, on killing the active session of the SYS user,only the current statement is cancelled. The database session does not disconnect. Instead it continues to run the remaining statements in the script file in case we are running a script file containing a lot of SQL statements.Running a SQL script very likely means SQL*Plus is used. One of two types of Oracle sessions will be created via sqlplus. A dedicated session. Or a shared server session.
    A dedicated session can also be local (sqlplus connects "directly" to the dedicated server process), or remote (sqlplus connects via tcp/ip to the dedicated server process).
    A server session is usually "killed" using the alter system kill session command. Despite the differences between shared and dedicated server connections, the end result is the same. The session terminates abnormally (session UGA will be released, session will be cleaned up, rolled back, etc) - and the session ceases to exist.
    So irrespective of how that sqlplus session runs that script - the session, when killed, will cause a sqlplus failure. And no subsequent script commands would be executed by that Oracle session.
    What can happen is that sqlplus continues running, continues reading the script, and continues submitting commands to be executed. However, with the server session killed, there is no server process to service the commands submitted by the sqlplus client. In this case, sqlplus will throw the error "+SP2-0640: Not connected+" after each of the commands it tries to execute after the server session was killed.
    The only time when sqlplus will be able to continue is when the session is not killed, but interrupted. The Oracle Call Interface (OCI) supports a OCIBreak() call - allowing the client to interrupt-and-abort the request that its server session is currently executing.
    For example, sqlplus sends a OCIBreak() while it waits for a server response (e.g. waiting for the answer to a SQL select query), when the user presses Ctrl-Break to abort that request.
    In this case, the session still exists - and the client can issue a new request that the session will service. But an OCIBreak() cannot be triggered (to my knowledge) externally from another Oracle session. You need to send the client process a "break request" (like a Ctrl-Break keystroke) in order to trigger that client process to make an OCIBreak() call to Oracle and interrupt its server process.

  • Can I determine what clients are connected to my weblogic server?

    Hi, is there anyway of determining what clients are connected to my Weblogic 8.1 server - I want this information to be generated for me, not by maintaining a list when clients login initially to the server.
    Also is there any thing that gets fired when a client terminates prematurely - for example being killed by the task manager. I need to know this, so the server knows what users are currently logged in, to prevent a user logging in twice (via the same username login).
    Cheers,
    Ants.

    Hi,
    Cousld u send me a simple example to check my Weblogic server for EJB with client.
    Iam struggling from last todays.
    and also tell what software i should use for deployment of EJB of weblogic 8.1.
    ur help highly appriciate by me
    My mail ID: [email protected]
    thanks,
    AHOY

  • How to get the user connection type

    hi all, I have a PAI process to execute only if the user is connected from ESS/MSS. how can I determine the type of connection, if u have some suggestions please help.
    thanks in advance.

    >
    mniakh mahmoud wrote:
    > hi all, I have a PAI process to execute only if the user is connected from ESS/MSS. how can I determine the type of connection, if u have some suggestions please help.
    > thanks in advance.
    I use function module WS_QUERY to do exactly this thing.  If it sends back RETURN = 'ITS" then it is connected to ESS/MSS.  This has worked in our 6.20 and ECC6 systems, though I guess it may not work in exactly the same way in your system.  There also might be a more modern method of a class to do the same thing. 
    CALL FUNCTION 'WS_QUERY'
           EXPORTING
    *           ENVIRONMENT    =
    *           FILENAME       =
                query          = 'WS'
    *           WINID          =
           IMPORTING
                return         = window_system
           EXCEPTIONS
    *           inv_query      = 1
                no_batch       = 2
                frontend_error = 3
                OTHERS         = 4.

  • Script logic : determine the content of a variable according to a IF test

    Hello experts,
    I have the following need in a script logic
    determine the content of a variable according to a IF test
    For example I tried :
    *WHEN %ENTITY%
    *IS "CH20","CH30","ES10"
    *SELECT(%ENTITYPBPD%, "[ID]", "ENTITYCC", "[ID] = '%ENTITYCC_SET%_PBPD'")
    *ENDWHEN
    Syntax is correct but I get a query execution error (Error in WHEN/ENDWHEN structure)
    I guess it's because this when don't have any REC instructions.
    In other words, if the user selection at the package prompt step are CH20, CH30 or ES10
    the variable has to be selection_PBPD
    if another member is selected
    the variable has to take other value
    Hope I've made my need clear, and thanks in advance.
    G.

    Hi G,
    Will the *TEST_WHEN() statement work for this case?
    The way that it works is that if the condition evaluates to TRUE, then the subsequent WHEN...ENDWHEN is processed, else it is not.
    Have a look at Page 66 of "How To Use BPC Scripting Logic, Version 1.00, April 21, 2006" (It's a bit old but I use it a lot on our MS7.0 SP9 installation).
    Hope this helps.
    Regards
    Nick

  • Measure the number of user connected to an Application

    Hi,
    How can I find the number of users connected to a weblogic application
    Can you help me understand how can I measure this parameter for a monitoring purpose?
    Thanks in advance,
    Nicola Attico

    Current Sessions is the current total number of open sessions for each application. Yes, you can use JMX or WLST within a script.
    The WebAppComponentRuntimeMBean mbean of your application provides this information through OpenSessionsCurrentCount attribute.
    For instance, in WLST enter:
    wls:/my_domain/serverRuntime/ApplicationRuntimes/my_application/ComponentRuntimes/my_app> cmo.getOpenSessionsCurrentCount()
    For JMX I suggest to you see [http://download.oracle.com/docs/cd/E13222_01/wls/docs91/wlsmbeanref/core/index.html]
    Edited by: Betino on 22/10/2009 11:26 AM

  • MAXL problem for launching a script in order to disconnect users in a cube

    Hello,
    I would like to know how i can launch a maxl script in order to disconnect users who are connected on a cube. When i do this :
    IEssDomain dom2 = ess.signOn(USER, PASSWORD, false, null, PROVIDER);
    cv = dom2.openCubeView("EssaiBis", SERVEUR, APPNAME, CUBENAME);
    IEssMaxlSession maxl = dom2.openMaxlSession("maxl", SERVEUR);
    String strQuery = "alter application "+APPNAME+" unload database "+CUBENAME+";";
    maxl.execute(strQuery);
    maxl.close();
    The APPNAME, the CUBENAME, the SERVEUR, the USER, the PASSWORDn and the PROVIDER (embedded) are OK. However, it jumps the commands which are under the : IEssMaxlSession maxl = dom2.openMaxlSession("maxl", SERVEUR);
    So, the problem seems to be here.
    Thanks you for your help.
    Vinou

    It seems that it doesn't take the "+" in the script on the forum ^^

  • Pwpolicy -- how to determine if a user's account is disabled?

    Hi all...
    For my user accounts, I have the accounts set to disable after 180-days of non-use.
    I'd like to be able to determine which accounts *have been disabled* because of this. Graphically, I can only see this in WorkGroup Manager when a user actually tries to log in to their account and it fails because of this -- then the user gets an "X" next to their name in WGM.
    But this "X" doesn't appear unless the user tries to access his/her account.
    For example, here's the policy on my account:
    For example, here's my account
    pwpolicy -getpolicy -u maser
    Getting policy for maser
    newPasswordRequired=0 maxMinutesOfNonUse=259200 maxChars=0 usingHistory=0 isSessionKeyAgent=0 isComputerAccount=0 maxMinutesUntilDisabled=0 requiresAlpha=0 hardExpireDateGMT=01/01/70 minutesUntilFailedLoginReset=0 requiresMixedCase=0 passwordCannotBeName=0 requiresSymbol=0 expirationDateGMT=01/01/70 notGuessablePattern=0 canModifyPasswordforSelf=1 maxFailedLoginAttempts=0 minChars=9 usingExpirationDate=0 requiresNumeric=0 maxMinutesUntilChangePassword=0 usingHardExpirationDate=0
    This shows me that 259200 minutes (the default) will be when my account is disabled from maxMinutesOfNonUse -- but nothing about how long it's been since I've used my account.
    Is there a terminal command which will show me which accounts have been disabled?
    And/or a command that will show my how many "MinutesOfUse" an account has (meaning how long it's been since a user connected to my server)?
    Thanks!

    Hi all...
    For my user accounts, I have the accounts set to disable after 180-days of non-use.
    I'd like to be able to determine which accounts *have been disabled* because of this. Graphically, I can only see this in WorkGroup Manager when a user actually tries to log in to their account and it fails because of this -- then the user gets an "X" next to their name in WGM.
    But this "X" doesn't appear unless the user tries to access his/her account.
    For example, here's the policy on my account:
    For example, here's my account
    pwpolicy -getpolicy -u maser
    Getting policy for maser
    newPasswordRequired=0 maxMinutesOfNonUse=259200 maxChars=0 usingHistory=0 isSessionKeyAgent=0 isComputerAccount=0 maxMinutesUntilDisabled=0 requiresAlpha=0 hardExpireDateGMT=01/01/70 minutesUntilFailedLoginReset=0 requiresMixedCase=0 passwordCannotBeName=0 requiresSymbol=0 expirationDateGMT=01/01/70 notGuessablePattern=0 canModifyPasswordforSelf=1 maxFailedLoginAttempts=0 minChars=9 usingExpirationDate=0 requiresNumeric=0 maxMinutesUntilChangePassword=0 usingHardExpirationDate=0
    This shows me that 259200 minutes (the default) will be when my account is disabled from maxMinutesOfNonUse -- but nothing about how long it's been since I've used my account.
    Is there a terminal command which will show me which accounts have been disabled?
    And/or a command that will show my how many "MinutesOfUse" an account has (meaning how long it's been since a user connected to my server)?
    Thanks!

  • Script to find out that users do not have inheritable permission checked

    Hi all,
    I just check our AD (windows 2003 R2) and some users have "allow inheritable permissions from the parent to propagate to this object and all child objects.  include these with entries expilitly defined here" checked  if I open active directory
    users and computers console and highlight this user and go to properties and select security and click advanced).  some users do not have ""allow inheritable permissions from the parent to propagate to this object and all child objects. " checked.
    Is there a way to script to find out which users do not have "allow inheritable permissions from the parent to propagate to this object and all child objects. .." checked?
    Thank you for your help.

    There are several ways to use ADO in a VBScript program. The alternative below uses an ADO command object, so we can specify a "Page Size". This overcomes the 1000 (or 1500) limit on records returned, as it turns on paging. I have also modified
    the script for comma delimited output. This script should be run at a command prompt so the output can be redirected to a text file. For example:
    cscript //nologo FindUsers.vbs > report.csv
    The modified script follows:
    Option Explicit
    Dim adoCommand, adoConnection, strBase, strFilter, strAttributes
    Dim objRootDSE, strDNSDomain, strQuery, adoRecordset, strNTName, strDN
    Dim objUser, objSecurityDescriptor, intNTSecDescCntrl, strInheritable
    Const SE_DACL_PROTECTED = &H1000
    ' Setup ADO objects.
    Set adoCommand = CreateObject("ADODB.Command")
    Set adoConnection = CreateObject("ADODB.Connection")
    adoConnection.Provider = "ADsDSOObject"
    adoConnection.Open "Active Directory Provider"
    Set adoCommand.ActiveConnection = adoConnection
    ' Search entire Active Directory domain.
    Set objRootDSE = GetObject("LDAP://RootDSE")
    strDNSDomain = objRootDSE.Get("defaultNamingContext")
    strBase = "<LDAP://" & strDNSDomain & ">"
    ' Filter on user objects.
    strFilter = "(&(objectCategory=person)(objectClass=user))"
    ' Comma delimited list of attribute values to retrieve.
    strAttributes = "distinguishedName,sAMAccountName"
    ' Construct the LDAP syntax query.
    strQuery = strBase & ";" & strFilter & ";" & strAttributes & ";subtree"
    adoCommand.CommandText = strQuery
    adoCommand.Properties("Page Size") = 500
    adoCommand.Properties("Timeout") = 30
    adoCommand.Properties("Cache Results") = False
    ' Run the query.
    Set adoRecordset = adoCommand.Execute
    ' Enumerate the resulting recordset.
    ' Write a header line.
    Wscript.Echo """NT Name"",""Distinguished Name"",""Allow inheritable permissions"""
    Do Until adoRecordset.EOF
    ' Retrieve values.
    strNTName = adoRecordset.Fields("sAMAccountName").Value
    strDN = adoRecordset.Fields("distinguishedName").Value
    strDN = Replace(strDN, "/", "\/")
    Set objUser = GetObject("LDAP://" & strDN)
    Set objSecurityDescriptor = objUser.Get("ntSecurityDescriptor")
    intNtSecDescCntrl = objSecurityDescriptor.Control
    If (intNtSecDescCntrl And SE_DACL_PROTECTED) <> 0 Then
    strInheritable = "Disabled"
    Else
    strInheritable = "Enabled"
    End If
    Wscript.Echo """" & strNTName & """,""" & strDN & """," & strInheritable
    ' Move to the next record in the recordset.
    adoRecordset.MoveNext
    Loop
    ' Clean up.
    adoRecordset.Close
    adoConnection.Close
    Richard Mueller
    MVP ADSI

  • Which web tier does user connect in R12

    which web tier does user connect in R12
    We have multiple web tiers and using BigIP to load balance the traffic evenly to each of the web tiers.
    All users are connected via a VIP and BigIP will route the user connection in one of the web tiers.
    How can we find out which web tier does the user is currently connect to?

    Hi;
    Note 473277.1
    How to Determine Which Server a Client is Connected to in Loadbalanced EnvironmentThanks for sharing solution ;)
    Regard
    Helios

Maybe you are looking for

  • Miro no. range error

    while miro posting error msg" In company code 1200(ccode), the number range 51 is missing for the year 2010",how i can know the object to maintain no range in snum. regards, nishith

  • Issue with List Files option in FTP Adapter-

    Hi All, I am getting the following error when I am using the list files option inside FTP adapter. The soa Version I am using is 11.1.1.5 Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding exe

  • Aspect Ratio HDV clip from FCP to After Effects

    Can someone help me with exporting from FCP an HDV clip to After Effects? What I am doing is trying to export an HDV clip from FCP to AE but when I import it into AE the aspect ratio is all off. I have an HDV 1080i50 easy setup timeline and I am expo

  • How to reset the Face Recognition on folder to start the search/detection over again.

    I was going along fine (though very slowly) and had 5000 photos identified as my son. Hours later I was down to a few handful of photo and did a select all and dragged then to my son's named photo. After that I can still see all the photos of him, bu

  • Passing asp form data to a .jsp string

    Hello and thanks in advance for any help. I would like to pass form information that comes from a standard form into a URL string as follows: "http://ui.constantcontact.com/roving/wdk/API_AddSiteVisitor.jsp?loginName=benefitevents&loginPassword=conno