Move user files and preferences to new opne directory log in

I have a machine that I have been using for a few months. I log in to the machine as an admin user. We just put in a new MAC OS X server and are going to be using Open Directory and probably Mobility on the users.
Is it possible to move or duplicate current state (preferences, passwords, bookmarks, email, etc.) of my computer to a new Open Directory log in on the same computer. If i can what is going to be the easiest way.
Both the sever and my machine are 10.5.6.

If you're logged into the old drive, select GO from the FInder menu while holding the option key down. Select Library from the submenu. This is your Home Library.
The Mail folder will contain all accounts, mailboxes, and account preferences.
The Mail application preferences will be stored in the Preference folder.
For "what files you need" , that depends on what you're trying to accomplish. What are you trying to do?

Similar Messages

  • Move user files and preferences to new open directory log in

    I have a machine that I have been using for a few months. I log in to the machine as an admin user. We just put in a new MAC OS X server and are going to be using Open Directory and probably Mobility on the users.
    Is it possible to move or duplicate current state (preferences, passwords, bookmarks, email, etc.) of my computer to a new Open Directory log in on the same computer. If i can what is going to be the easiest way.
    Both the sever and my machine are 10.5.6.

    If you're logged into the old drive, select GO from the FInder menu while holding the option key down. Select Library from the submenu. This is your Home Library.
    The Mail folder will contain all accounts, mailboxes, and account preferences.
    The Mail application preferences will be stored in the Preference folder.
    For "what files you need" , that depends on what you're trying to accomplish. What are you trying to do?

  • New to the Apple and I want to set up a user account that will not delete the guest users files and allow and preserve their personal settings after log out. Is this possible?

    New to the Apple and I want to set up a user account that will not delete the guest users files and allow and preserve their personal settings after log out. Is this possible?

    The built-in guest user account will not do this. Simply create a new standard account and call it "Guest" or "Guest Users" or whatever you like.
    Go to System Preferences > Users& Groups, click "+" to make a new account.

  • Remove / unload external swf file(s) from the main flash file and load a new swf file and garbage collection from memory.

    I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
    This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/Down3()"
    import nl.demonsters.debugger.MonsterDebugger;
    var d:MonsterDebugger=new MonsterDebugger(this);
    stage.scaleMode=StageScaleMode.NO_SCALE;
    stage.align=StageAlign.TOP_LEFT;
    stage.addEventListener(Event.RESIZE, resizeHandler);
    // loader is the loader for portfolio page swf
    var loader:Loader;
    var loader2:Loader;
    var loader3:Loader;
    var loader1:Loader;
    //  resize content
    function resizeHandler(event:Event):void {
        // resizes portfolio page to center
    loader.x = (stage.stageWidth - loader.width) * .5;
    loader.y = (stage.stageHeight - loader.height) * .5;
    // resizes about page to center
    loader3.x = (stage.stageWidth - 482) * .5 - 260;
    loader3.y = (stage.stageHeight - 492) * .5 - 140;
    /*loader2.x = (stage.stageWidth - 658.65) * .5;
    loader2.y = (stage.stageHeight - 551.45) * .5;*/
    addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
    function onEnterFrame(ev:Event):void {
    var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
    loader = null;
    loader = new Loader();
    loader.name ="carousel1"
    //adds gallery.swf to stage at begining of movie
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader.load(requesterb);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader);
    loader.x = (stage.stageWidth - 739) * .5;
    loader.y = (stage.stageHeight - 500) * .5;
    // stop gallery.swf from duplication over and over again on enter frame
    removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    //PORTFOLIO BUTTON
    //adds eventlistner so that gallery.swf can be loaded
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    function Down(event:MouseEvent):void {
    // re adds listener for contact.swf and about.swf
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    //unloads gallery.swf from enter frame if users presses portfolio button in nav
    var requester:URLRequest=new URLRequest("carouselLoader.swf");
        loader = null;
    loader = new Loader();
    loader.name ="carousel"
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader);
    loader.x = (stage.stageWidth - 739) * .5;
    loader.y = (stage.stageHeight - 500) * .5;
    removeChild( getChildByName("about") );
    removeChild( getChildByName("carousel1") );
    // remove eventlistner and prevents duplication of gallery.swf
    MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
    //INFORMATION BUTTON
    //adds eventlistner so that info.swf can be loaded
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    function Down1(event:MouseEvent):void {
    //this re-adds the EventListener for portfolio so that end user can view again if they wish.
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    var requester:URLRequest=new URLRequest("contactLoader.swf");
    loader2 = null;
    loader2 = new Loader();
    loader2.name ="contact"
    loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader2.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader2);
    loader2.x = (stage.stageWidth - 658.65) * .5;
    loader2.y = (stage.stageHeight - 551.45) * .5;
    // remove eventlistner and prevents duplication of info.swf
    MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
    //ABOUT BUTTON
    //adds eventlistner so that info.swf can be loaded
    MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    function Down3(event:MouseEvent):void {
    //this re-adds the EventListener for portfolio so that end user can view again if they wish.
    MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
    var requester:URLRequest=new URLRequest("aboutLoader.swf");
    loader3 = null;
    loader3 = new Loader();
    loader3.name ="about"
    loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
    function ioError(event:IOErrorEvent):void {
    trace(event);
    try {
    loader3.load(requester);
    } catch (error:SecurityError) {
    trace(error);
    addChild(loader3);
    loader3.x = (stage.stageWidth - 482) * .5 - 260;
    loader3.y = (stage.stageHeight - 492) * .5 - 140;
    removeChild( getChildByName("carousel") );
    removeChild( getChildByName("carousel1") );
    // remove eventlistner and prevents duplication of info.swf
    MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
    stop();

    Andrei1,
    Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
    "TypeError: Error #1009: Cannot access a property or method of a null object reference."
    I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
         loader.unload();
         loader2.unload();
         loader3.unload();
    I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
         function killLoad():void{
         try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
         loader.unload(); loader2.unload(); loader3.unload();
    I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly?  Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
    ---- Here is my updated code ----
    // variable for external loaders
    var loader:Loader;
    var loader1:Loader;
    var loader2:Loader;
    var loader3:Loader;
    // makes borders resize with browser size
    function resizeHandler(event:Event):void {
    // resizes portfolio page to center
         loader.x = (stage.stageWidth - loader.width) * .5;
         loader.y = (stage.stageHeight - loader.height) * .5;
    // resizes about page to center
         loader3.x = (stage.stageWidth - 482) * .5 - 260;
         loader3.y = (stage.stageHeight - 492) * .5 - 140;
    //adds gallery.swf to stage at begining of moviie
         Down();
    //PORTFOLIO BUTTON
    //adds eventlistner so that gallery.swf can be loaded
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
    function Down(event:MouseEvent = null):void {
    // re adds listener for contact.swf and about.swf
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
    //unloads gallery.swf from enter frame if users presses portfolio button in nav
         var requester:URLRequest=new URLRequest("carouselLoader.swf");
         loader = new Loader();
         loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader.load(requester);
         } catch (error:SecurityError) {
         trace(error);
         this.addChild(loader);
         loader.x = (stage.stageWidth - 739) * .5;
         loader.y = (stage.stageHeight - 500) * .5;
    // sure this is not the best way to do this - but it is unload external swfs
         loader.unload();
         loader2.unload();
         loader3.unload();
    // remove eventlistner and prevents duplication of gallery.swf
         MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
    //INFORMATION BUTTON
         //adds eventlistner so that info.swf can be loaded
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         function Down1(event:MouseEvent = null):void {
         //this re-adds the EventListener for portfolio so that end user can view again if they wish.
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
         var requester:URLRequest=new URLRequest("contactLoader.swf");
         loader2 = null;
         loader2 = new Loader();
         loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);    
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader2.load(requester);
    }      catch (error:SecurityError) {
         trace(error);
         addChild(loader2);
         loader2.x = (stage.stageWidth - 658.65) * .5;
         loader2.y = (stage.stageHeight - 551.45) * .5;
    loader.unload();
    loader2.unload();
    loader3.unload();
         // remove eventlistner and prevents duplication of info.swf
         MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
    //ABOUT BUTTON
         //adds eventlistner so that info.swf can be loaded
         MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
         function Down3(event:MouseEvent = null):void {
         //this re-adds the EventListener for portfolio so that end user can view again if they wish.
         MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
         MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
         var requester:URLRequest=new URLRequest("aboutLoader.swf");
         loader3 = null;
         loader3 = new Loader();
         loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
         function ioError(event:IOErrorEvent):void {
         trace(event);
         try {
         loader3.load(requester);
    }      catch (error:SecurityError) {
         trace(error);
         addChild(loader3);
         loader3.x = (stage.stageWidth - 482) * .5 - 260;
         loader3.y = (stage.stageHeight - 492) * .5 - 140;
         loader.unload();
         loader2.unload();
         loader3.unload();
         // remove eventlistner and prevents duplication of info.swf
         MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
         stop();

  • Trying to import .mov audio file and burn as MP3

    Can someone point me to a thread, or be kind enough to post answer, about how I might successfully import a .mov audio file and wind up burning it as an MP3. I've been dinking around with this for too long. I can import it and end up with it in the format: MPEG-1, Layer 3. But when I burn it to CD and play it on a Sony boom box, I hear nothing. I tried playing it in another iMac and hear nothing.
    Thanks.

    I was hoping someone in this forum could point me in the right direction to a web site that is designed specifically for Garage Band users that need sound effects.
    Check out:
    http://www.macjams.com/
    http://www.thegaragedoor.com/
    These both are GarageBand-oriented.
    Also, check out:
    http://www.loops4free.net/
    Maybe you'll find something useful at one of them.

  • Using "+" I am unable to open additional tabs; if I use File and click on New Tab it will open. I don't have the Ask Toolbar. How can this be corrected?

    Prior to today, when I clicked on the "+" a new tab would open. It no longer does that. However, when I open File and click on "New Tab" it opens just fine. I do not have the Ask Toolbar as far as I know (this was mentioned as a problem previously). What can be done to fix this? Thank you.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf
    *https://support.mozilla.org/kb/Toolbar+keeps+resetting

  • Old mac wont boot xcpt via firewire, want to move iphoto files from old to new, where are the pics stored?

    old mac wont boot xcpt via firewire, want to move iphoto files from old to new, where are the pics stored?

    Photos are stored in your home folder (~pictures).
    Barry

  • [svn:bz-trunk] 10059: update two package-info.java files, and add one new one.

    Revision: 10059
    Author:   [email protected]
    Date:     2009-09-08 11:31:48 -0700 (Tue, 08 Sep 2009)
    Log Message:
    update two package-info.java files, and add one new one.
    Modified Paths:
        blazeds/trunk/modules/proxy/src/flex/messaging/services/http/proxy/package-info.java
    Added Paths:
        blazeds/trunk/modules/core/src/flex/messaging/util/concurrent/package-info.java
        blazeds/trunk/modules/core/src/flex/messaging/validators/package-info.java

    Revision: 10059
    Author:   [email protected]
    Date:     2009-09-08 11:31:48 -0700 (Tue, 08 Sep 2009)
    Log Message:
    update two package-info.java files, and add one new one.
    Modified Paths:
        blazeds/trunk/modules/proxy/src/flex/messaging/services/http/proxy/package-info.java
    Added Paths:
        blazeds/trunk/modules/core/src/flex/messaging/util/concurrent/package-info.java
        blazeds/trunk/modules/core/src/flex/messaging/validators/package-info.java

  • How to crop a mp3 file and create a new small one from it?

    Hi all,
    I would crop a long mp3 sound file and create a new small one with the short part from the long mp3 sound file. How to do it? Anybody can help me?
    Thank you very much.
    Regard
    David

    Have you managed to do this?
    I would also like to know how.
    Thanks
    Jeff Singer

  • User account missing files and preferences??  Not from renaming home folder

    Hi all,
    After some strange behaviour in Apple Color, upon rebooting, my user account has returned to default. I had many items on the desktop and various subfolders in the documents folder. All pictures. Music. All are now gone. Desktop and dock have been reset to default.
    The user folder still exists but everything I had in there is gone.
    Another user may have been created called "root" containing only
    /Library
    /Documents/Color Documents...etc
    I am aware of the problem with changing the short name or renaming the home folder (after sifting through this forum) and it is definitely not this problem.
    Maybe its somehow related but I definitely did not rename any of these things myself. And there is no duplicated user account with all my files in it.
    Any help or ideas would be greatly appreciated.
    Cheers
    Nate
    ps. Is it possible to restore the system to an earlier time like in Windows?
    I've read somewhere that a Previous System folder exists and it might be possible with Disk Utility but I can't find this folder anywhere.
    Message was edited by: stoney23

    Hi there,
    Thanks for the reply. I've managed to restore most of my important stuff using a file recovery software so I'm at peace with the loss of only a few files now. I'll just have to start rebuilding my dock and preferences again now which is not the end of the world.
    After a bit of thinking about it I'm 95% sure this is what happened.
    Color tried to save an image file with the same name as the folder I had made storing all my Color project saves. The folder was called Post. I'm not quite sure how its possible but it managed to overwrite the folder with the new image file. Now there is a Color image file (with no extension) there called Post and no folder.
    Then I tried to save the Color project and of course it told me the project directory was missing and it will create a new one. I'm guessing this is when Color bulldozed through my user account to create the folder Color Documents where it DIDN'T save the file anyway
    Leaving me with a default user account deleting everything that was 'added' to the account previously.
    It also created another user account called 'root' in which there is also only a Color Library/preferences and documents folder
    Is that normal that things like that can just happen?
    I guess from here I will just try and finish my project and afterwards do a re-install of the OS just to be sure - checking the Archive and Install option this time
    Unless you have any other ideas from what I've told you.
    Thanks again for replying
    Nate

  • Timeouts increased after we moved USR, SAP data files and TLogs to new SAN

    We are having issues with timeouts after we moved our USR, SAP SQL Datafiles and SAP Transaction Logs from our old SAN to a new SAN.
    Timeouts for SAPGUI users are set to 10 minutes.
    We are running Windows Server 2003 with SQL Server 2005.
    The SAP database has 8 datafiles with a total size of about 350GB.
    Procedure we used to move SAP to new SAN:
    1. Attached 3 new SAN Volumes
         -a. USR
         -b. Data Files
         -c. Transaction Logs
    2. Shutdown SAP and SQL services
    3. Alligned the new volumes with a 1024kb offset and gave the Data files and Transaction log volumes a 64kb allocation
        size. (The alignment and 64kb allocation size were not setup for these volumes on the old SAN)
    4. Copied the 3 volumes from old to new.
    5. Changed the new volumes drive letter to the drive letters of the old volumes.
         -a. I had to restart in order to change the USR volume.
         -b. Because of this I had to resetup the sapmnt and saploc shares.
    6. Started SQL services and then SAP services and everything came up just fine.
    The week before we had anywhere from 1 to 9 timeouts per day.
    This week: Monday had 20 and Tuesday had 26.
    On Monday we saw that MD07 was the only transaction that was timing out, but Tuesday had others as well.
    The amount of users in the system is about the same.  The amount of orders going in are about the same.  No big transports went in right before we switched.
    Performance counters that I know about for disk look a lot better on the Data Files.
    - PAGEIOLATCH_SH ms/request is about 50% better
    - Under I/O Performance in DBACOCKPIT:
      - MS/OP is now anywhere from 5 to 30 - Old SAN: 50 to 300
    - The Hit Ratio is over 99% - same as the old SAN
    Looking at Wiley Introscope graphs:
    - The "SAP Host: Average queue length" is about 30% to 40% lower then the old SAN.
    - the "SAP Host: Disk utilization in %" is about the same.
    Questions:
    1. Did we do anything wrong or miss anything with our move procedure?
         a. Do we have to do anything in SQL since we changed volumes even though we kept the drive letters the same?
    2. What other logs or performance counters should I be looking at?
    Thank you,
    Neil

    Our new SAN Vendor is Compellent.  They have been fantastic.  I would highly recommend checking them out.
    The reasons for the timeouts had nothing to do with the SAN...Well kind of anyway.
    I decided to check t-code SM20 to see what users were doing when these timeouts were happening.  What I found was the program R_BAPI_NETWORK_MAINTAIN was being called thousands of times in a matter of 10 to 15 minutes at random times through out the day.  It would take up about 50 to 80 percent of the amount of programs being executed during these times.
    So, I sent this information to our developers and they found out that R_BAPI_NETWORK_MAINTAIN was being called from another program that was looping thousands of times. The trigger to stop the loop wasn't happening fast enough.  They made a change and we haven't seen the timeouts since.
    I think that the performance increases allowed the loop to run faster which caused the slow downs and timeouts to happen more often.
    Thank you to everyone for their help!
    Neil

  • Mover user file to second hard drive

    I have a new iMac with a SSD on which applications are loaded, and everthing else is there by default.  But I wanto store music, documents, photos, etc on the second hard drive.  Can I just drag the "user" file to the second hard drive, since that's the file that contains docs, photos, etc?

    Yes, but if you want to use it as something other than a backup, you also need to open the Accounts pane of System Preferences, control-click your account, and change the home folder path. This will look like /Volumes/volumename/foldername/ when changed.
    (61104)

  • Help creating a script to move users in and out of an OU based on a time limit

    Here's my scenario: we currently have OUs based on the locations of our facilities, we also have a sub-OU(?) underneath it for users that need a group policy applied to them where whitelist applications allowed to run. From time to time we have need to pull
    users out of that sub-OU for a short period of time to let them run applications they normally wouldn't be able to and won't need to run long term. Sometimes we also forget to add these people back into that policy controlled sub-OU because we get busy do
    other things. Server is 2008 R2.
    Here's what I'm looking for: A script that prompts for the users name, pulls that user out of the sub-OU, puts them in the main OU but only for 24 hours. After that time limit is up, a script/command runs that puts the user back in the policy controlled
    sub-OU. I'm thinking a PS script would be the best way to do this.
    Research: Looking at these posts here and here I'm
    thinking I should be able to Frankenstein something together but I have very limited PS scripting experience.
    Can anyone help me create this?

    You've probably figured this out, but we're not typically in the business of writing complete solutions for people. With that said, there are projects I find particularly interesting, such as this one, where I am willing to help get someone started if they
    are willing to take the time to work through the examples and learn from them.
    You have two requests - one is a script that prompts for a user it then moves to a different  location in Active Directory. The second request is a way to move them back without manual interaction. This will require an automated task (scheduled task)
    that will run at select times during a day.
    Here's the first script (1/2): The first two lines set two different variables. The first line sets the $OUPath variable to the SubOU. The second line prompts for a user and, once a user is entered, sets that user to the $User variable. It then runs the
    first try-catch, attempting to replace the $User variable with the data returned from the Get-ADUser cmdlet. Notice the use of the -Properties parameter. By default the modified date and the extensionAttributes are not returned. We will be using the modified
    date so we can be certain that 24 hours passes before we move them back (see part 2/2). Including extensionAttribute13 will ensure we only move users out of the OU if they were moved in by the script. Note: The modified date on a user in AD is changed when
    it is moved from one OU to another. If the user cannot be located in the first try-catch it will say it cannot locate the user in Active Directory. If it can locate it, it will set the $User variable, as described so far, and then move on.
    In the second (or, nested) try-catch we split the user's DistingusihedName at the first comma so that we have two parts. We use the second part (that doesn't include their CN) and see if that matches the $OUPath variable. If it does match then that user
    has already been moved. If it doesn't match then we 1. Move the user, 2. Replace extensionAttribute13 with the string 'MovedUser,' and 3. Output that the user has been moved.
    $OUPath = 'OU=SubOU,OU=MainOU,DC=mydomain,DC=com'
    $User = Read-Host -Prompt 'Enter SamAccountName'
    try {
    $User = Get-ADUser -Identity $User -Properties Modified,extensionAttribute13
    try {
    If ($User.DistinguishedName.Split(',',2) -eq $OUPath) {
    Write-Output -Verbose 'User already moved.'
    } Else {
    Move-ADObject -Identity $User.DistinguishedName -TargetPath $OUPath
    Set-ADUser -Identity $User.SamAccountName -Replace @{extensionAttribute13='MovedUser'}
    Write-Output "'$($User.SamAccountName)' has been moved."
    catch {
    Write-Output "'$($User.SamAccountName)' cannot be moved."
    catch {
    Write-Output -Verbose "Unable to locate '$User' in Active Directory."
    The second script (2/2): Here we also set a couple variables - one is the SubOU's DistinguishedName where we want to return the user and the other is the all of the users from the MainOU. Foreach user in $Users we check if their extensionAttribute13 is set
    to 'MovedUser' and if their modified date is greater than or equal (-ge) to 24 hours. If it is, the script will move the user, clear extensionAttribute13, and let us know the user was moved. If for some reason your $OUPath variable is wrong, the script will
    run the catch portion of the only try-catch we used in this script. Again, you'll have to schedule Task Scheduler to run this script. Good luck!
    $OUPath = 'OU=MainOU,DC=mydomain,DC=com'
    $Users = Get-ADUser -Filter * -SearchBase $OUPath -Properties Modified,extensionAttribute13
    Foreach ($User in $Users) {
    $TimeSince = New-TimeSpan -Start $User.Modified -End (Get-Date)
    If ($User.extensionAttribute13 -eq 'MovedUser' -and $TimeSince.Hours -ge 24) {
    try {
    Move-ADObject -Identity $User.DistinguishedName -TargetPath $OUPath
    Set-ADUser -Identity $User.SamAccountName -Clear extensionAttribute13
    Write-Output "$($User.SamAccountName) has been moved."
    catch {
    Write-Output "$($User.SamAccountName) cannot be moved."
    } Else {
    Write-Output 'No Users to move.'
    If you decide to use this, be sure to change the paths you use for the $OUPath variables. Also, if you're using this with PowerShell 2.0, you will need to use the Import-Module cmdlet to import the ActiveDirectory module. In versions above 2.0 it will be
    imported automatically if you try to use an AD cmdlet.
    Edit: Typo - Get-ADUser property

  • HT3258 after   transferring data from old mac to new mac, I can't see the transfer files and application on new mac.?

    How can I see the      data and application that I transferred from Old Mac to New Mac?
    Transfer of all the files and application was successful but I can't see it on the New Mac.
    Help.

    Thanks for your reply
    I did reboot the system.
    still can't see new user.
    One thing though when the system finished transferring the files
    at the end a message came up
    " 2013-09-11 04:18:05 +0000 Paul Nirwan could not be created.
    I did the transfer two times, same thing. first time I used the WiFi
    and second time from my back up disk with USB connection, using Migration Assistant.
    Second time also said that Paul'Mac already exist, Paul'Mac 2 created.
    How can I get rid of first data trasnferred?
    It will be using too much space on hard drive if Ileave it therre.

  • Find a string in a file and write a new text after it

    hi
    i try to search a string in a small text file. after this position I should write a new text (it is not the end of the text, it could be somewhere between).
    I tried to solve this with the StrginTokenizer, but it does not work properly, any other ideas how to solve this?
    thanks for your comments
    steinfresser

    To insert text into the middle of a file you use the process that has been used since the first text editor was invented over 50 years ago:
    1. Read the text from the file up to the insert point, and write it to a new file.
    2. Write the inserted text to the new file.
    3. Read the rest of the text from the file, and write it to the new file.
    4. Delete the file.
    5. Rename the new file.

Maybe you are looking for

  • Not able to see GC on web.

    GC 10.2.0.1 DB : 10.2.0.4 OS : AIX 5.3 Hello Folks, I have installed GC on exisiting db, without any issue. After installation EM page is not visible on internet explorer. In emoms.log file I have got below error 2009-01-08 17:02:51,849 [XMLLoader0 7

  • Acrobat trial over and I can't seem to view PDF's without purchasing acrobat

    I don't know how to get rid of the prompt to purchase Acrobat now that my trial is over.  Whenever I try to view a PDF I get a window asking me to purchase Acrobat..can't seem to use the regular version of Adobe like I once could.  Help, please!

  • When block citing single lines, the forum adds three lines of extra white space

    If I quote a single code line ... like this one ... then the editor will display it as expected, i.e. a single line surrounded by a border. But after I submit the post, three additional empty lines are appended. This looks ugly and it bloats the bloc

  • How do I change my uverse password

    Hello ladyholmesJust checking up on your post. The steps that paulgarcia posted is good information to help change the Wi-Fi password. However, I was able to locate your U-verse account and I see that the type of gateway//modem you have is the Motoro

  • WebService without WSDL

    Is it possible to use WebService component without specifying wsdl file? I mean just by pointing it to server script and calling its methods? I'm developing Flex client that has to call dynamic (and quite large) ammount of server methods and defining