PowerShell Script to Clean User Profiles File Location

Hello,
I have been searching around to accomplish what I am trying to do. It is pretty basic so I am hoping someone can point me in the right direction. I want to write a powershell script to clean out two locations in all the user profiles on a Citrix server.
Here are the steps I'd like to accomplish.
1. Find all user profiles on the Citrix server
2. Delete all the files from these two locations; "\Local Settings\Application Data\Mozilla\*.*" and "\Local Settings\Application Data\Microsoft\OneNote\*.*"
This will run on a weekly basis via a scheduled task. A nice to have would be to add any profile over 60 days old.
I have a pretty good start, but I am still learning PowerShell, so any help would be appreciated.
Thanks in advance!
Thanks, Jeremy

Hello mbwc,
how about showing us what you got so far and detail where you have trouble?
That way, we can help you understand your problems and find the solution yourself (= good for learning), instead of having one of us simply provide the solution (= bad for learning).
Cheers,
Fred
There's no place like 127.0.0.1

Similar Messages

  • Adobe flash updater appears to lock user profile files in Windows 7

    Hello All,
    I don't own any Adobe products, but I wanted to put this up so that others who run into this issue can find it, and hopefully Adobe will look into it if it's common.
    This evening, I had just restarted my computer (Windows 7 RC), and after an usually long load time, I found myself loading into a profile other than my own.  Windows informed me that it has been unable to access my user profile and so had booted me into a temporary profile.  I noticed that the reason for being unable to access the profile was that it was being accessed (locked) by another program.  I rebooted.
    This time when I logged in, I was taken to my own profile, but before it loaded, I received a message from windows stating that it has been unable to open the user profile, and at the same time I saw a prompt from the Adobe Updater asking me if I wanted to upgrade to the next version of Adobe Flash.  After closing the dialogs, my profile contained everything for my desktop, but my windows settings appeared to have all been disabled (meaning Windows Aero was turned off and everything looked...odd--like an older version of windows squeezed into the updated Windows 7 interface).
    Taking a guess that the prompt from the Adobe updater may have been responsible for locking the profile while it was awaiting a response (somehow I guess it was running BEFORE windows loaded the user profile), I uninstalled all my adobe products and rebooted.
    Issue solved. Presumably, installing the update when you first see the prompt and not waiting for another time after a reboot would also bypass this issue.
    So it appears that the Update prompt locks the Windows user profile in Windows 7, which causes a problem because (maybe only on machines that don't auto login?) it appears to run before the profile loads: so it has a user profile file locked waiting for a response from the user, which can't come because the profile hasn't been loaded by Windows (so the user can't see the prompt), but Windows can't load the profile because the file is locked...sort of a soft dead lock (since I was sort of able to get in eventually).
    Wanted to get this out, and was also wondering if anyone else has seen this issue.
    Cheers,
    -jfc

    Trying to install FB 4.5 - comes up with this error on my machine - anyone have any concrete ideas on how to overcome this...
    I've tried rebooting, removing activex plugins etc but of no help....
    WARNING: DW031: Payload:{650C9D09-D5BD-4532-8BEE-01DBC1DF5537} Adobe Flash Builder 4.5 4.5.0.0 has been updated and has been selected for repair. The patch {CEAC4FFA-E7DE-4434-890A-F0AC7792DE5E} Adobe Flash Builder 4.5_4.5.1_AdobeFlashBuilder-mul 4.5.1.0 will be uninstalled now.
    WARNING: DW031: Payload:{650C9D09-D5BD-4532-8BEE-01DBC1DF5537} Adobe Flash Builder 4.5 4.5.0.0 has been updated and has been selected for repair. The patch {CEAC4FFA-E7DE-4434-890A-F0AC7792DE5E} Adobe Flash Builder 4.5_4.5.1_AdobeFlashBuilder-mul 4.5.1.0 will be uninstalled now.
    ----------- Payload: {551D0A52-5E4A-4898-9FFF-FEAA5E89585A} Adobe Flash Player 10 ActiveX 10.0.0.0 -----------
    ERROR: Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action NewCustomAction1, location: C:\DOCUME~1\nanunh\LOCALS~1\Temp\InstallAX.exe, command: -install activex -msi
    ERROR: Install MSI payload failed with error: 1603 - Fatal error during installation.
    MSI Error message: Error 1722.There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action NewCustomAction1, location: C:\DOCUME~1\nanunh\LOCALS~1\Temp\InstallAX.exe, command: -install activex -msi
    ERROR: DW050: The following payload errors were found during install:
    ERROR: DW050:  - Adobe Flash Player 10 ActiveX: Install failed
    Please search the above error/warning string(s) to find when the error occurred.
    These errors resulted in installer Exit Code mentioned below.
    Exit Code: 6 - Silent workflow completed with errors.
    [    1460] Mon Aug 15 17:52:20 2011  INFO
    *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

  • Need a Script for Removing User Profiles in Windows 7

    I am in need of a script that will allow me to remotely delete user profiles from multiple computers. I am an IT Admin over around 15-20 computers that are publicly used by many different people each day, and at least once a month we have to go into each
    computer individually..my computer, properties, profiles and delete them one by one. This is growing very tedious due to manpower and the number of computers we have to do this on. 
    I have absolutely zero knowledge in the scripting department so could somebody point me in the right direction on this? I would like to have a script that i can just run once a month or so and say "delete all profiles from computers x y and z that are
    over a few months old." Is this possible? Thanks in advance!

    Try this link - http://superuser.com/questions/643417/delete-user-profile-from-command-line-windows-7
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/7663ea51-9f4e-4fd7-9946-e16e65c3ed9d/remove-windows-7-user-profiles-via-powershell-script-initiated-on-logoff?forum=ITCG
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • InDesign ICC profile file location

    In InDesign when exporting a PDF, there are different icc color profile files to choose from under the "output" section.
    Most of the files are located in
    user/library/application support/adobe/color/profiles
    But I have one file that I would like to copy to another computer, and I can´t find the darn thing.
    Searching the whole mac does not give any results either.
    Is there a second location for icc-profile files?
    Anyone?

    Hey and thanks for your reply.
    Yes, I have installed the driver package with no luck of finding the file on my new computer.
    Im not entirely sure if the driver package I installed are the same as on my work computer. But I got the newest from Richo representatives, so its current at least.
    I am suspecting the file Im looking for came along with an online update via the App Store. I remember updating Richo something something :/.
    Although the drivers are installed on my new computer, I cant fin the file, and I get no update request in App Store. Maybe my new computer has to be connected to the printer?
    I dont know.
    Strange thing. I cant remember the last time I could not locate a file on my own computer.
    Search reveals nothing. Invisible file search does not either.

  • Change user configuration file location

    Hi All
    I was wondering if it's possible to change the location of
    the User Configuration Files that live in:
    C:\Documents and Settings\*USER*\Application
    Data\Adobe\Dreamweaver 9\Configuration
    The problem I have is that my work computer network policy
    limits my Windows Profile to 50Mb (crazy I know) and I would like
    to move the Dreamweaver (and Flash) config files out of my profile
    to a different location. This would allow me to install extensions
    etc without increasing my profile above the 50Mb limit.
    Any info would be much appreciated.
    Thanks
    Barry.

    I hae not seen a way to do this, unforunately. You can
    suggest it to the
    dev team -
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "nitefoll" <[email protected]> wrote in
    message
    news:fjjnud$88q$[email protected]..
    > Hi All
    >
    > I was wondering if it's possible to change the location
    of the User
    > Configuration Files that live in:
    >
    > C:\Documents and Settings\*USER*\Application
    Data\Adobe\Dreamweaver
    > 9\Configuration
    >
    > The problem I have is that my work computer network
    policy limits my
    > Windows
    > Profile to 50Mb (crazy I know) and I would like to move
    the Dreamweaver
    > (and
    > Flash) config files out of my profile to a different
    location. This would
    > allow me to install extensions etc without increasing my
    profile above the
    > 50Mb
    > limit.
    >
    > Any info would be much appreciated.
    >
    > Thanks
    > Barry.
    >

  • Script to delete user profiles

    I am looking for a script that could be ran either by logout or via ARD . The script needs to delete all user profiles stored on the local mac. except for the admin account and ladmin also an admin account Since all users have an AD account there is no need to keep the users profile. I tried to find a script but no luck I know almost nothing about apple scripts so I am lost. all mac computers are either tiger or panther. All mac clients are managed via a Lepord server also if that helps

    I am looking for a script that could be ran either by logout or via ARD . The script needs to delete all user profiles stored on the local mac. except for the admin account and ladmin also an admin account Since all users have an AD account there is no need to keep the users profile. I tried to find a script but no luck I know almost nothing about apple scripts so I am lost. all mac computers are either tiger or panther. All mac clients are managed via a Lepord server also if that helps

  • Camera Profile file locations?? CS4 64 bit

    I have installed new Camera Profiles, beta 1 and beta 2
    Now I need the file location to delete the beta 1 versions
    Any help will be appreciated

    Well, since the people who
    created the profiles are active in that forum, I thought they might know where they put them!

  • Run a powershell script on every user login/unlock

    Hi everybody
    I need to run a powershell (that opens an interactive dialog box) when every user log in or unlock session or remote connection to this server.  In other words it have to be run every time a user enters a credential. 
    I tried task scheduler, but it didn't work properly. I tried triggers like "on workstation unlock" and "on connection to user session". I change user and group to administrators but still it runs under the author user (me) . 
    I found out user login event id is 4801 and 4778. can I use these event ids to run powershell code? Can I check raising the event ids through my code? 
    any other idea please?
    Thanks in advance

    Im not going to block a logon! I want to run a powershell code for every user login. assume like a message after user login. this kind of message for me is showing to me after other users login.
    specifically this is a window from that I designed to execute on user login to show on the server and every user writes down in the text box the changes that is making on the server. this is a changes log solution to me. then I need to show every user to
    work properly.
    You can run a scheduled task at logon that can display a message.  You can define this task in Group Policy.
    You can also just use the standard user logon message which can also be defined in Group Policy.
    You can execute a script task whenever an unlock event happens.  This, too, can be defined in Group Policy.
    ¯\_(ツ)_/¯

  • Script to delete users profile only months old profile with the Registry itself but should leave current profile intact.

    Hi every one.
    first of all sry if this post is repetitive for the profile deletion.
    If you have a correct link please post it below or the script itself.
    Question: as i have a lot of computers with windows 7 (2400 systems) as the operating system on them and as the users keep on changing or shifting place from one PC to another PC and managing the system or the C drive for the consistent system performance
    or freeing space is a challenging task.
    I would like have a Script that would only delete old (No of Months) profile as well as the registry itself  but should keep the current profile instanct the the registry too.
    I did find the below script on some forum that gets the job done but not the right way as it deletes all the profile and excludes the admin,administrator etc as seen in the script but i cannot delete the old profile of a certain time or date period.
    As again sorry if this post looks like mess but help is appreciated 
    @echo off
    ' DELETES LOCAL PROFILES ON WINDOWS 7
    :START
    FOR /f "tokens=*" %%a IN ('dir c:\USERS /b /ad') DO CALL :PATHCHECK "%%a"
    GOTO REGISTRY
    ::The following is where you would put in the profile you wish to exclude from the wipe. Just copy/paste a line and make the appropriate revisions.
    :PATHCHECK
    IF /i [%1]==["Administrator"] GOTO :PATHSKIP
    IF /i [%1]==["Admin"] GOTO :PATHSKIP
    IF /i [%1]==["All Users"] GOTO :PATHSKIP
    IF /i [%1]==["Default"] GOTO :PATHSKIP
    IF /i [%1]==["Default user"] GOTO :PATHSKIP
    IF /i [%1]==["public"] GOTO :PATHSKIP
    GOTO PATHCLEAN
    :PATHSKIP
    ECHO. Skipping path clean for user %1
    GOTO :EOF
    :PATHCLEAN
    ECHO. Cleaning profile for: %1
    rmdir C:\USERS\%1 /s /q > NUL
    IF EXIST "C:\USERS\%1" GOTO RETRYPATHFIRST
    IF NOT EXIST "C:\USERS\%1" GOTO :EOF
    :RETRYPATHFIRST
    ECHO. Error cleaning profile for: %1 - Trying again.
    rmdir C:\USERS\%1 /s /q > NUL
    IF EXIST "C:\USERS\%1" GOTO RETRYPATHSECOND
    IF NOT EXIST "C:\USERS\%1" GOTO :EOF
    :RETRYPATHSECOND
    ECHO. Error cleaning profile for: %1 - Trying again.
    rmdir C:\USERS\%1 /s /q > NUL
    GOTO :EOF
    :REGISTRY
    ECHO.------------
    FOR /f "tokens=*" %%a IN ('reg query "hklm\software\microsoft\windows nt\currentversion\profilelist"^|find /i "s-1-5-21"') DO CALL :REGCHECK "%%a"
    GOTO VERIFY
    ::The following is where it parses the registry data and checks it against the user path. Copy/paste the IF line and make the user modification needed.
    :REGCHECK
    FOR /f "tokens=3" %%b in ('reg query %1 /v ProfileImagePath') DO SET USERREG=%%b
    IF /i [%USERREG%]==[c:\Users\Administrator] GOTO :REGSKIP
    GOTO REGCLEAN
    :REGSKIP
    ECHO. Skipping registry clean for %USERREG%
    GOTO :EOF
    :REGCLEAN
    ECHO. Cleaning registry for: %USERREG%
    reg delete %1 /f
    GOTO :EOF
    ::The cleaning portion of the script is now done. Now begins the verification and log reporting.
    :VERIFY
    FOR /f "tokens=*" %%c IN ('dir c:\USERS /b /ad') DO CALL :VERIFYPATH "%%c"
    ::Same thing as the clean - if you need to exclude an account, make your copy/paste below.
    :VERIFYPATH
    IF /i [%1]==["Administrator"] GOTO :EOF
    IF /i [%1]==["All Users"] GOTO :EOF
    IF /i [%1]==["Default"] GOTO :EOF
    IF /i [%1]==["Default user"] GOTO :EOF
    IF /i [%1]==["public"] GOTO :EOF
    GOTO VERPATHREPORT
    :VERPATHREPORT
    ECHO. %1
    IF /i [%1]==[] (
    set PATHRESULT=PATH_SUCCESS
    ) ELSE (
    set PATHRESULT=PATH_FAILURE
    ECHO. %PATHRESULT%
    GOTO REGVERIFY
    :REGVERIFY
    ECHO.------------
    FOR /f "tokens=*" %%d IN ('reg query "hklm\software\microsoft\windows nt\currentversion\profilelist"^|find /i "s-1-5-21"') DO CALL :REGCHECKVERIFY "%%d"
    GOTO REGVERIFYECHO
    ::Same thing as the registry clean - copy/paste excluded profiles below.
    :REGCHECKVERIFY
    FOR /f "tokens=3" %%e in ('reg query %1 /v ProfileImagePath') DO SET USERREGV=%%e
    IF /i [%USERREGV%]==[c:\Users\Administrator] GOTO :EOF
    GOTO REGVERIFYECHO
    :REGVERIFYECHO
    ECHO. %1
    IF /i [%1]==[] (
    set REGRESULT=REG_SUCCESS
    ) ELSE (
    set REGRESULT=REG_FAILURE
    ECHO. %REGRESULT%
    GOTO REPORTCHECK
    ::The following is where you would enter the mapped drive path.
    ::You can use a straight UNC if you like, but I find this to be a bit
    ::more solid and it allows you to use different creds in case you
    ::automate it for a local scheduled task to run as local admin.
    :REPORTCHECK
    'net use t: \\server\path
    'IF EXIST "t:\labreport.txt" (
    'GOTO REPORTGEN
    ') ELSE (
    'GOTO EXIT
    ::This is a time/date stamp creator that I actually pulled from a Minecraft
    ::to Dropbox backup script I made a long while back.
    ':REPORTGEN
    'FOR /F "tokens=1 delims=:" %%f in ('time /T') DO SET T=%%f
    'FOR /F "tokens=*" %%g in ('echo %date:~10,4%-%date:~4,2%-%date:~7,2% %T%-%time:~3,2%-%time:~6,2%') DO SET TDATETIME=%%g
    ECHO. %PATHRESULT% %REGRESULT% %COMPUTERNAME% %TDATETIME% >> "t:\labreport.txt"
    net use t: /delete
    GOTO EXIT
    :EXIT
    exit
    :EOF

    Hi every one.
    first of all sry if this post is repetitive for the profile deletion.
    If you have a correct link please post it below or the script itself.
    Question: as i have a lot of computers with windows 7 (2400 systems) as the operating system on them and as the users keep on changing or shifting place from one PC to another PC and managing the system or the C drive for the consistent system performance
    or freeing space is a challenging task.
    I would like have a Script that would only delete old (No of Months) profile as well as the registry itself  but should keep the current profile instanct the the registry too.
    I did find the below script on some forum that gets the job done but not the right way as it deletes all the profile and excludes the admin,administrator etc as seen in the script but i cannot delete the old profile of a certain time or date period.
    As again sorry if this post looks like mess but help is appreciated 
    @echo off
    ' DELETES LOCAL PROFILES ON WINDOWS 7
    :START
    FOR /f "tokens=*" %%a IN ('dir c:\USERS /b /ad') DO CALL :PATHCHECK "%%a"
    GOTO REGISTRY
    ::The following is where you would put in the profile you wish to exclude from the wipe. Just copy/paste a line and make the appropriate revisions.
    :PATHCHECK
    IF /i [%1]==["Administrator"] GOTO :PATHSKIP
    IF /i [%1]==["Admin"] GOTO :PATHSKIP
    IF /i [%1]==["All Users"] GOTO :PATHSKIP
    IF /i [%1]==["Default"] GOTO :PATHSKIP
    IF /i [%1]==["Default user"] GOTO :PATHSKIP
    IF /i [%1]==["public"] GOTO :PATHSKIP
    GOTO PATHCLEAN
    :PATHSKIP
    ECHO. Skipping path clean for user %1
    GOTO :EOF
    :PATHCLEAN
    ECHO. Cleaning profile for: %1
    rmdir C:\USERS\%1 /s /q > NUL
    IF EXIST "C:\USERS\%1" GOTO RETRYPATHFIRST
    IF NOT EXIST "C:\USERS\%1" GOTO :EOF
    :RETRYPATHFIRST
    ECHO. Error cleaning profile for: %1 - Trying again.
    rmdir C:\USERS\%1 /s /q > NUL
    IF EXIST "C:\USERS\%1" GOTO RETRYPATHSECOND
    IF NOT EXIST "C:\USERS\%1" GOTO :EOF
    :RETRYPATHSECOND
    ECHO. Error cleaning profile for: %1 - Trying again.
    rmdir C:\USERS\%1 /s /q > NUL
    GOTO :EOF
    :REGISTRY
    ECHO.------------
    FOR /f "tokens=*" %%a IN ('reg query "hklm\software\microsoft\windows nt\currentversion\profilelist"^|find /i "s-1-5-21"') DO CALL :REGCHECK "%%a"
    GOTO VERIFY
    ::The following is where it parses the registry data and checks it against the user path. Copy/paste the IF line and make the user modification needed.
    :REGCHECK
    FOR /f "tokens=3" %%b in ('reg query %1 /v ProfileImagePath') DO SET USERREG=%%b
    IF /i [%USERREG%]==[c:\Users\Administrator] GOTO :REGSKIP
    GOTO REGCLEAN
    :REGSKIP
    ECHO. Skipping registry clean for %USERREG%
    GOTO :EOF
    :REGCLEAN
    ECHO. Cleaning registry for: %USERREG%
    reg delete %1 /f
    GOTO :EOF
    ::The cleaning portion of the script is now done. Now begins the verification and log reporting.
    :VERIFY
    FOR /f "tokens=*" %%c IN ('dir c:\USERS /b /ad') DO CALL :VERIFYPATH "%%c"
    ::Same thing as the clean - if you need to exclude an account, make your copy/paste below.
    :VERIFYPATH
    IF /i [%1]==["Administrator"] GOTO :EOF
    IF /i [%1]==["All Users"] GOTO :EOF
    IF /i [%1]==["Default"] GOTO :EOF
    IF /i [%1]==["Default user"] GOTO :EOF
    IF /i [%1]==["public"] GOTO :EOF
    GOTO VERPATHREPORT
    :VERPATHREPORT
    ECHO. %1
    IF /i [%1]==[] (
    set PATHRESULT=PATH_SUCCESS
    ) ELSE (
    set PATHRESULT=PATH_FAILURE
    ECHO. %PATHRESULT%
    GOTO REGVERIFY
    :REGVERIFY
    ECHO.------------
    FOR /f "tokens=*" %%d IN ('reg query "hklm\software\microsoft\windows nt\currentversion\profilelist"^|find /i "s-1-5-21"') DO CALL :REGCHECKVERIFY "%%d"
    GOTO REGVERIFYECHO
    ::Same thing as the registry clean - copy/paste excluded profiles below.
    :REGCHECKVERIFY
    FOR /f "tokens=3" %%e in ('reg query %1 /v ProfileImagePath') DO SET USERREGV=%%e
    IF /i [%USERREGV%]==[c:\Users\Administrator] GOTO :EOF
    GOTO REGVERIFYECHO
    :REGVERIFYECHO
    ECHO. %1
    IF /i [%1]==[] (
    set REGRESULT=REG_SUCCESS
    ) ELSE (
    set REGRESULT=REG_FAILURE
    ECHO. %REGRESULT%
    GOTO REPORTCHECK
    ::The following is where you would enter the mapped drive path.
    ::You can use a straight UNC if you like, but I find this to be a bit
    ::more solid and it allows you to use different creds in case you
    ::automate it for a local scheduled task to run as local admin.
    :REPORTCHECK
    'net use t: \\server\path
    'IF EXIST "t:\labreport.txt" (
    'GOTO REPORTGEN
    ') ELSE (
    'GOTO EXIT
    ::This is a time/date stamp creator that I actually pulled from a Minecraft
    ::to Dropbox backup script I made a long while back.
    ':REPORTGEN
    'FOR /F "tokens=1 delims=:" %%f in ('time /T') DO SET T=%%f
    'FOR /F "tokens=*" %%g in ('echo %date:~10,4%-%date:~4,2%-%date:~7,2% %T%-%time:~3,2%-%time:~6,2%') DO SET TDATETIME=%%g
    ECHO. %PATHRESULT% %REGRESULT% %COMPUTERNAME% %TDATETIME% >> "t:\labreport.txt"
    net use t: /delete
    GOTO EXIT
    :EXIT
    exit
    :EOF

  • Where is the user image file located?

    So, I know this has been discussed before, but I can't find a sollution that works in Mountain Lion.
    I'd like to be able to locate the image file which I'm using for my user account icon. It also appears in iMessage and Contacts, but I can't drag it to the the desktop. Because I don't know the file name, I can't search for it.
    Does anyone know where it is stored? Or how I can extract it?

    Hi,
    Previously in iChat the "Recent Pics" were stored and shown in the Drop down in the Buddy list.
    The place was ~/Library/Images
    In Mountain Lion it appears that the Drop Down shows "Recent Pics" but is pulling them from several sources.
    The Messages Drop down
    The Recent Picture Folder has these:-
    Some Match and some don't.
    ~/Library/Caches/com.apple.AddressBook holds the Zebra and copies of my Sig and thre Union Flag.
    At present I cannot find the ones the System Preferences > User and Groups > your account has as Pic are stored.
    Some of the pics are the Apple Default ones.  (Hardrive Name/Library/User Pictures)
    You can also take a Snap Shot on Macs with cameras  and I guess it is this that you are after ?
    10:13 PM      Thursday; November 22, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • User profile File access

    I have approx 6 Intel IMACS OS X 10.4.9 running Adobe CReative Suite CS2.
    Users get the following error.
    They try and and place a file into illustrator and as a normal user they get the following error " An unknown error caused the operation to fail" yet when I am logged on as an Admin it works fine .
    The users directory username/Library/Application Support/Adobe and /Username/Library/Preferences live on a WIN2003 Server and even though they have Read & Write access to the folders the error still occurs . As soon as I remove the server based home directory so their profile is on the MAcintosh HD Illustrator can Place files ok . Is there a special way I should be giving permissions on the WIN2003 server so Illustrator can write to them correctly ??
    thanks In Advance
    Mark

    Hi Mark,
    I'm having the same problem with several users in Mac PPC using CS2 and recently migrated user folders on a PC server (from a mac server)
    Since the migration we've experienced a couple of problems with Illustrator and placed images. In some cases the previews won't render on previous files and in others Illustrator crashes as soon as the user tries to open the file. Again if logged in as the local admin user there are no issues.
    Did you find a solution?

  • PowerShell Script to find user permssions on the local server.

    Hello all,
      I am a DBA and starting to learn powershell, I knew basics on powershell from the databases side(like finding db properties/setting up alerts etc) and familiar with DOS equivalent power shell commands. However, I would like to learn security/user
    permissions in powershell.  I would like to start with something small and build on it. One thing,I am trying to accomplish is"trying to see if a user a member of admin group". I found some solutions online, but it was referring current user
    but i want to pass the user name. Second thing, I would like to see if a user has permissions to a task such as "perform volume maintenance task". 
    I see some solutions,refering to ADSI, but I am not sure whether thats the only way to do as I said, I need find this locally on that server.  Any reference to basics in powershell security and how to explore the security features(like finding if a
    user has permissions to do "perfor volume maintainece task") woudl be great. 
    Hope it Helps!!

    Hi Stan210,
    To manage the local security account, these scripts may be helpful for you:
    Add User Account - Local Security Policy  
    Adding accounts to Local Security Policy     
    I hope this helps.                         

  • PowerShell script cannot find user permissions given directly (can find if permissions given in a group) - Please help.

    Hi there,
    I need to find ALL SharePOint sites/subsites/locations where "Domain\john" has any level of access. 
    Following script works if the permissions were given to Domain\john via a group - but this does not work if the permissions were given directly to the user (i.e. user is NOT part of the group).
    $weburl = "http://dev"
    Get-SPUser -web $weburl -Limit All | ?{$_.UserLogin -eq "Domin\john"} | select UserLogin, @{name="Url";expression={$_.ParentWeb.Url}}, @{name="Explicit given roles";expression={$_.Roles}}, @{name="Roles given via groups";expression={$_.Groups | %{$_.Roles}}},Groups | Out-String -Width 4096
    Help will be appreciated.
    Thank you.

    I don't really understand your request. It sounds like you just want to know the permissions per-user
    $weburl = "http://dev"
    Get-SPUser -web $weburl -Limit All | ?{$_.UserLogin} | select UserLogin, @{name="Url";expression={$_.ParentWeb.Url}}, @{name="Explicit given roles";expression={$_.Roles}}, @{name="Roles given via groups";expression={$_.Groups | %{$_.Roles}}},Groups | Out-String -Width 4096
    This will just return all the users and their permissions.
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • How to reverse find through powershell script in contents of the file

    Hello All,
    Following script is to perform the find and replace in the files:
    [CmdletBinding(SupportsShouldProcess=$True)]
    param (
    [Parameter(Mandatory=$true)]
    [string] $inst1 = $null,
    [Parameter(Mandatory=$true)]
    [string] $inst2 = $null,
    [Parameter(Mandatory=$true)]
    [string] $FPath = $null
    (get-content $FPath) | foreach-object {$_ -replace $inst1, $inst2} | set-content $FPathAbove script find and replace from starting of the string in the file contents.Please suggest how to achieve find and replace from last of the string for example:string is a\b\c\d\e and find "\" from last and replace it with Test, output should be Teste.Thank You

    #string is a\b\c\d\e and find "\" from last and replace it with Test, output should be Teste.
    $string = 'a\b\c\d\e'
    $Replace = 'Test'
    $string -replace '.+\\',$Replace
    Teste
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • PowerShell Script Get the User's Active Directory Fully Qualified Login Name for Specific Locked Out Accounts

    I have a script which displays locked out accounts. It works great.
    I'd like to display the fully qualified Active Directory Login Name instead of the LastName, First Name:
    Example: Davis, Susan
    Want instead: Domain\Susan.Davis
    I'd also like to include an additional filter to look for only Domain\Susan.Davis OR Domain\Robin.Givens
    Here is my script:
    $objDomain = New-Object System.DirectoryServices.DirectoryEntry
    $objSearcher = New-Object System.DirectoryServices.DirectorySearcher
    $objSearcher.SearchRoot = $objDomain
    $objSearcher.PageSize = 1000
    $objSearcher.Filter = "(&(objectClass=User)(lockoutTime>=1))"
    $colProplist = "name","samaccountname"
    foreach ($i in $colPropList){$objSearcher.PropertiesToLoad.Add($i) | out-null}
    $colResults = $objSearcher.FindAll()
    foreach ($objResult in $colResults) {
    $domainname = $objDomain.name
    $samaccountname = $objResult.Properties.samaccountname
    $user = [ADSI]"WinNT://$domainname/$samaccountname"
    $ADS_UF_LOCKOUT = 0x00000010
    if(($user.UserFlags.Value -band $ADS_UF_LOCKOUT) -eq $ADS_UF_LOCKOUT) {
    $objResult.Properties.name
    John
    John

    Sorry, I should have mentioned that the cmdlets I'm using are part of the Active Directory module. You'll need to install the RSAT (Win7+) to use them.
    If you'd rather stick with your DirectorySearcher methods instead of moving to the AD module, you can adjust your output by using something like this instead:
    if(($user.UserFlags.Value -band $ADS_UF_LOCKOUT) -eq $ADS_UF_LOCKOUT) {
    "$domainname\$($objResult.Properties.samaccountname)"
    $domainname might not be what you're expecting, just FYI.
    As for filtering, you can add to the if statement and check for your known usernames only.
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

Maybe you are looking for

  • What Max burn speed for DVD or DVD-DL?

    Hello, How can I find out what recording speed DVD, DVD-DL or even plain CD's should I buy for my Macbook? .. Mid 2007 model, 2G's ram, Super-Drive. I just don't want to go get 8x speed if the system is not going to be able to take advantage of it. T

  • Installing Oracle 9i client on remote PC with out using distrib on cd-rom

    Hello! I have a such problem. I must install oracle client on a remote PC with no user assistant (with out usin cd-rom, I must use distrib from local hard drive). When I trying to launch setup file ORACLE 9i from Hard drive I have an error abut using

  • Displaying ALV output in whole screen when using with custom container

    I have created a custom container and displaying output of a table in the ALV format using call method grid->set_table_for_first_display. But the output does not display in the entire screen. I want the output to cover the whole screen depending on u

  • My webpage when viewed in safari has a funky green thing happening

    Hi, I'm running Dreamweaver on MAC Leopard For some reason my one of my webpages - Valuations, when viewed in Safari has a funky green thing happening. I created the page using html. This is a new trick and hasn't happened before? Thank you for your

  • How to Access pc-pwered software using OS X Lion?

    I upgraded my Mac Pro to Lion in order to transfer from MobilMe to iCloud, not realizing all my pc-pwered software would not be accessible or readable.  Since I have several worksheets in Excel and Power Point, and other programs that use pc-pwered g