Enable a user on domino by denyGroups

I was able to disable a user in domino by using the following code, but when I enable the user, I want to remove the user from denyGroups but I doesn't seem to work.
code to disbale
<set name='disableView.resourceAccounts.selectAll'>
                                <s>false</s>
                            </set>
                            <set name='disableView.resourceAccounts.currentResourceAccounts[Domino/Notes].selected'>
                                <s>true</s>
                            </set>
                            <set name='disableView.resourceAccounts.currentResourceAccounts[Domino/Notes].attributes.DenyGroups'>
                                <list>
                                    <s>Terminated</s>
                                </list>
                            </set>Here's what I am using to enable
<set name='enableView.resourceAccounts.selectAll'>
                                <s>false</s>
                            </set>
                            <set name='enableView.resourceAccounts.currentResourceAccounts[Domino/Notes].selected'>
                                <s>true</s>
                            </set>
                            <set name='enableView.resourceAccounts.currentResourceAccounts[Domino/Notes].attributes.DenyGroups'>
                                <list>
                                    <s>Terminated</s>
                                </list>
                            </set>     For enable, I also tried but I wont remove the user from that group.
<set name='enableView.resourceAccounts.currentResourceAccounts[Domino/Notes].attributes.DenyGroups'>
<list>
</list>
</set>
thanks

In AD the option Logon Hours we have to color the grid with the hours that user logs in AD.
In AD we have the command "NET USER" where we pass parameters, how login and hours that this user logs in AD. This is example: net user johnsw /time:M-F,08:00-17:00.
But for execute this command in AD I need use the Remote Manager, and I can not do this.
Exist a method more easy to resolve this issue?
Thanks

