This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo Listing 3 (/c:3 param) most recent Watson reports | |
| wevtutil.exe qe Application /c:3 /rd:true /f:text "/q:*[System[EventID=1001]]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Using In and Not In | |
| For In and Not-In queries use | |
| - Intersect (http://msdn.microsoft.com/en-us/library/system.linq.enumerable.intersect.aspx) and | |
| - Except (http://msdn.microsoft.com/en-us/library/system.linq.enumerable.except.aspx) | |
| standard extension methods. | |
| Pasted from <http://www.codeproject.com/Articles/59831/LINQ-Implementing-IN-and-NOT-IN.aspx> | |
| Distinct (http://msdn.microsoft.com/en-us/library/system.linq.enumerable.distinct.aspx) | |
| Using DATEDIFF and LIKE in LINQ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Show me what was pulled but not yet updated | |
| hg log -r .: | |
| or | |
| hg log -P . | |
| Compare | |
| hg log -r .: -P . | |
| Put the following in your $HOME/.hgrc file: | |
| [alias] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run | |
| net user <username> /domain | |
| to see all the roles a user is in. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Plug in external HD | |
| 2. In WHS Console go to "Server Storage" tab | |
| 3. Wait until you see the external HD appear in "Server Backup Hard Drives" section | |
| 4. In WHS Console go to "Computer & Backup" tab | |
| 5. Select "<whs> - Your home server" in the list of machines | |
| 6. Click "Backup Now" | |
| 7. Wait for backup to complete | |
| 8. Go back to "Server Storage" tab and | |
| 9. Disconnect external HD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Use Disk2VHD (http://technet.microsoft.com/en-us/sysinternals/ee656415.aspx) from sysinternals.com to create VHDs from the disks in the physical machine | |
| 2. Install Virtual PC | |
| 3. Create virtual machine pointing at the VHD files as the virtual HDs | |
| 4. If the virtual machine blue screens with a "Stop 0x0000007B" when starting then the device drivers aren't right, most likely the disk physical machine didn't have drivers for the IDE disks that Virtual PC provides, see http://support.microsoft.com/kb/314082 | |
| a. In order to follow the KB you need to mount the VHD and change it's registry: | |
| On Win 7 | |
| diskpart | |
| select vdisk file="path to .vhd" | |
| attach vdisk | |
| [seems to auto assign drive letters] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Use DISKPART to attach the VHD in read-only mode and then use COMPACT command: | |
| diskpart | |
| select vdisk file="path to .vhd" | |
| attach vdisk readonly | |
| compact vdisk | |
| detach vdisk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Restart the Print Spooler service: | |
| psservice restart "print spooler" | |
| Or use the services control panel: | |
| services.msc | |
| Scroll to Print Spooler and right click and select Restart. |