Help (again) with Average Script

Hi Everyone:
I have problems again with a script in calculation manager:
I need to calculate the average of a member in one account across the year. For example, for Jan the average of Count_1 is equal to the value of Count_2 in Jan; for Feb Count_1 is equal to the sum of values of Jan and Feb from Count_2 divided for 2; for Mar Count_1 is equal to the sum of values of Jan, Feb and Mar from Count_2 divided for 3 and so on.
I'm using the follow script:
*"Count_1"=@AVGRANGE(SKIPNONE,"Count_2",@CURRMBRRANGE("YearTotal",LEV,0, ,0));*
But this script is averaging bad, because what it does for January is to take the January value and divide by two, to sum the values in February January and February and divide by 3, to sum the values in March, January, February and March and divided by 4 and so on.
How i can solve this problem and make a script that works?
Thanks for your help again.

Please, someone can help me???

Similar Messages

  • Help Needed with Apple Script

    I need a little help with Apple Script. I have been using a script for several months now, and all of a sudden it just stopped working. Here's the script"
    ============
    with timeout of 9999 seconds
    tell application "Finder"
    activate
    (* copy target file to another disk - to create a backup *)
    duplicate file "Daily.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
    (* copy a 2nd target file to another disk - to create a backup *)
    duplicate file "Personal.dmg" of folder "File Backups" of disk "HD Mirror" to folder "Data Backup-Daily" of disk "MacHD 1" replacing yes
    (* now copy the 2nd target file to my iDisk *)
    duplicate file "Personal.dmg" of folder "Data Backup-Daily" of disk "MacHD 1" to folder "Documents" of disk "xxxxxx" replacing yes
    end tell
    end timeout
    ============
    In the above script, xxxxxx represents the name of my iDisk that is mounted in the Finder.
    Here's my issue - the above script worked fine until just recently. However, now the first two steps work fine, but I get this error message while trying to copy the file to my iDisk:
    "The operation could not be completed because some items had to be skipped. 'Personal.dmg'"
    Does anyone have any ideas on how I can fix this? I'm wondering if Mac OS 10.4.5 might be the culprit since this problem seems to have occurred shortly after I upgraded???
    Thanks,
    -AstraPoint

    Hi,
    Assumptions :-
    uuencode command exits
    mailx command exits
    File name is "vas.txt".
    Mail id is "[email protected]"
    # START OF SCRIPT
    #!/bin/ksh
    vasFileName="$1"
    vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
    vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
    vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
    vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
    vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
    if [[ -e ${vasRecordsDirFile} ]]
    then
    uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
    elif [[ -e ${vasMetatdataDirFile} ]]
    then
    uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
    elif [[ -e ${vasHeaderDirFile} ]]
    then
    uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
    elif [[ -e ${vasHeaderRejDirFile} ]]
    then
    uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
    elif [[ -e ${vasFieldsDirFile} ]]
    then
    uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
    else
    echo "File doesn't exist in any of the directories mentioned."
    fi
    # END
    Vijay Bheemineni.

  • Help needed with rman script

    Hi guys,
    I need you help in creating rman scripts.
    my plan is the following:
    - at night i would like to make a backup of the database, archivelogs, control file and spfile. then delete the archivelogs on disk.
    - during the day i would like to make every hour, a backup level 1, archivelogs and crontrol file.
    my questions are:
    for the night backup is the following script ok?
    run {
    set command id to 'xxx';
    allocate channel t1 type 'SBT_TAPE';
    allocate channel t2 type 'SBT_TAPE';
    BACKUP INCREMENTAL LEVEL 0 DATABASE;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    change archivelog all;
    backup archivelog all delete input;
    backup current controlfile;
    BACKUP SPFILE;
    release channel t1;
    release channel t2;
    and for the daily backup (run on every hour) what do you think about this? is it ok?
    run {
    set command id to 'xxx';
    allocate channel t1 type 'SBT_TAPE';
    allocate channel t2 type 'SBT_TAPE';
    BACKUP INCREMENTAL LEVEL 1 CUMULATIVE DATABASE;
    sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
    backup archivelog all not backed up 1 times;
    backup current controlfile;
    release channel t1;
    release channel t2;
    please help.
    Message was edited.

    Hi Alanm,
    Right now the DB is generating many archives, that doesn't mean that we cant adapt the script in the future if less archives are generated.
    By saying "You don't have to make the archive log script an incremental 1 backup" you mean that, since we are already making a backup at night to the archives, theres no need to make them also during the incremental 1?
    and for the rest, do you thing the script is ok?

  • Moving folders.  Please help me with my script!

    Pretty much I'm making a script that facilitates moving files into other files that are in other files and so on.  First of all, I ask how many folders are within that folder. Example: Folder 1:Folder 2: Folder 3: Final Destination of Folder that wants to be moved.  Then depending on the amount of folders that are within eachother, I will ask them the name of each folder so I know the file path to the destination of the folder that wants to be moved.  I will then move the chosen folder to its destination.  This is my script so far:
    set theAmount to the text returned of (display dialog "Is there a folder within that folder, if so how many folders are there?" default answer "")
    if theAmount is 1 then set theName1 to the text returned of (display dialog "What is the name of the folder you want to move?" default answer "")
    if theAmount is 1 then set theDestination1 to the text returned of (display dialog "What is the name of the folder you want to move it to?" default answer "")
    if theAmount is 1 then tell application "Finder"
      move folder theName1 to folder theDestination1
    end tell
    if theAmount is 2 then set theName1 to the text returned of (display dialog "What is the name of the folder you want to move?" default answer "")
    if theAmount is 2 then set theDestination1 to the text returned of (display dialog "What is the name of the folder that contains the folder that you want to move to?" default answer "")
    if theAmount is 2 then set theDestination2 to the text returned of (display dialog "What is the name of the folder that is the final destination?" default answer "")
    if theAmount is 2 then tell application "Finder"
      move folder theName1 to (folder theDestination1) + ":" + theDestination2
    end tell
    Problem 1: It asks me the first question then nothing happens.
    Problem 2: I would like to make it so that I don't have to keep repeating "if theAmount is X then ask him the name of the folder it's in X amount of times."
    I appreciate any help, thanks!

    Without seeing your original source setup, it's hard to know quite how to set this up, but...
    Why are you asking the user these questions at all? Let me explain...
    Given a designated folder:
    set theFolder to (choose folder)
    You can find out yourself how many folders there are within it:
    tell application "Finder"
              set theAmount to count folders of folder theFolder
    end tell
    So, for one, you don't need to ask the user how many folders there are - you already know (although you can still ask if you want).
    More importantly, though, you don't have to rely on the user knowing the folder names (and typing them correctly). Give the user the ability to choose from a list:
    tell application "Finder"
              set folder_list to name of folders of folder theFolder
              set theAmount to count folder_list
              set theName to choose from list folder_list with prompt "Which folder do you want to move?"
              set theDestination to choose from list folder_list with prompt "Where do you want to move it?"
    end tell
    Finally your move statement isn't going to work.
      move folder theName1 to folder theDestination1
    In your original code, the user is likely (I assume) to enter the folder names (e.g. "Foo" and "Bar") which will translate into:
      move folder "Foo" to folder "Bar"
    The Finder is going to choke on this - it can't find folder "Foo" (or "Bar") since there isn't enough data there - these strings are not paths, they're just names of folders - and if you're expecting the user to type full paths each time... well, good luck
    The Finder is going to want proper paths to the folders in order to make the moves. You can do this by appending the folder names to the original folder object, e.g.:
      move (folder theName of theFolder) to (folder theDestination of theFolder)
    Although now you're moving a folder out of the source directory, and there's nothing to stop the user from re-selecting the same folder name next time around. You can get around that with a loop but, again, not knowing your ultimate goal here, it's not easy to be precise.

  • Help needed with the script

    Hi all, I am a novice in scripting...
    Could someone help me writing script for the following....
    Assume that there are 5 folders
    1 /etl/dev/work/wellness/enrl_rej/records
    2 /etl/dev/work/wellness/enrl_rej/metadata
    3 /etl/dev/work/wellness/enrl_rej/header
    4 /etl/dev/work/wellness/enrl_rej/hdrrej
    5 /etl/dev/work/wellness/enrl_rej/fields
    need to check if there is a file created in any of the above five locations,
    If the file Exists in Location 1 then
    send message with Subject 'process complete and attached are the rejected records' with the file in that folder as attachemt
    if file exists in Location 2 then
    send message with Subject 'Metadata Mismatch no of fields in detail didn't match' With the file in that folder as attachment
    If file exists in 3 then
    send message with Subject 'Problem with header file - File Rejected' With the file in that folder as attachment
    If file exists in 4 then
    Send message with subject 'the Percentage of rejects more than 3 percent File rejected' With the file in that folder as attachment
    If file exists in 5 then
    Send message with subject 'The header and detail count didn't match File rejected' With the file in that folder as attachment
    Thanks in advance !!!

    Hi,
    Assumptions :-
    uuencode command exits
    mailx command exits
    File name is "vas.txt".
    Mail id is "[email protected]"
    # START OF SCRIPT
    #!/bin/ksh
    vasFileName="$1"
    vasRecordsDirFile=/etl/dev/work/wellness/enrl_rej/records/${vasFileName}
    vasMetatdataDirFile=/etl/dev/work/wellness/enrl_rej/metadata/${vasFileName}
    vasHeaderDirFile=/etl/dev/work/wellness/enrl_rej/header/${vasFileName}
    vasHeaderRejDirFile=/etl/dev/work/wellness/enrl_rej/hdrrej/${vasFileName}
    vasFieldsDirFile=/etl/dev/work/wellness/enrl_rej/fields/${vasFileName}
    if [[ -e ${vasRecordsDirFile} ]]
    then
    uuencode ${vasRecordsDirFile} ${vasRecordsDirFile} | mailx -s "process complete and attached are the rejected records" [email protected]
    elif [[ -e ${vasMetatdataDirFile} ]]
    then
    uuencode ${vasMetatdataDirFile} ${vasMetatdataDirFile} | mailx -s "Metadata Mismatch no of fields in detail didn't match" [email protected]
    elif [[ -e ${vasHeaderDirFile} ]]
    then
    uuencode ${vasHeaderDirFile} ${vasHeaderDirFile} | mailx -s "Problem with header file - File Rejected" [email protected]
    elif [[ -e ${vasHeaderRejDirFile} ]]
    then
    uuencode ${vasHeaderRejDirFile} ${vasHeaderRejDirFile} | mailx -s "the Percentage of rejects more than 3 percent File rejected" [email protected]
    elif [[ -e ${vasFieldsDirFile} ]]
    then
    uuencode ${vasFieldsDirFile} ${vasFieldsDirFile} | mailx -s "The header and detail count didn't match File rejected" [email protected]
    else
    echo "File doesn't exist in any of the directories mentioned."
    fi
    # END
    Vijay Bheemineni.

  • Help needed with diskpart script

    Hello all,
    I'm in the process of writing a diskpart script for formatting and partition a harddrive outside of the standard method provided with SCCM.
    The reason why I'm doing this as we need to create the following disk layout: as Bitlocker is used a partition has to be foreseen with 350MB. Next to that we want to offer to our users a data partition of 40GB. The system partition can then take up the rest
    of the diskspace.
    We partition the disks as follows:
    - Partition 1: 350MB
    - Partition 2: 40GB
    - Partition 3: Rest of the disk (system drive)
    The script is as here below:
    SELECT DISK 0
    CLEAN
    CREATE PART PRI SIZE=350
    SELECT PART 1
    FORMAT FS=NTFS LABEL=<"System Reserved"> QUICK
    CREATE PART PRI SIZE=40960
    SELECT PART 2
    FORMAT FS=NTFS LABEL=<"Data"> QUICK
    ASSIGN Letter=d
    CREATE PART PRI
    SELECT PART 3
    FORMAT FS=NTFS LABEL=<"Windows"> QUICK
    ASSIGN Letter=c
    ACTIVE
    EXIT
    The problem is that eventough we don't assign a drive letter to the system reserved partition, it gets assigned the next available drive letter automatically and is shown to the users.
    How can I make sure that the system reserved partition remains hidden and doesn't receive a drive letter?
    Thanks!
    Filip

    In addition to what Peter has said which i agreed with, SCCM is not very good at assigning drive letters - At least, it doesn't behave the same as Windows.
    This article explains in detail, and gives solutions/workarounds.
    Since using method 3 from this article, we get consistent and reliable behaviour and has resolved drive letter assignment issues. It might be useful in your case (after you use the built in SCCM step for the partitioning of course!).
    http://blogs.technet.com/b/system_center_configuration_manager_operating_system_deployment_support_blog/archive/2014/04/28/how-to-ensure-that-windows-installs-on-c-during-a-system-center-2012-configuration-manager-osd-task-sequence.aspx
    Hope this helps!

  • Help again with album art pleaseeeee

    so i did what btabz said
    unchecked album art.
    pressed ok
    checked it again
    pressed ok
    but then i got an error message
    that said it couldn't do it.
    i also have my ipod set to manually update.
    so when i clicked the check back to auto update.
    pretty much EVERYTHING was deleted from my ipod
    ugggh..
    please help?

    Take it off manual update. Repeat the process. If it still doesn't work, try turning off album artwork, unplugging the iPod, then plug it back in, and put it on disk mode. Then unplug it again, then plug it in again, and check artwork.

  • Please help me with Powershell Script - Message Box to display after Installation

    Hi Guys,
    Am using package model to deploy the software. After installation on client machines i want to display a dialog box to notify the successful installation.
    Currently trying VBScript to show the dialog message.
    But few machines i get this dialog and few machines am not getting, in program command line am calling a batch script.
    Now am planning to use a Power shell scripting to show a message box and trying to call it through a batch script.
    Please assist me with the powershell script which will display a message box like above
    (and let me know in script how to enable the set-execution policy Remote signed enabled)
    Thanks,

    You can set the execution settings from within the client settings.
    For a simple message box without having to load assmemblies
    $wshell = New-Object -ComObject Wscript.Shell
    $wshell.Popup("Operation Completed",0,"Done",0x1)

  • Can anyone help me with a script to pause and restart an application?

    I am setting up a Mini to control a Canon still camera, using Canons EOS utility app to shoot at a certain interval. However I would like to pause the action during the night. In my dreams I also would like to read the countdown of the EOS app to remotely start a timer that starts and stops a spinning glass (rain deflector), via USB?
    I realize that these are two different tasks, but are they possible?
    To break it down:
    1. At a certain time (8pm) to pause the application, so the result is that the camera stops shooting.
    At 7am the action is to resume.
    I would rather not quit the applications since I would loose my settings, interval and camera settings
    2. The EOS app is counting down towards the next shot. The action I would like is that 1 min, prior to the end of countdown a pulse is given (via USB?) to the relay controlling the rain deflector.
    That relay runs it for 2 mins and then powers down.
    I have this set up analog now, with 2 relays and it works fine, however it would be nice to be able to remotely change the interval setting of the camera and the rain deflector would follow suit.
    Any input would be greatly appreciated.

    I can help you for the future.  Regularly back up your computer to an external hard drive (or cloud alternative).  If you have your library backed up, it could be reinstalled on your new computer.  In your current situation, you will have to reload all of your CDs as syncing of non-iTunes purchased music is only one way (Computer to iPod)

  • Urgent help me with my script

    Hi I am trying to customize a script for full backup on sunday.
    It should backup everything on disk in compressed backupsets
    Can some one tell me how can i execute it:
    Tell me too if some things are wrong or stupid in it, because I am new to oracle and databases.I need it to be executed from the rman promt.
    Or i'd like to execute it from cron but I think I am missing some connect string on the database in it.
    I may have made some mistakes too as I am not sure if i need to make some kind of mount database.Everything should go in the flash_recovery area
    --SUNDAY LEVEL 0 BACKUP
    run {
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
    CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 2 G;
    allocate channel d1 type disk;
    backup
    incremental level 0
    tag sunday_level_0
    format 'df_t%t_s%s_p%p'
    database;
    sql 'alter system archive log current';
    backup
    format 'al_t%t_s%s_p%p'
    archivelog all
    delete input;
    release channel d1;
    }

    Before the 'run' command you need to connect:
    CONNECT TARGET <SYSTEM>/<syspwd>
    CONNECT CATALOG rmancat/<rmanpw>@<rman_sid> <= If using RMAN catalog, else start rman with nocatalog option.
    ...etc...

  • Help needed with UCCX script

    Hi
    I need to create a script that will play back the name of the selected agent to the caller before being connected to the user. I have a simple queueing script setup ,just need the portion to play back the name
    Any help will be appreciated

    Hi,
    Play Prompt Step
    Use the Play Prompt step to play back specified prompts to the caller.
    Note :When any previous escalating prompt in the script enters the Play Prompt step, it is reset to the first
    prompt in its list.
    The customizer window of the Play Prompt step contains three tabs:
    • General tab (Play Prompt step)
    • Prompt tab (Play Prompt step)
    • Input tab (Play Prompt step)
    Prompt tab (Play Prompt step)
    Use the Prompt tab of the Play Prompt customizer window to specify the prompt to be played back, and
    to set the Barge In and Continue on Prompt Errors options.
    Figure 2-99 1Play Prompt Customizer Window—Prompt Tab
    Table 2-83 Play Prompt Properties—Prompt Tab
    Properties / Buttons Description
    Prompt Variable or expression indicating which prompt is to be played.
    Please refer page 129 in the Cisco Unified Contact Center Express Editor Step Reference Guide,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cust_contact/contact_center/crs/express_8_5/programming/guide/uccx851_step_ref.pdf
    Hope it helps.
    Anand
    Please rate helpful posts !!

  • Help needed with FormCalc scripting in LiveCylce 8.0

    I am new to the whole form design functionality in Adobe.  I have a form that I have created that has multiple fields calculating off each other.  I have managed to get all the fields to calculate correctly, but I'm having trouble figuring out the correct formula for one field.
    After/during field 3 calculation, I need the value to return 1000.00 if greater than 1000.00 else return Field 3 amount.
    Formula
    Current
    Calculations
    Correct Calculation
    Example 1
    Correct Calculation
    Example 2
    Field 1 - Annual Salary (User enters)
    100000.00
    100000.00
    30000.00
    Field 2 - Weekly Salary (calculation is: field 1 / 52)
    1923.07
    1923.07
    576.92
    Field 3 - Benefit Maximum (calculation is: field 2 * .60)
    1153.84
    1000.00
    346.15
    Field 4 - Hidden Field (calculation is: field 3 - 100.00)
    1053.84
    900.00
    246.15
    Field 5 - Monthly Cost (calculation is: field 4 * .025)
    26.34
    22.50
    6.15
    Field 6 - Pay Period Cost (calculation is: field 5 * 12 / 26)
    12.15
    10.38
    2.83
    After/during field 3 calculation, I need the value to return 1000.00 if greater than 1000.00 else return Field 3 amount.
    Any suggestions on how to get this to work?  Tried setting this up using Java Scipt, but when I do, the fields dissapear alltogether.

    Hi,
    You have to add the attribute to each item props, try this:
    customerExitBeforeIpcItemsCreate(ItemPriceRequest[] iR, IPCItemProperties[] itemProps) {
    for (int i = 0; i < itemProps.length; i++) {
       Map theMap = itemProps<i>.getItemAttributes();
       theMap.put(("ZZITM_USAGE", "Z010");
       itemProps<i>.setItemAttributes(theMap);
    Regards,
    Ranko

  • Help (again) with the payroll problems

    I have seen some posts about the payroll program that we students are trying to figure out. I am having some of the same problems which I have been able to sort through, but I am having a problem that I can't make go away!
    My error is this:
    cannot find symbol
    symbol: variable input
    Here is the work-in-progress code:
    public class PayrollProgram {
    /** Creates a new instance of PayrollProgram */
    public PayrollProgram() {
    //main method begins execution of Payroll Program java application
    public static void main(String[]args)
    double number1; // rate
    double number2; // hours
    double product; // total pay
    System.out.println("Please enter your name:");//prompt
    String nameOfEmployee=input.nextLine();
    System.out.print("Enter rate:$");//prompt
    number1 = input.nextDouble(); // read first number
    System.out.print( "Enter hours: " ); // prompt
    number2 = input.nextDouble(); // read second number
    product = number1 * number2; // multiply numbers
    System.out.printf("%s makes $%.2f%n",nameOfEmployee,product);
    } //end method main
    } //end class PayrollProgram
    I am stuck and don't know where the opening of the paper bag is!
    Thanks!

    String nameOfEmployee=input.nextLine();Do you have a variable called input that you have declared somewhere? I can't find it and neither can the compiler, hence the error.

  • Help with Indesign script

    Would anyone be willing to help me with a script? I need to Find the first table using "ERTStyle1" table style, convert it to text, change the text style to "Tabfix" paragraph style, then convert it back into a table using the table style "ERTStyle2" convert the top row to a header. It needs to repeat this process until there are no tables left using the "ERTStyle1" table style.
    I think I could almost do this myself using VBScript, but I am relatively new to scripting, and to be honest, I am hoping I can use this script to jump start my knowledge of VB in Indesign.

    So all of this is just to set the column widths to the sizes pre-defined in a paragraph style, i.e., always the same?
    I feel like I almost could do that in VB!
    But in Javascript, all it needs is sth in the ilk of
    var myWidths = [ 10, 50, 100, 50, 12 ]; // in whatever units you fancy
    var myTable = app.activeDocument.stories[0].tables[0];  // (just grabbing some table)
    for (i=0; i<myTable.columns.length; i++)
    myTable.columns[i].width = myWidths[i % myWidths.length];
    .. and the most interesting thing here (written from top of my head) is the "myWidths" lookup: it doesn't matter how many columns there are in this table, 'cause the widths array wraps around. (But you won't need this because you know all of your widths in advance.)

  • Please help me with this "2012 R2" PS Script

    Please be kind to help me with this Script. Thank you.....
    Import-Csv C:\Scripts\NewADUsers.csv | foreach-object { $userprinicpalname = $_.SamAccountName + "@{loona}.com"; New-ADUser -SamAccountName $_.SamAccountName -UserPrincipalName $userprinicpalname -Name $_.name -DisplayName $_.name -GivenName
    $_.cn -SurName $_.sn -Description $_.Description -Department $_.Department -Path $_.path -AccountPassword (ConvertTo-SecureString "Loona123" -AsPlainText -force) -Enable $True -PasswordNeverExpires $Ture -PassThru }
    New-ADUser : Directory object not found
    At line:1 char:114
    + Import-Csv C:\Scripts\NewADUsers.csv | foreach-object { $userprinicpalname = $_. ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (CN=Student01,OU...DC=loona,DC=com:String) [New-ADUser], ADIdentityNotFoundException
        + FullyQualifiedErrorId : ActiveDirectoryCmdlet:Microsoft.ActiveDirectory.Management.ADIdentityNotFoundException,Microsoft.Activ 
       eDirectory.Management.Commands.NewADUser

    Please check it the caractors - + =. i have no idea about PowerShell
    ImportCsv C:\Scripts\NewADUsers.csv |
    ForEach-Object{
    $props=@{
    SamAccountName=$_.SamAccountName
    UserPrincipalName=$_.SamAccountName + '@loona.com'
    Name=$_.name
    DisplayName=$_.name
    GivenName=$_.cn
    SurName=$_.sn
    Description=$_.Description
    Department=$_.Department
    Path=$_.path
    AccountPassword=(ConvertTo-SecureString "Loona123" -AsPlainText -force)
    Enabled=$True
    PasswordNeverExpires=$true
    NewObject @orops -PassThru

Maybe you are looking for

  • Aging Report for Multicurrency Customers

    Dear all, We have some customers whose BP Currency have been set to 'all currency' and they have transactions in both our local and foreign currencies. The customer aging report displays the balances only recalculated at the aging date's exchange rat

  • Error While building OBIA application

    Hi Everybody, I've Imported OBIA 7.9.6.4 application {Oracle R1213} in DAC. But not able to build any Execution Plan from the Application. I'm getting following Error Projects - Finance Integration(Oracle R1213) MESSAGE:::There is no database that ma

  • Printers in RDP Windows 2012 and Ubuntu Linux

    Computer 1. Windows Server 2012 Std with RDP Terminal Server Computer 2. Ubuntu Linux 13.04 with RDP client Remmina and HP LaserJet 1020 Printer Computers isn't located in one local network. When I connected to the Windows by RDP - I couldnt see any

  • Flex line chart

    hi i have a flex line chart with some line series. What I wanted to do is get access to the items property of the series. ( this contains the x, y values etc). Question is at what stage during of rending do i need to do this? Ive tried the following

  • How can i make sender address as default in ABAP code

    hi gurus, am developed a abap program to send emails. working fine i want set sendar address as default ,presently am using the following code to set sender address .but below BCMESS userid should in Sap user list then only it should working,my quest