Similar Messages

  • Error while Enabling a user in OIM

    Hi,
    I have a requirement where i need to disable and enable OIM users based on a UDF . If the UDF says Active user should be enabled and if it says "deleted" user should be disabled. I'm able to "Disable" a user present in "Active" state but not vice versa. My entity adapter is as follows
    statusUpdate(String userKey,String Status){
              OIMConnectionManagerImpl oimConn = new OIMConnectionManagerImpl();
              tcUserOperationsIntf tcUser = oimConn.getUserAPI();
              tcResultSet tcres = null;
                   HashMap map = new HashMap();
                   map.put("Users.Key",userKey);                    
                   tcres = tcUser.findUsers(map);
                   String s1=tcres.getStringValue("Users.Status");
                   if(Status.equalsIgnoreCase("Active") )
                        if(s1.equalsIgnoreCase("Disabled")){
                             tcUser.enableUser(Long.parseLong(userKey));
                   if(Status.equalsIgnoreCase("Deleted") )
                        if(s1.equalsIgnoreCase("Active")){
                             tcUser.disableUser(Long.parseLong(userKey));
    My error is as follows
    [com.oim.util.OIMConnectionManagerImpl] Unable to create factory instance
    java.lang.NullPointerException
    Edited by: user10665408 on Jul 1, 2009 3:14 PM

    I have done sm changes now:
    Try this.
    If some import is missing or some spelling mistakes are there just correct those. It's just for reference.
    Put import for map also.
    package com.Tst.oim;
    import Thor.API.Operations.tcUserOperationsIntf;
    import Thor.API.tcResultSet;
    import Thor.API.tcUtilityFactory;
    import com.thortech.xl.crypto.tcCryptoUtil;
    import com.thortech.xl.crypto.tcSignatureMessage;
    import com.thortech.xl.util.config.ConfigurationClient;
    import java.util.Hashtable;
    public class CreateFile {
    tcUtilityFactory utilFactory = null;
    tcSignatureMessage moSignature = null;
    tcUserOperationsIntf moUserUtility = null;
    tcResultSet userResultSet = null;
    ConfigurationClient.ComplexSetting myConfig =
    ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    final Hashtable env = myConfig.getAllSettings();
    public void Enable(String userid) {
    try {
    System.out.println("TRY");
    moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);
    moUserUtility = (tcuserOperations)utilfactory.getutility("Thor.API.Operations.tcUserOperations");
    Map a = new HashMap();
    a.put("Users.User ID", userid);
    tcResultSet userset = moUserUtility.findAllUsers(a);
    long ukey = userset.getLongValue("Users.Key");
    moUserUtility.enableuser(ukey);
    } catch (Exception e) {
    e.printStackTrace();
    Edited by: Dost

  • Not able to enable SSH user equivalency for RAC on RHEL 4

    Hi All,
    I am trying to install oracle RAC 11g on RHEL4 (on VMware), I am using below document for reference.
    http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnOEL5UsingVMware.php
    Every thing went fine till "SSH user equivalency", but I am not able to SSH and SCP between servers without entering passwords.
    I have tried removing .ssh folder & recreating pub file twice but it did not helped.
    am i missing something?
    Please advice.
    Thanks,
    Abhay.

    Configure SSH on each node in the cluster. Log in as the "oracle" user and perform the following tasks on each node.
    su - oracle
    mkdir ~/.ssh
    chmod 700 ~/.ssh
    /usr/bin/ssh-keygen -t rsa # Accept the default settings.
    The RSA public key is written to the ~/.ssh/id_rsa.pub file and the private key to the ~/.ssh/id_rsa file.
    Log in as the "*oracle*" user on RAC1, generate an "authorized_keys" file on RAC1 and copy it to RAC2 using the following commands.
    su - oracle
    cd ~/.ssh
    cat id_rsa.pub >> authorized_keys
    scp authorized_keys rac2:/home/oracle/.ssh/
    Next, log in as the "oracle" user on RAC2 and perform the following commands.
    su - oracle
    cd ~/.ssh
    cat id_rsa.pub >> authorized_keys
    scp authorized_keys rac1:/home/oracle/.ssh/
    The "authorized_keys" file on both servers now contains the public keys generated on all RAC nodes.
    To enable SSH user equivalency on the cluster member nodes issue the following commands on each node.
    ssh rac1 date
    ssh rac2 date
    ssh rac1.localdomain date
    ssh rac2.localdomain date
    exec /usr/bin/ssh-agent $SHELL
    /usr/bin/ssh-add
    You should now be able to SSH and SCP between servers without entering passwords.
    hope, this may helps you.
    enjoy.
    if you are unable to resolve it, please refer:-
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28252/preparing.htm#BGBBDHIB
    http://dsstos. blogspot.com/2009/03/linux-oracle-rac-and-bonding-conundrum.html

  • Problem in GTC - Enable/Disable user task

    Hi,
    I am trying to enable a user for a GTC, but I encounter the following errors while doing so:
    10/08/25 02:19:23 Running GENERICADAPTER
    10/08/25 02:19:23 Target Class = com.thortech.xl.gc.runtime.GCAdapterLibrary
    ERROR,25 Aug 2010 02:19:23,959,[OIMCP.DATC],Class/Method: DBProvisioningTransportProvider/sendData encounter some problems: The table PS_RSTR_FMSU_VW does not exist in the target database schema oimuser
    com.thortech.xl.gc.exception.DBException: The table PS_RSTR_FMSU_VW does not exist in the target database schema oimuser
    at com.thortech.xl.gc.impl.common.DBFacade.getType(Unknown Source)
    at com.thortech.xl.gc.impl.common.DBFacade.getSchema(Unknown Source)
    at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.getSchema(Unknown Source)
    at com.thortech.xl.gc.impl.prov.DBProvisioningTransportProvider.sendData(Unknown Source)
    at com.thortech.xl.gc.runtime.GCAdapterLibrary.executeFunctionality(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFMSUSER_GTC.GENERICADAPTER(adpFMSUSER_GTC.java:125)
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFMSUSER_GTC.implementation(adpFMSUSER_GTC.java:70)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    Also, the user 'oimuser' has sufficient privileges for the view 'PS_RSTR_FMSU_VW'. The data in the view is accessible and can be read when logged-in as oimuser in SQL developer.
    Please help me in resolving this issue.
    Regards.

    Since this is a view, the user does not have Write permissions.
    Regards.

  • Enabling a User through OIM API

    Hi I am trying to enable a user through OIM API, However the end date is already passed for that user, I am setting up a new end date through the Program (showm below). However the update user is not working (i am not sure).
    Map usermap = new HashMap();
    usermap.put("Users.User ID", User_id );
    Map grpmap = new HashMap();
    grpmap.put("Groups.Group Name", Group_Name);
    tcResultSet ts = userClient.findUsers(usermap); //find all users
    String existing_end_date = ts.getStringValue("Users.End Date");
    tcResultSet tg = groupClient.findGroups(grpmap); //find requireq group
    long ukey = ts.getLongValue("Users.Key");
    long gkey = tg.getLongValue("Groups.Key"); //find group key
    // ENABLE THE USER
    java.util.Date new_end_date = new java.util.Date(111,1,1);
    Calendar cal = Calendar.getInstance();
    cal.setTime(new_end_date);
    DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    String Str1 = dateFormat.format(cal.getTime());
    String Str2 = existing_end_date + " 12:00:00";
    System.out.println(User_id+" OLD End Date:" + Str2 + " New End Date: " + Str1);
    Map usermap2 = new HashMap();
    usermap2.put("Users.User ID", User_id );
    usermap2.put("Users.End Date", Str1);
    userClient.updateUser(ts,usermap2);
    userClient.enableUser(ukey);
    I am getting the following error:
    U0000018 OLD End Date:2009-09-30 12:00:00 New End Date: 2011-02-01 12:00:00
    2/12/2010 15:02:53 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    Thor.API.Exceptions.tcAPIException: The user cannot be enabled because the end date is passed.
    Not sure why it is happening. It looks like the Updateuser is not working, or something else?
    Please advise. Thanks in advance.

    Hi Suren,
    thanks for the note.
    I found that as soon as I enable the user, I am getting the followimg messages in the opmn logs:
    INFO,06 Dec 2010 10:55:41,841,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
    INFO,06 Dec 2010 10:55:41,944,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
    INFO,06 Dec 2010 10:55:42,402,[XELLERATE.JAVACLIENT],System Event Handler: Enabling the User
    INFO,06 Dec 2010 10:55:42,421,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
    INFO,06 Dec 2010 10:55:42,427,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
    INFO,06 Dec 2010 10:55:42,439,[XELLERATE.JAVACLIENT],System Event Handler: Changing application data based on Organization change.
    INFO,06 Dec 2010 10:55:42,442,[XELLERATE.JAVACLIENT],System Event Handler: Auto-Group Membership Event.
    INFO,06 Dec 2010 10:55:43,715,[XELLERATE.JAVACLIENT],System Event Handler: Evaluating User Policies
    So, the access policies are getting evaluated, triggering provisioning processes.
    What I am planning to do is, to disable the access policies and try to run the Program.
    Because of this issue, my Program is throwing an error (until I looked into the opmn logs, it doesn't make sense).
    6/12/2010 10:55:50 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    Thor.API.Exceptions.tcAPIException: Error occurred enabling Xellerate User instance.
    Regards
    Vijay Chinnasamy

  • How to enable root user in Yosemite

    I see in SEARCH how to enable root user in LION but not Yosemite. Does anyone know how? The sys prefs button choices is different so can't find out how to do.

    Do a backup before doing anything. To delete them you will need to enable the Root User and log in as the Root User. You need to be very careful while logged in as the Root User because you can delete any file and could potentially ruin your system. As soon as the non-functioning applications are deleted, log out and use your normal account. Did I mention doing a backup?
    Root User

  • Help-ColdFusion - enabling a user to search for records in a database by entering a startand end date - (CREATEODBCDATE)

    I want to enable a user to enter a start and end date to
    define the period they want to search for records of members who
    joined on certain dates. Funny thing is...I've got it to work half
    of the time. For e.g. I have 4 records between 26/10/2005 and
    1/08/2006. When I enter 01/01/2005 as startDate and 31/08/2006 as
    endDate, I get the 4 records. However, if I alter the endDate to
    01/09/2006 I get every record in the database!!!??? Why's this? I
    can't get my head around it!
    Here's my code:
    First the code for the form the user input the search
    criteria on:
    <html>
    <body>
    <FORM action="memberJDateSearch.cfm" method="post">
    <p>Start Date: <input type="text"
    name="startDate">
    <br>End Date: <input type="text" name="endDate">
    <input type="reset" value="Clear">
    <input type="submit" value="Submit">
    </FORM>
    </body>
    </html>
    Simple enough. Now the code for the process and display page:
    <html>
    <body>
    <cfquery name="memberJDateSearch"
    datasource="jpkelle2-access">
    SELECT *
    From members
    WHERE ((joinDate BETWEEN #CreateODBCDate(startDate)# AND
    #CreateODBCDate(endDate)#))
    </cfquery>
    <table border=1 bgcolor="beige" cellpadding="3"
    cellspacing="0">
    <tr>
    <th>Member ID</th>
    <th>Name</th>
    <th>Sex</th>
    <th>Date of Birth</th>
    <th>Address</th>
    <th>Email</th>
    <th>Date Joined</th>
    </tr>
    <CFOUTPUT Query="memberJDateSearch">
    <tr>
    <td><center>#memberID#<center></td>
    <td width="15%">#forename# #initial#
    #surname#</td>
    <td>#sex#</td>
    <td width="10%">#disp('#dob#')#</td>
    <td>#address#, #town#, #county#, #postCode#</td>
    <td>#email#</td>
    <td width="10%">#disp('#joinDate#')#</td>
    </tr>
    </CFOUTPUT>
    </table>
    <hr><p>End of members list.</p>
    </body>
    </html>
    any ideas? please help me.

    Try formatting your dates first (before the CreateODBCDate
    call). I just tried this on my test page and it worked properly. I
    removed the DateFormat calls, keeping the dates in your format and
    it didn't work. See if something like the following will help:
    <cfset startDate =
    DateFormat("31/01/2006","dd/mm/yyyy")/>
    <cfset endDate =
    DateFormat("01/09/2007","dd/mm/yyyy")/>
    <cfquery name="memberJDateSearch"
    datasource="jpkelle2-access">
    SELECT *
    From members
    WHERE ((joinDate BETWEEN #CreateODBCDate(startDate)# AND
    #CreateODBCDate(endDate)#))
    </cfquery>

  • Enabling end users to create and upload their own layouts for PDF reports

    Using the PDF printing features in APEX 3.x and BI Publisher, you can create professional looking report designs with no programming knowledge, simply by using the built-in wizards of the BI Publisher Word Plug-In, and a little knowledge of how to use MS Word. The nice thing about using the Word Plug-In is that even the end users of your APEX applications could potentially do this. The only problem is, that typically those report layouts are stored under the Shared Components of your application, and end users generally don't have access to the Application Builder, all they typically use is your APEX application. So then why not simply add an interface to your APEX application that lets your end users upload their own layouts and dynamically link them to APEX report queries at runtime? I put together a sample application that demonstrates this technique, you can try it out on apex.oracle.com or download the application and try it on your own APEX instance. Here's the link to my Blog with more information:
    http://marcsewtz.blogspot.com/2008/05/enabling-end-users-to-create-their-own.html
    Regards,
    Marc

    Hi Marc,
    Very nice app. I tried to create a new template with success.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Script that enables mail users and kicks out two csv files

    I am working on a script that will mainly be used as a scheduled task to enabled mailuser by calling the update-recipient command. 
    But before it calls that command it will get for various issues that can cause errors.
    Missing PrimarySMTP
    Display name having a space at front or back.
    The external email address being blank.
    I have IF statements setup to check for those and then call a function that will save into an array the issue for that user. 
    Here is the script
    <#
    .SYNOPSIS
    Enable-MailUsers Synced Mail Users in the Exchange environment
    THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE
    RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
    Version .9, 30 June 2014
    .DESCRIPTION
    This script mail-enables Synced Mail Users and creates a CSV report of mail users that were enabled.
    The following is shown:
    * Report Generation Time
    .PARAMETER SendMail
    Send Mail after completion. Set to $True to enable. If enabled, -MailFrom, -MailTo, -MailServer are mandatory
    .PARAMETER MailFrom
    Email address to send from. Passed directly to Send-MailMessage as -From
    .PARAMETER MailTo
    Email address to send to. Passed directly to Send-MailMessage as -To
    .PARAMETER MailServer
    SMTP Mail server to attempt to send through. Passed directly to Send-MailMessage as -SmtpServer
    .PARAMETER ScheduleAs
    Attempt to schedule the command just executed for 10PM nightly. Specify the username here, schtasks (under the hood) will ask for a password later.
    .EXAMPLE
    Generate the HTML report
    .\Enable-MailUsers.ps1 -SendMail -MailFrom [email protected] -MailTo [email protected] -MailServer ex1.contoso.com -ScheduleAs SvcAccount
    #>
    param(
    [parameter(Position=0,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Send Mail ($True/$False)')][bool]$SendMail=$false,
    [parameter(Position=1,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail From')][string]$MailFrom,
    [parameter(Position=2,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail To')]$MailTo,
    [parameter(Position=3,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Mail Server')][string]$MailServer,
    [parameter(Position=4,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='Schedule as user')][string]$ScheduleAs
    # Sub Function to neatly update progress
    function _UpProg1
    param($PercentComplete,$Status,$Stage)
    $TotalStages=5
    Write-Progress -id 1 -activity "Mail enabled Objects" -status $Status -percentComplete (($PercentComplete/$TotalStages)+(1/$TotalStages*$Stage*100))
    #Sub Function create ErrObject output
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    # 1. Initial Startup
    # 1.0 Check Powershell Version
    if ((Get-Host).Version.Major -eq 1)
    throw "Powershell Version 1 not supported";
    # 1.1 Check Exchange Management Shell, attempt to load
    if (!(Get-Command Get-ExchangeServer -ErrorAction SilentlyContinue))
    if (Test-Path "D:\Exchsrvr\bin\RemoteExchange.ps1")
    . 'D:\Exchsrvr\bin\RemoteExchange.ps1'
    Connect-ExchangeServer -auto
    } elseif (Test-Path "D:\Exchsrvr\bin\Exchange.ps1") {
    Add-PSSnapIn Microsoft.Exchange.Management.PowerShell.Admin
    .'D:\Exchsrvr\bin\Exchange.ps1'
    } else {
    throw "Exchange Management Shell cannot be loaded"
    # 1.2 Check if -SendMail parameter set and if so check -MailFrom, -MailTo and -MailServer are set
    if ($SendMail)
    if (!$MailFrom -or !$MailTo -or !$MailServer)
    throw "If -SendMail specified, you must also specify -MailFrom, -MailTo and -MailServer"
    # 1.3 Check Exchange Management Shell Version
    if ((Get-PSSnapin -Name Microsoft.Exchange.Management.PowerShell.Admin -ErrorAction SilentlyContinue))
    $E2010 = $false;
    if (Get-ExchangeServer | Where {$_.AdminDisplayVersion.Major -gt 14})
    Write-Warning "Exchange 2010 or higher detected. You'll get better results if you run this script from an Exchange 2010/2013 management shell"
    }else{
    $E2010 = $true
    $localserver = get-exchangeserver $Env:computername
    $localversion = $localserver.admindisplayversion.major
    if ($localversion -eq 15) { $E2013 = $true }
    #Get date
    $filedate = get-date -uformat "%m-%d-%Y"
    $filedate = $filedate.ToString().Replace("0", "")
    #Get the valid users that are not mail-enabled
    _UpProg1 1 "Getting User List" 1
    #$Users = Get-mailuser -ResultSize unlimited -OrganizationalUnit "R0018.COLLABORATION.ECS.HP.COM/Accounts/AbbVienet/Users" | ?{$_.legacyexchangeDN -eq ""}
    $i = 0
    $output = @()
    $errOutput = @()
    $err = $False
    #2 Process users
    ForEach ($User in $Users){
    $i++
    _UpProg1 ($i/$Users.Count*100) "Updating Recipients" 2
    If ($user.ExternalEmailAddress -eq $null){
    _ErrObject $user.Name, "Missing External Email Address"
    ElseIf($user.DisplayName -NotLike "* "){
    _ErrObject $user.Name, "DisplayName contains a trailing space"
    ElseIf($user.DisplayName -NotLike "_*"){
    _ErrObject $user.Name, "DisplayName contains a Leading space"
    ElseIf($user.PrimarySmtpAddress -eq $null){
    _ErrObject $user.Name, "Missing Primary SMTP address"
    Else{
    #Disable EmailAddressPolicy on these users
    Set-Mailuser $User.Name -EmailAddressPolicyEnabled $false
    #pass to Update-recipient
    Update-Recipient $User.Name
    $LEDN = Get-MailUser $User.Name | Select {$_.LegacyExchangeDN}
    If ($LEDN -ne ""){
    $object = New-Object -TypeName PSObject
    $X500 = "x500:" + $LEDN.'$_.LegacyExchangeDN'
    $object | Add-Member -Name 'Name' -MemberType Noteproperty -Value $User.Name
    $object | Add-Member -Name 'x500' -MemberType Noteproperty -Value $X500
    $output += $object
    #Creating CSVFile Output
    _UpProg1 99 "Outputting CSV file 3" 3
    $CSVFile = "c:\scripts\Mail-enable\Mailenabled_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    If($err){
    $ErrCSVFile = "c:\scripts\Mail-enable\ProblemUsers_$((Get-Date).ToString('MM-dd-yyyy_hh-mm-ss')).csv"
    $errOutput | Select-Object Name, Comment | ConvertTo-CSV -NoTypeInformation > $ErrCSVFIle
    $Output | ConvertTo-Csv -NoTypeInformation > $CSVFile
    if ($SendMail)
    _UpProg1 95 "Sending mail message.." 4
    If($err){
    Send-MailMessage -Attachments $CSVFile,$ErrCSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    Else{
    Send-MailMessage -Attachments $CSVFile -To $MailTo -From $MailFrom -Subject "Enable Mail Users Script" -BodyAsHtml $Output -SmtpServer $MailServer
    if ($ScheduleAs)
    _UpProg1 99 "Attempting to Schedule Task.." 4
    $dir=(split-path -parent $myinvocation.mycommand.definition)
    $params=""
    if ($SendMail)
    $params+=' -SendMail:$true'
    $params+=" -MailFrom:$MailFrom -MailTo:$MailTo -MailServer:$MailServer"
    $task = "powershell -c \""pushd $dir; $($myinvocation.mycommand.definition) $params\"""
    Write-Output "Attempting to schedule task as $($ScheduleAs)..."
    Write-Output "Task to schedule: $($task)"
    schtasks /Create /RU $ScheduleAs /RP /SC DAILY /ST 22:00 /TN "Enable Mail Users" /TR $task
    The Problem is that when I look at the $errOutput I see things but when I pipe the $erroutput to convertTo-CSV I get this within the CSV file. I think its because I an calling a function to do the updating. But not sure.
    Jeff C

    Hi Jeff,
    Any updates? If you have any other questions, please feel free to let me know.
    A little clarification to the script:
    function _ErrObject{
    Param($name,
    $errStatus
    If(!$err){
    Write-Host "error detected"
    $script:err = $True
    $ErrObject = New-Object -TypeName PSObject
    $Errobject | Add-Member -Name 'Name' -MemberType Noteproperty -Value $Name
    $Errobject | Add-Member -Name 'Comment' -MemberType Noteproperty -Value $errStatus
    $script:ErrOutput += $ErrObject
    $errOutput = @()
    _ErrObject Name, "Missing External Email Address"
    $errOutput
    _ErrObject Name "Missing External Email Address"
    $errOutput
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support

  • Cannot enable Admistrative user after already been enabled before

    I hope im not alone on this one but wat the hell, i need help asap. My problem is that I cannot enable my Administrative user( the built in one). I had enabled it long tym before, created a password, and then disabled it again just recently. now I can't
    re-enable this user account as I need an administrative password. I would have gladly entered the password if there was somewhere I could actually type it in but, no...there was none.
    I've tried all three methods but that was for enabling the administrative account without the use of a password or when enabling it for the first time. i cannot install anything and have lots of invaluable information on the admin acc. on the
    verge of breaking my notebook. Help Please. 

    Hi,
    Have you tried the option 3 (UI) and option 4 (GPO) to enable it.
    How to Enable or Disable Built-in Elevated "Administrator" Account Windows 8 and 8.1
    http://www.eightforums.com/tutorials/9650-built-administrator-account-enable-disable-windows-8-a.html
    Can we get this done?
    If there is any difficult or issue during these steps, please post back the detailed status here for further research.
    If we cannot get this fixed, we may need to reset or refresh the PC from installation media/image backup to fix the issue. 
    Kate Li
    TechNet Community Support

  • Changing short name - cannot enable root user??

    Hi I encountered a problem trying to enable the root user in order to follow the steps to change my short name. As I follow the steps into opening Directory Utility and entering my administrator account name and password. Here's where I'm stuck at, there is no "Edit" button asking me to enable the root user. Anyone have any idea what I should do now?

    ow88 wrote:
    Alright I have no idea why I can't edit my own post, but anyways..
    You only have about 10 minutes to edit.
    did a little research, turns out it gets more complicating than that. It messes up your files, locks you out, and you lose being your own adminstrator? But since I have nothing saved, this doesn't affect me right?
    In Directory Utility.app (in utilities) unlock the lock, lower left by clicking on it. Then in the menu, top left on your screen, under Edit, click Enable Root user and proceed.
    You can also enable the root in a terminal by entering
    sudo passwd root
    and first entering your regular admin password and then selecting a root password, which should not be the same as your admin password for obvious reasons.
    After that you are on your own, but I suggest first backing the OS up since there might be unexpected consequences from changing the short name. Even if you have nothing saved, you might find that the OS gets hosed for some reason and you have to do a complete reinstall. Using a TM or clone backup makes this a trivial thing to do. Otherwise, it's starting from scratch and updating everything all over again.

  • Question on LDAPSync Post Enable Provision Users to LDAP task

    Hi All,
    Can you please clarify my doubt on
    I created a user "testaccount" in OIM and via ldapsync, it gets created in OID.
    Now, I manaully deleted that user "testaccount" in OID and wants to recreate the user account again in OID. Will this schedule task "LDAPSync Post Enable Provision Users to LDAP" solve my purpose or not?
    Regards,
    Sunny

    I would not expect the account to be re-created. As far as OIM concerned it is in OID, as it was reconciled from OID, and OIM has a record of it's DN and GUID. If OIM later sees the account as disappeared it just treats this as an operation error, and does not update itself to say the account is deleted.
    Have you run the LDAP Sync user deletion reconciliation job? If so it should have deleted the user in OIM. You can then create a new user with the same name (but different logon unless you set the system property to allow logon re-use), to create a new OID account.
    If you do want to create the same user in OID without deleting and recreating the OIM user, via this post-create scheduled it is possible, but involves messing about with the OIM user record in the database to cleat out its old DN and GUID. In that way OIM thinks the user is not in LDAP and should try to recreate.

  • Enable a user for SOAP adapter

    Dear all,
    I'm using XML Spy to send message to XI SOAP adapter (sender adapter). It always requires me to input the user name and password. I have a user with limited authority in the XI server. How cound I enable this user so that I can use it to communicate with the SOAP adapter?
    Thanks, Jerome

    Jerome,
    ask your basis to create a sercivce userid and password . for testing you can use ur userid even though if dont many authorization.if ur user basic authorization this should work.
    Regards
    Sreeram.G.Reddy

  • Cannot enable root user

    When I set up my user account last year when I got this computer, I am pretty sure I remember a shortname being filled in or suggested to me, and it had an uppercase character for its first letter. So, my short name is "Name" -- except, you know, instead of "Name" it's my first name.
    Anyway, I haven't had any issues until I installed 1Password. I'm having some trouble keeping it in sync, and ran a troubleshooting app as part of their guidance and I see that they say an issue is that my shortname contains an uppercase letter, when in fact it should be all lowercase.
    I find mixed reviews online of whether all lowercase in the short name is still a thing—I've found a few places that say uppercase letters were allowed in 10.6.8, but others say that it should be all lowercase and I need to change my shortname.
    I'd really rather not change it, but just to see how I would do it if I ended up having to, I checked out these instructions http://support.apple.com/kb/HT1428. I got hung up on enabling the root user, though, because I'm not able to select "Enable root user" from the edit menu. It's always grayed out.
    I then found this Apple doc on enabling the root user in Mountain Lion: http://support.apple.com/kb/PH11331?viewlocale=en_US but it's nothing different. "Enable root user" is still always grayed out in the edit menu.
    So... Is there no way I can enable the root user? I'm running 10.8.

    FWIW, enabling the root user account to change a user's shortname is taking a sledgehammer to put a tack in a wall to hang a picture. Better is to follow this:
    https://discussions.apple.com/docs/DOC-3872.
    I've not enabled the root user account since installing OS X in 2002 and I use the Terminal and the CLI routinely.

  • Mountain Lion won't allow me to enable root user

    Hi, I'm new to everything Mac, but I'm trying to learn.  Just purchased a used mid-2011 iMac from an individual.  I love the iMac.  Just a few kinks to work out.  One is that he had originally named either the user account or home directory (I still can't figure out which) and i'd like to change that name.  I found an Apple support article on this (Article HT1428) and I am hopeful it will work for me.  However, the first step is to enable the root user.  I went to Article PH11331 to follow steps to enable the root user.  However, when I select Edit from within the Directory Utility, I am unable to select "Enable Root User", or even "Disable Root User" or "Change Root Password" for that matter.  These options are either not there or are greyed out ("Enable Root User" is greyed out).  So I have failed to even jump the first hurdle (enabling root user) towards my goal of changing the user account or home directory name (sorry I don't know which is which).  Can anyone offer some advice please?  Thanks!

    Mac Basics: Time Machine
    Back up all data to at least two different storage devices.
    Boot into Recovery, launch Disk Utility, and erase the startup volume. This operation will destroy all data on the volume, so you had be better be sure of your backups. Install OS X. If your Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade, so make a note of those before you begin.
    When you reboot, you'll be prompted to go through the initial setup process. That’s when you transfer the data from one of your backups. For a walkthrough, see here:
    Using Setup Assistant
    Don't transfer the Guest account, if it was enabled on the old system.
    Note: You need an always-on Ethernet or Wi-Fi connection to the Internet to use Recovery. It won’t work with USB or PPPoE modems, or with networks that require any kind of authentication other than a WPA or WPA2 Personal password.

Maybe you are looking for

  • How to print a black page in white

    Dear sirs I wonder if it is possible to set a print button, on a black background page with white text, to allow the user to print it with white background and black text so that he won't waste a lot of ink to print the data Thx in advance

  • Will they ever give me an update after 24 hours

    I put my order 24th July, they gave me an estimate date on 12th, Aug for activation. but nothing happened on 12th, Aug. So I phoned BT customer service, they helped to have a check and said there was some issue with Exchange and they would work on it

  • Help with texting problems??

    hi Im not sure  what to do. I was texting a good friend of mine the other night and he was texting me back too. The next morning I tried texting him again and it just said sent. But when I tried calling it just rings a ton until it eventually goes to

  • Multiple joins between tables

    Not sure that the title best describes this. I've got two tables which I'll simplify here t1 - building (BuildingCode, Reception, Porter, Manager) A, 1, 3, 8 B, 2, 4, 9 C, 1, 4, 7 t2 - staff (ID, Name, Extn) 1, Dave, 3302 2, Chris, 3994 3, Claire, 30

  • Can't update iBooks or other apps.

    My phone was first synced to my friend's computer and he doesn't know the password for it or the email for it. It won't let me use my apple ID, Help me out! Also, if I sync my phone to another computer can I back my files on it or so I have to go to