Losing Windows 7 Shares, and my hair.

I have been through this countless times. I have Snow Leopard 10.6.6 on a MBP and windows 7 on a desktop. I have multiple shares on the windows machine that I access from my mac. All of a sudden, when transferring a file over smb, the transfer quits because the data "cannot be read or written" and I am unable to access the shares. When I try to reconnect to the shares I get an error saying
"Connection Failed. There was an error connecting to the server "10.0.10.5". Check the server name or IP address, and then try again. If you are unable to resolve the problem contact your system administrator (Thats Me)."
This problem persists until I restart both the mac and the pc. I use account protected sharing, not guest sharing on the pc but I have tried both with the same result. I have adjusted the 'Network Security: LAN Manager Authentication Level' in windows.
Every 12 months or so I do a clean install on my systems and the problem dissappears. After a period of time that could be 1 day or 10 months the problem returns. I have seen this issue since 10.5 and Vista and it keeps crawling back. Any feedback would be great, but I have probably already tried it.

OK, I solved it. I found an answer at http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017 that details a registry change that makes windows 7 act more like a server.
Set the following registry key to ’1′:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache
and set the following registry key to ’3′:
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Similar Messages

  • Cannot open Excel files on Windows share and ONLY Excel files

    I'm browsing a Windows share and for whatever reason it will not let me open Excel files directly from the network location. If I view the Coverflow, I can see a a preview of the actual file as well as copy it to the desktop and open it.
    I receive an error message that says "filename.xls could not be found."
    I can open up any other file from the network location, but not Excel files.
    I checked the file permissions and they mirror the other file types, it may be worth mentioning that I utilize network synchronization and view these files from a PC as well. I also noticed when I create a new file in that location, it will only appear in OS X and not Windows, but is still completely accessible.
    Any help is appreciated!
    Thanks

    Re:  Windows 8 vs. Excel problem
    Does your new Dell computer have MS Office installed?
    Jim Cone
    Portland, Oregon USA
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Can't see Window Shares and printers with Leopard

    I have two computers that have to have their hard drives wiped because Leopard is a piece 'o **. I'm reinstalling 10.4 and all apps on 2 machines tomorrow - killing an entire day of work - because my network has just vanished. It was there before I upgraded, but now it's not.
    Now let's not start saying "oh, well, did you do this, did you do that, well did you try this, did you try that, why don't you tell us what your problem is or tell us what your system is" malarky. I posted in the network discussions for the same obvious reason that EVERYONE else did. This product is flawed and should have NEVER gone to market. I've spent two days trying to figure out how to fix this problem. Nada. Anything from Apple? Nada.
    I now have to explain to my boss why I'm loosing an entire days worth of productivity due to wiping my drives, so I'm wondering if anyone at Apple can give me some pointers on what to say. Maybe I should just stay silent like they do. Seems to work for Apple just fine. Maybe when my boss asks me, I'll just sit there silently and not say anything.
    Thanks Apple. Did I mention I want my money back?
    <Title edited by Host for better responses>

    Some quick info on tcpdump. The thread below is an example trace. You'll see something similar only not with those port numbers.
    http://discussions.apple.com/message.jspa?messageID=5994347#5994347
    Actually, in getting an example for this, I already see something interesting.
    Err:Preferences eb$ sudo tcpdump -ni en1
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on en1, link-type EN10MB (Ethernet), capture size 96 bytes
    23:27:36.808269 IP 192.168.15.3.19664 > 192.168.15.110.137: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
    23:27:36.808370 IP 192.168.15.110 > 192.168.15.3: ICMP 192.168.15.110 udp port 137 unreachable, length 36
    23:27:37.409515 IP 192.168.15.1.14997 > 192.168.15.110.137: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
    23:27:37.409616 IP 192.168.15.110 > 192.168.15.1: ICMP 192.168.15.110 udp port 137 unreachable, length 36
    23:27:40.365685 IP 192.168.15.3.19664 > 192.168.15.110.137: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
    23:27:40.365785 IP 192.168.15.110 > 192.168.15.3: ICMP 192.168.15.110 udp port 137 unreachable, length 36
    Notice that the windows machine (15.3) advertsing its services via broadcast to port 137 is triggering a ICMP port unreachable back from OS X. In looking at the listening services, I see the following:
    Err:Preferences eb$ netstat -an (note - filtered out everything but tcp/udp)
    tcp4 0 0 *.22 . LISTEN <-- This is for SSH
    tcp4 0 0 127.0.0.1.631 . LISTEN <-- This is for CUPS printing
    udp4 0 0 *.631 . <-- CUPS printing (Not sure if used)
    udp4 0 0 192.168.15.110.123 . <-- Time (NTP)
    udp4 0 0 127.0.0.1.123 . <-- Time (NTP)
    udp4 0 0 *.5353 . <-- mDNS / Bonjour
    ... so there aren't any MS services running to even try to see things in for the Windows network. I had to turn on file sharing / Options / Share files and folders using SMB in order to get the necessary ports to open.
    tcp4 0 0 *.445 . LISTEN <- SMB over IP
    tcp4 0 0 *.139 . LISTEN <- NetBIOS
    tcp4 0 0 *.88 . LISTEN <- Kerberos (authentication)
    tcp4 0 0 *.548 . LISTEN <- AFP over TCP (Not Windows)
    udp4 0 0 192.168.15.110.138 . <- NetBIOS
    udp4 0 0 192.168.15.110.137 . <- NetBIOS
    udp4 0 0 192.168.15.110.88 . <- Kerberos
    Can you make sure that you are at least to this point? With ports udp/137,138 and tcp/139 and tcp/445 open?
    At which point, we can figure out the next steps which is somewhat related to answers to the other questions (WINS, etc.) for me to give you straight answers there...
    Message was edited by: mreckhof

  • Windows Shares Not Showing Up In Finder (Master Browser Problem)

    Hi, on leopard I had no problems with Windows shares showing up in finder. However, having upgraded to Snow Leopard, I've now lost that ability.
    Before I had my Leopard computer set as the master browser. I did this by specifying domain master = yes and preferred master = yes in my smb.conf. However despite importing these settings into Snow Leopard's smb.conf, it is not acting as a master browser.
    When I run the command "nmblookup -M -- -" which in Leopard returned my Mac as the master browser, now it says "failed to find name _MSBROWSE_#01".
    I'm sure this is why the Windows PC is not showing up in finder, but I don't know why the smb-conf isn't taking effect in Snow Leopard, and setting it as the master browser?
    Also, I can use Go -> Connect to access my Windows shares, and Mac shares show up in Vista okay.
    Any help appreciated.

    Problem fixed upon updating to 10.6.2.

  • Accessing Windows Shares

    There are several windows shares on the network that I have access to through my Macbook Pro. However, when someone adds a file to one of them, I do not see the file right away when I try to access the share. I have tried reconnecting to it multiple times but still do not see the file. The only solution I found that works is 'rebooting', which I should not have to do. Looks like there is some caching going on somewhere. Anyone have ideas on how to get access to the 'latest' files?

    Have you tried simply disconnecting from the Windows share and reconnecting? Rebooting may be overkill
    The Mac network browser seems to be relatively static or lazy, and often needs a bit of prodding to recognize changes on the other systems, esp. a Windows share.
    I would not call it a bug, but it is something to be aware of.
    Sometimes the Windows share on my Mac remains in the Finder window long after I have shut down the Windows box.

  • Time Machine backup to Windows Share Now Failing Verify

    Hi Everyone - I have searched everywhere and can't find any help.
    This is my situation. I have my TM backup to an SMB windows share and its been working fine for months. Two things changed recently: a) I installed Windows 7 on my windows box and b) I installed that TM update that provides greater reliability. Backups worked fine for weeks after both of these changes, but just this week backups failed and TM wanted to create a new backup. I tried to recreate a new backup, but it keeps failing with errors below. When I try to run a verify disk on the sparsebundle (with disk util) I always get errors, but of course, I can not fix the errors when the sparsebundle is on an SMB. I am currently running a chkdsk on the windows drive, but I don't think its damaged.
    8/18/10 11:39:02 PM com.apple.backupd[800] Copied 18.3 GB of 20.3 GB, 164128 of 640370 items
    8/18/10 11:39:41 PM com.apple.backupd[800] Copied 164129 files (18.4 GB) from volume IntelSSD160.
    8/18/10 11:39:43 PM com.apple.backupd[800] No pre-backup thinning needed: 828.7 MB requested (including padding), 578.34 GB available
    8/18/10 11:39:51 PM com.apple.backupd[800] Copied 379 files (7.3 MB) from volume IntelSSD160.
    8/18/10 11:39:51 PM kernel hfs: node=4844 fileID=4 volume=Backup of MYMBP device=/dev/disk3s2
    8/18/10 11:39:51 PM kernel hfs: Runtime corruption detected on Backup of MYMBP, fsck will be forced on next mount.
    8/18/10 11:39:51 PM kernel hfs: cat_delete() failed to delete thread record on volume Backup of MYMBP
    8/18/10 11:39:51 PM kernel hfs: Runtime corruption detected on Backup of MYMBP, fsck will be forced on next mount.
    8/18/10 11:39:51 PM kernel hfs: node=4844 fileID=4 volume=Backup of MYMBP device=/dev/disk3s2
    8/18/10 11:39:51 PM kernel hfs: Runtime corruption detected on Backup of MYMBP, fsck will be forced on next mount.
    8/18/10 11:39:51 PM com.apple.backupd[800] Starting post-backup thinning
    8/18/10 11:39:51 PM com.apple.backupd[800] No post-back up thinning needed: no expired backups exist
    8/18/10 11:39:51 PM com.apple.backupd[800] Backup completed successfully.
    8/18/10 11:39:57 PM com.apple.backupd[800] Ejected Time Machine disk image.
    8/18/10 11:39:57 PM com.apple.backupd[800] Ejected Time Machine network volume.
    8/19/10 12:31:04 AM com.apple.backupd[1120] Starting standard backup
    8/19/10 12:31:04 AM com.apple.backupd[1120] Attempting to mount network destination using URL: smb://GUEST:@192.168.1.107/TM
    8/19/10 12:31:07 AM com.apple.backupd[1120] Mounted network destination using URL: smb://GUEST:@192.168.1.107/TM
    8/19/10 12:31:19 AM com.apple.backupd[1120] QUICKCHECK ONLY; FILESYSTEM DIRTY
    8/19/10 12:31:19 AM com.apple.backupd[1120] Runtime corruption detected on /Volumes/TM-1/MYMBP_58b035f1b3d1.sparsebundle (fsck_hfs -q termination status: 3)
    8/19/10 12:31:19 AM com.apple.backupd[1120] Attempting to mount network destination using URL: smb://GUEST:@192.168.1.107/TM
    Anyone encounter this? I essentially can not use TM right now. Could the TM update and/or windows 7 upgrade be a contributor? Any help is much appreciated.

    abnospam wrote:
    Hi Everyone - I have searched everywhere and can't find any help.
    This is my situation. I have my TM backup to an SMB windows share and its been working fine for months.
    Is that a "supported" destination? According to this Apple article: Disks that can be used with Time Machine
    *+If your backup disk is on a network, the network server must use Apple File Protocol (AFP) file sharing, and both your computer, and the networked backup disk, should have Mac OS X 10.5.6 or later.*+
    8/18/10 11:39:41 PM com.apple.backupd800 Copied 164129 files (18.4 GB) from volume IntelSSD160.
    8/18/10 11:39:43 PM com.apple.backupd800 No pre-backup thinning needed: 828.7 MB requested (including padding), 578.34 GB available
    8/18/10 11:39:51 PM com.apple.backupd800 Copied 379 files (7.3 MB) from volume IntelSSD160.
    It appears to have finished the actual backup (two passes).
    8/18/10 11:39:51 PM kernel hfs: node=4844 fileID=4 volume=Backup of MYMBP device=/dev/disk3s2
    8/18/10 11:39:51 PM kernel hfs: Runtime corruption detected on Backup of MYMBP, fsck will be forced on next mount.
    8/18/10 11:39:51 PM kernel hfs: cat_delete() failed to delete thread record on volume Backup of MYMBP
    Then has a problem; apparently unable to delete the thread record, although listed 3rd, seems to be where it choked.
    8/19/10 12:31:19 AM com.apple.backupd[1120] QUICKCHECK ONLY; FILESYSTEM DIRTY
    8/19/10 12:31:19 AM com.apple.backupd[1120] Runtime corruption detected on /Volumes/TM-1/MYMBP_58b035f1b3d1.sparsebundle (fsck_hfs -q termination status: 3)
    And can't fix it on remount.

  • Smbntefs probelm accessing windows shares

    Hello,
    I followed the wiki guide about smbnetfs and the output informations after smbnetfs installation. The shares are automatically mounted in /mnt/smbnet and I can see them,
    but when i double click a share
    (through Thunar - Xfce4) I take the following message:
    Failed to open directory "PC_SHARE"
    Software caused connection abort
    Is the problem caused because of file permissions?
    Can anyone tell me in detail what chmod I have to do and where?
    Also which files must be in ~/.smb? (and the permissions of that folder)
    (At the past I had no problem accessing the shares with the same tool and without conserning about the permissions of that folders)

    Have you tried simply disconnecting from the Windows share and reconnecting? Rebooting may be overkill
    The Mac network browser seems to be relatively static or lazy, and often needs a bit of prodding to recognize changes on the other systems, esp. a Windows share.
    I would not call it a bug, but it is something to be aware of.
    Sometimes the Windows share on my Mac remains in the Finder window long after I have shut down the Windows box.

  • Can Bootcamp and Parallels share the same Windows applications and data?

    I'm looking at getting an Intel iMac which will let me throw away my old PC - Yeah!
    I will have a couple of Win apps that I will need to hang on to (Quicken - Quicken for Mac is horrible, but that's another tghread). Anyway, can Bootcamp and Parallels share the same Windows applications and data?
    My thought would be to allow my wife to access Quicken from Parallels and not have to reboot. She will only need lightweight access and the overhead of running virtualization wouldn't impact her. I, on the other hand, would want to occasionally boot natively into Windows and run the same application with the same datafile. Is this possible?
    Thanks and looking forward to joining the MacIntel world!

    Thanks for all of the freplies. I suspected that BootCamp and Parallels could not shar ethe same partition, but wanted to verify. To address some of the other posts:
    Re: Quicken vs MoneyDance - I looked at MoneyDance a while back and while it is comparable to Quicken for Mac, it isn't comparable to Quicken for Windows (ergo, Quicken for Mac isn't comparable to Quicken for Windows!). But, as I said, that is a topic for another thread!
    Re: Using Bootcamp/Parallels for only one app: I actually have several apps that I still need access to on Windows. I work with many business applications than only run/are supported on Windows as well as receive some complex Office documents which Office for Mac cannot handle. Quicken (for Windows 2007) was just the best example of a consumer app where I could see wanting access from both OS X and Windows.

  • User cannot access redirected Documents folder, but can connect to share in Windows Explorer and access folder on server

    I am in the final stages of a cross-forest migration.  Users have Windows 7 workstations with redirected folders on a Windows Server 2012 box running in the old forest.  User accounts were not migrated.  The accounts in use have always
    been in the "new" forest.  One of our challenges was the large volume of data in redirected folders.  I made sure users in the target forest had continued to have access to their redirected folders in the old forest and robocopied
    the entire users share, copying the permissions with the files.  By doing incremental robocopies, we can get a final copy done now in about six hours.  The plan was simple: copy the files, do an incremental copy every night, on the night of the cutover
    change the folder redirection policy Documents path from
    \\oldserver\users\%USERNAME% to
    \\newserver\users\%USERNAME%. The policy is configured to NOT copy user files from the existing folder to the new redirected folder.  Everything was going well until I tested the policy change.  After the folder redirection policy is updated
    and applied, the user cannot access the private Documents folder.  For example, user Chester Tester logs on as ctester.  I open Windows Explorer and click the Documents shortcut.  I see one subfolder, which is subfolder of Public Documents. 
    So I can look at Public Documents but when I click on the Documents folder (Under the Documents library link) I get an access denied error.  Now for the kicker, if I open another Windows Explorer window and edit the address bar to
    \\newserver\users\ctester, I can navigate the Documents folder tree and see my thousands of documents. What the ....?
    I'm hoping this is something really simple to fix!
    TIA

    HI Vivian,
    Thank you for your reply.  Yes, the path in Group Policy Folder Redirection Root Path was updated to
    \\NEWSERVER\users.  I had planned to point this to the distributed file system, so the first used was actually
    \\domain\dfs\users.  To simplify things I have backed off to copying to just a normal share
    \\newserver\users. 
    We are using BASIC folder redirection and we create a folder for each user under the root path. 
    We did not want the policy to move content, as we were seeing users requiring 15-20 minute logon times  (or higher) after the policy is changed.
    Grant the User exclusive right to Documents - Disabled
    Move the contents of Documents to the new location - Disabled
    Related folder settings
    Video - Follow Documents
    Music - Follow Documents
    Pictures - Follow Documents
    Now when I change the folder redirection from old server to new server I now have TWO My Documents folders in the user's redirection folder on the server.  The redirected Documents points to an empty folder set.  The copied folders with all user
    data are there, but folder redirection refuses to recognize the original folder.
    I am looking at the full view of the folder, nothing hidden, so I'm wondering how a folder can have two subfolders with the exact same name.  For now, I just want the redirection to move from the old server to the new server properly.  I deleted
    the new My Documents folder, rebooted the user's workstation and tried again.  The behavior repeats itself, i.e., a new My Documents folder is always created when the redirection policy is changed from the old server to the new server.  The environment
    has about 1500 users with approximately 1.3TB of data in the redirected Documents folders.  OUCH!

  • Iam not able to share internet in windows 8 from my macbook air...though my iphone ipad is connected to the hotspot well..tried everything but it seems to be different from windows 7  and other microsft operating systems setting. help!!

    Iam not able to share internet in windows 8 from my macbook air...though my iphone ipad is connected to the hotspot well..tried everything but it seems to be different from windows 7  and other microsft operating systems setting. help!!

    Ask on a Windows forum since that's what you're having a problem with.

  • Active Directory and Windows Share

    I have several Mac labs that are working perfecting with the Active Directory client in OS X 10.4.9. I recently made a change to the client and am now creating local home folders for users. Using the network home folders slowed the boot process and affected certain applications when pref files were not deleted properly from the Windows share.
    What I would like to do now is have 2 or 3 windows shares mounted automatically for ALL users who log into a computer. Ideally the mounts should be done with the username and password of the user who just authenticated.
    Does anyone have any suggestions on how this could be accomplished?
    Thank you.

    This should be possible using Mac OS X Server in a Golden (or Magic) Triangle scenario with your Active Directory network. This means your Macs would use AD for authentication but your Mac OS X Server would control workstation settings such as auto-mounting drives. The settings could be applied to users and groups from Active Directory.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • Can a mac and windows share a wifi connection?

    can a mac and windows share the same wifi and network conenction
    and if it's yes
    what should i configure or what are the parametres needed to set up?
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

    Yes, Windows and Mac computers can share the same Wi-Fi network.
    Are you setting up a new network or are you adding devices to an existing network?
    Regards / Jim B / Wireless Enthusiasts
    ( While I'm an embedded wireless systems engineer at work, on this forum I do not represent my former employer, Hewlett-Packard, or my current employer, Microsoft )
    + Click the White Kudos star on the left as a way to say "thank you" for helpful posts.

  • How do I add Macbook air to my windows network and how do I connect to windows shares from said Macbook?

    Finally, I have a "clued in" boss who wanted a Macbook air.  I have it, and I can get to the internet by supplying the correct proxy credentials.  My issue is trying to connect him to windows shares on my network?  I know how to do this cold for adding a PC, But need some 101 on how to take this awesome macbook air and add it to the domain and how to get connected to various shares within my DOMAIN.  as well as use network printers (I assume that is pretty easy). . .  I should add that I can ping the servers in question, I am just not familiar with how to connect to them via Mac. . .I am sure this is laughably easy, I am the king of making things difficult, I swear!
    Thanks for any and all help as usual!!
    Dave

    Which os do you have?
    Check Apple's Knowledge Base for Printer Troubleshooting solutions and suggestions for your particular os.

  • ZCM and Mapping Windows Shares

    Hi,
    I am having a strange issue. I have a VBscript that runs in the Novell Login script when users log on that maps a drive to a Windows share on our Student Management Database server. The script runs fine and maps the drive, however when you go to access the drive it says:
    "K: is not inaccessible........incorrect function"
    Now here is where it gets strange. On some computers logged on as the same user it works and you can access while on other computers you get the above message. I first thought it was a rights issue but being logged in as the same user on some computers it works. Another thing I found was with ZCM. We have ZCM 11.2.2 installed on our computers. On the computers that they cannot access the drive, and get the message above, if I uninstall ZCM completely I can then log in as that same user on that computer and am able to access the drive. Also if I install ZCM 10.3.2 I am able to access with that user, but as soon as I install ZCM 11.2.2 on the computer then that same user gets the above message trying to access the drive.
    Has anyone ran into this or have any thing that I could look for?
    Thanks
    Andrew
    Network Administrator
    West York Area School District

    Hi Craig,
    Thanks for the information. Yeah the VBscript uses a generic account to connect the mapped drive to the server. I will check out some of the GPO settings and see if something is being missed. It is just weird that it is working on some computers but not on others for the same user.
    Andrew
    Originally Posted by craig_wilson
    Hey Andrew, I used to live right near that School District!
    Couple of Questions:
    Does your VBScript use a "Generic" Account to connect to the DB Server?
    Or are the Students Logging into a Windows Domain and using that Account
    to attach to the Windows Server?
    It is also possible some GPO security settings could be blocking things.
    Depending on the OS of the Client PC and the OS of the Target Server,
    certain GPO settings may be required for a connection to complete
    properly. Perhaps some Devices are not getting correct GPO settings.
    On 12/19/2013 3:36 PM, acshearer wrote:
    >
    > Hi,
    >
    > I am having a strange issue. I have a VBscript that runs in the Novell
    > Login script when users log on that maps a drive to a Windows share on
    > our Student Management Database server. The script runs fine and maps
    > the drive, however when you go to access the drive it says:
    >
    > "K: is not inaccessible........incorrect function"
    >
    > Now here is where it gets strange. On some computers logged on as the
    > same user it works and you can access while on other computers you get
    > the above message. I first thought it was a rights issue but being
    > logged in as the same user on some computers it works. Another thing I
    > found was with ZCM. We have ZCM 11.2.2 installed on our computers. On
    > the computers that they cannot access the drive, and get the message
    > above, if I uninstall ZCM completely I can then log in as that same user
    > on that computer and am able to access the drive. Also if I install ZCM
    > 10.3.2 I am able to access with that user, but as soon as I install ZCM
    > 11.2.2 on the computer then that same user gets the above message trying
    > to access the drive.
    >
    > Has anyone ran into this or have any thing that I could look for?
    >
    > Thanks
    > Andrew
    > Network Administrator
    > West York Area School District
    >
    >

  • Intermittently losing pop smtp and isp connection

    Intel Mac Mini, Mountain Lion, 8 GB RAM
    Intermittently losing pop, smtp and sometimes isp connectivity.
    Can ping to IP address, not to isp name
    Same for wired and wireless connection
    Other Macs on network do not have the same problem
    ISP says no POP or nameserver issues
    Have:
    run hardware diagnostics - all OK
    disk utility -> repair disk - no issues
    memtest - no issues
    Onyx full maintenance and cleaning - no issues
    Erase HD, fresh media re-install, time machine restore
    started to lose sanity

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the request of a stranger on a public message board. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed: Copy a line of text from this web page into the window of another application. Wait for the script to run. It usually takes a few minutes. Then paste the results, which will have been copied automatically, back into a reply on this page. The sequence is: copy, paste, wait, paste again. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin; clear; Fb='%s\n\t(%s)\n'; Fm='\n%s\n\n%s\n'; Fr='\nRAM details\n%s\n'; Fs='\n%s: %s\n'; Fu='user %s%%, system %s%%'; PB="/usr/libexec/PlistBuddy -c Print"; A () { [[ a -eq 0 ]]; }; M () { find -L "$d" -type f | while read f; do file -b "$f" | egrep -lq XML\|exec && echo $f; done; }; Pc () { o=`grep -v '^ *#' "$2"`; l=`wc -l <<< "$o"`; [[ l -gt 25 ]] && o=`head -n25 <<< "$o"`$'\n'"[$((l-25)) more line(s)]"; Pm "$1"; }; Pm () { [[ "$o" ]] && o=`sed -E '/^ *$/d; s/^ */   /; s/[-0-9A-Fa-f]{22,}/UUID/g' <<< "$o"` && printf "$Fm" "$1" "$o"; }; Pp () { o=`$PB "$2" | awk -F'= ' \/$3'/{print $2}'`; Pm "$1"; }; Ps () { o=`echo $o`; [[ ! "$o" =~ ^0?$ ]] && printf "$Fs" "$1" "$o"; }; R () { o=; [[ r -eq 0 ]]; }; SP () { system_profiler SP${1}DataType; }; id -G | grep -qw 80; a=$?; A && sudo true; r=$?; t=`date +%s`; clear; { A || echo $'No admin access\n'; A && ! R && echo $'No root access\n'; SP Software | sed '8!d;s/^ *//'; h=(`SP Hardware | awk '/ Id/{print $3}; /Mem/{print $2}'`); o=$h; Ps "Model"; o=$((h[1]<4?h[1]:0)); Ps "Total RAM (GB)"; o=`SP Memory | sed '1,5d;/[my].*:/d'`; [[ "$o" =~ s:\ [^O]|x([^08]||0[^2]8[^0]) ]] && printf "$Fr" "$o"; o=`SP Diagnostics | sed '5,6!d'`; [[ "$o" =~ Pass ]] || Pm "POST"; p=`SP Power`; o=`awk '/Cy/{print $NF}' <<< "$p"`; o=$((o>=300?o:0)); Ps "Battery cycles"; o=`sed -n '/Cond.*: [^N]/{s/^.*://p;}' <<< "$p"`; Ps "Battery condition"; for b in Thunderbolt USB; do o=`SP $b | sed -En '1d;/:$/{s/ *:$//;x;s/\n//p;};/^ *V.* [0N].* /{s/ 0x.... //;s/[()]//g;s/(.*: )(.*)/ \(\2\)/;H;};/Apple|Genesy|Intel|SMSC/{s/.//g;h;}'`; Pm $b; done; o=`pmset -g therm | sed 's/^.*C/C/'`; [[ "$o" =~ No\ th|pms ]] && o=; Pm "Thermal conditions"; o=`pmset -g sysload | grep -v :`; [[ "$o" =~ =\ [^GO] ]] || o=; Pm "System load advisory"; o=`nvram boot-args | awk '{$1=""; print}'`; Ps "boot-args"; a=(/ ""); A=(System User); for i in 0 1; do o=`cd ${a[$i]}L*/Lo*/Diag* || continue; for f in *.{cr,h,pa,s}*; do [[ -f "$f" ]] || continue; d=$(stat -f%Sc -t%F "$f"); [[ "$f" =~ h$ ]] && grep -lq "^Thread c" "$f" && e=\* || e=; echo $d ${f%%_2*} ${f##*.} "$e"; done | sort | tail`; Pm "${A[$i]} diagnostics"; done; [[ "$o" =~ \*$ ]] && printf $'\n* Code injection\n'; o=`syslog -F bsd -k Sender kernel -k Message CReq 'GPU |hfs: Ru|I/O e|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|SATA W|ssert|Thrott|timed? ?o' | tail -n25 | awk '/:/{$4=""; $5=""};1'`; Pm "Kernel messages"; o=`df -m / | awk 'NR==2 {print $4}'`; o=$((o<5120?o:0)); Ps "Free space (MiB)"; o=$(($(vm_stat | awk '/eo/{sub("\\.",""); print $2}')/256)); o=$((o>=1024?o:0)); Ps "Pageouts (MiB)"; s=( `sar -u 1 10 | sed '$!d'` ); [[ s[4] -lt 85 ]] && o=`printf "$Fu" ${s[1]} ${s[3]}` || o=; Ps "Total CPU usage" && { s=(`ps acrx -o comm,ruid,%cpu | sed '2!d'`); n=$((${#s[*]}-1)); c="${s[*]}"; o=${s[$n]}%; Ps "CPU usage by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; }; s=(`top -R -l1 -n1 -o prt -stats command,uid,prt | sed '$!d'`); n=$((${#s[*]}-1)); s[$n]=${s[$n]%[+-]}; c="${s[*]}"; o=$((s[$n]>=25000?s[$n]:0)); Ps "Mach ports used by process \"${c% ${s[$((n-1))]}*}\" with UID ${s[$((n-1))]}"; o=`kextstat -kl | grep -v com\\.apple | cut -c53- | cut -d\< -f1`; Pm "Loaded extrinsic kernel extensions"; R && o=`sudo launchctl list | awk 'NR>1 && !/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|calendarse|cups|dove|isc|ntp|post[fg]|x)/{print $3}'`; Pm "Extrinsic daemons"; o=`launchctl list | awk 'NR>1 && !/0x|com\.apple|org\.(x|openbsd)|\.[0-9]+$/{print $3}'`; Pm "Extrinsic agents"; o=`for d in {/,}L*/Lau*; do M; done | grep -v com\.apple\.CSConfig | while read f; do ID=$($PB\ :Label "$f") || ID="No job label"; printf "$Fb" "$f" "$ID"; done`; Pm "launchd items"; o=`for d in /{S*/,}L*/Star*; do M; done`; Pm "Startup items"; o=`find -L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo}* -type d -name Contents -prune | while read d; do ID=$($PB\ :CFBundleIdentifier "$d/Info.plist") || ID="No bundle ID"; [[ "$ID" =~ ^com\.apple\.[^x]|Accusys|ArcMSR|ATTO|HDPro|HighPoint|driver\.stex|hp-fax|\.hpio|JMicron|microsoft\.MDI|print|SoftRAID ]] || printf "$Fb" "${d%/Contents}" "$ID"; done`; Pm "Extrinsic loadable bundles"; o=`find -L /u*/{,*/}lib -type f | while read f; do file -b "$f" | grep -qw shared && ! codesign -v "$f" && echo $f; done`; Pm "Unsigned shared libraries"; o=`for e in INSERT_LIBRARIES LIBRARY_PATH; do launchctl getenv DYLD_$e; done`; Pm "Environment"; o=`find -L {,/u*/lo*}/e*/periodic -type f -mtime -10d`; Pm "Modified periodic scripts"; o=`scutil --proxy | grep Prox`; Pm "Proxies"; o=`scutil --dns | awk '/r\[0\] /{if ($NF !~ /^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./) print $NF; exit}'`; Ps "DNS"; R && o=`sudo profiles -P | grep : | wc -l`; Ps "Profiles"; f=auto_master; [[ `md5 -q /etc/$f` =~ ^b166 ]] || Pc $f /etc/$f; for f in fstab sysctl.conf crontab launchd.conf; do Pc $f /etc/$f; done; Pc "hosts" <(grep -v 'host *$' /etc/hosts); Pc "User launchd" ~/.launchd*; R && Pc "Root crontab" <(sudo crontab -l); Pc "User crontab" <(crontab -l | sed -E 's:/Users/[^/]+/:/Users/USER/:g'); R && o=`sudo defaults read com.apple.loginwindow LoginHook`; Pm "Login hook"; Pp "Global login items" /L*/P*/loginw* Path; Pp "User login items" L*/P*/*loginit* Name; Pp "Safari extensions" L*/Saf*/*/E*.plist Bundle | sed -E 's/(\..*$|-[1-9])//g'; o=`find ~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \) | wc -l`; Ps "Restricted user files"; cd; o=`SP Fonts | egrep "Valid: N|Duplicate: Y" | wc -l`; Ps "Font problems"; o=`find L*/{Con,Pref}* -type f ! -size 0 -name *.plist | while read f; do plutil -s "$f" >&- || echo $f; done`; Pm "Bad plists"; d=(Desktop L*/Keyc*); n=(20 7); for i in 0 1; do o=`find "${d[$i]}" -type f -maxdepth 1 | wc -l`; o=$((o<=n[$i]?0:o)); Ps "${d[$i]##*/} file count"; done; o=; [[ UID -eq 0 ]] && o=root; Ps "UID"; o=$((`date +%s`-t)); Ps "Elapsed time (s)"; } 2>/dev/null | pbcopy; exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste (command-V). The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, just press return three times at the password prompt.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test will take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line "[Process completed]" to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Terms of Use of Apple Support Communities ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

Maybe you are looking for