WinDirStat will tell you!
WinDirStat will tell you!
One of the problems I know I’ve had in the past, especially at work, is transferring large files between two places. Usually this happens with virtual machines, and developers needing access to the originals. There has never been a good way around this. I’ve tried various things: FTP, Dropbox-esque cloud sites, sneaker net, etc.
However, I stumbled upon a new site that is doing things a bit differently. Basically their system just maximizes the route between two endpoints and then you send the file directly. Obviously this isn’t a good choice for upload once, consume a lot items, but if you just need to get things sent once, it could work pretty well.
The site is called Sendoid, and they have both a web and desktop application. Looks pretty basic and worthwhile. I haven’t tried it yet, but it could also work well for distributed backups (house my files on someone else’s computer like my parent’s).
I hate when I go to MSDN and am downloading a large ISO only for something to happen and the download manager closes. I don’t have a shortcut on my desktop to it, so it is a pain to find.
In case this happens to you, here is the link load it back up.
“C:WindowsDownloaded Program FilesTransferMgr.exe”
Some good things to use when trying to do analysis on IIS logs:
Some common Log Parser queries:
select cs-uri-stem as url, cs-uri-query, cs-method, count(cs-uri-stem) as pagecount, sum(time-taken) as total-processing-time, avg(time-taken) as average, Max(time-taken) as Maximum from <logfile> group by cs-uri-stem, cs-uri-query, cs-method order by average desc
select cs-uri-stem as url, cs-method, count(cs-uri-stem) as pagecount, sum(time-taken) as total-processing-time, avg(time-taken) as average from <logfile> where cs-uri-stem like '%.aspx' group by cs-uri-stem, cs-method order by pagecount desc
select top 500 cs-uri-stem as url, cs-uri-query, count(cs-uri-stem) as pagecount, sum(time-taken) as total-processing-time, avg(time-taken) as average from <logfile> where cs-uri-stem like '%.aspx' group by cs-uri-stem, cs-uri-query order by pagecount desc
select cs-uri-stem as url, cs-method, count(cs-uri-stem) as pagecount, sum(time-taken) as total-processing-time, avg(time-taken) as average, avg(sc-bytes), max(sc-bytes) from <logfile> where cs-uri-stem like '%.aspx' group by cs-uri-stem, cs-method order by pagecount desc
UpdateI’m just adding more queries I frequently use, and fixing the formatting.
select quantize(time-taken,5000) as 5seconds, count(cs-uri-stem) as hits, cs-uri-stem as url from <logfile> group by url, quantize(time-taken,5000) order by quantize(time-taken,5000)
select quantize(time,3600) as dayHour, count(cs-uri-stem) as hits, avg(time-taken) as averageTime, cs-uri-stem as url from <logfile> where url like '%.svc' group by url, dayHour order by dayHour
select TO_LOCALTIME(QUANTIZE(TO_TIMESTAMP(date, time), 3600)) AS dayHour, count(cs-uri-stem) as hits from <logfile> where cs-uri-stem like '%/page.aspx' group by dayHour order by dayHour Asc
I’m sure a lot of you have heard about Colligo for offline SharePoint. Unfortunately, the SharePoint sites that I continually access where for my company have some interesting security setup and therefore I’ve never been able to get Colligo to work. Since I had originally tried, I never really bothered to figure it out as we were told it simply wouldn’t work.
However, when I installed Office 2010 I noticed that there was a SharePoint Workspace 2010 which does offline SharePoint too. Since we only use MS products for security I was very optimistic about getting Offline SharePoint finally working (incredibly useful for working on flights). Well, I attempted to use it and quickly realized it will only do offline SharePoint for SharePoint 2010. Unfortunately we were still on 2007.
Fast forward through a bit of searching, and I ran across a nice KB article that explains how to sync a SharePoint 2007 site with SharePoint Workspace 2010 using groove. I don’t really care how it works, as long as I can have offline editing and syncing. Yay!
As I am sure you gathered from other recent posts, we are using (read: testing) CSS for a lot of stuff. Well, we found out a beautiful new issue when creating and editing projects from the command line.
When you look at MSDN about adding a filter to a Project, you are presented with the following syntax:
/Filter “+text1.txt -*.exe -dir1 +…*.jpg”
Needless to say, that is not correct. For AddProj, they syntax has to be correct, but for EditProj, syntax is a lot more lax (the below is the syntax for EditProj). Regardless, everything in the quotes is incorrect. Instead a filter should look like the following:
Filter=+“text.txt” -”*.exe” -“dir1” +”…*.jpg”
They are either updating the MSDN article or creating a KB article about this.
With the release of Power Pack 3 for Windows Home Server, I have been thinking about trying it out. Having an MSDN subscription and a virtual machine host made this quite a bit easier, as I didn’t need to purchase any additional hardware to use it.
Prior to installing WHS, I had a Windows 2008 virtual machine that I installed all my stuff on and had shares. It definitely worked, but some of the cool features of WHS kept me wanting to move in that direction. Things like automated backups of client machines, a console, better managed and accessible shares, and Media Center tie-ins (I have a Win7 virtual machine as a Media Center and an Xbox 360 as the extender). All in all, I think it is definitely going to be a move in the right direction, but that doesn’t mean there weren’t issues getting there. I am going to outline a bunch of them here in the hopes that others can find comfort in the work I have done to resolve them.
Just silly stuff like that, which take awhile to troubleshoot, when they don’t need to. Turn it off.
Protocol mismatch. This computer uses protocol version 6.0.2030.2, but partner computer [server] uses protocol version 6.0.2030.0. A connection cannot be established
This was because the http://server:55000/enrollid/id.aspx webservice that the connector uses on the WHS machine was returning the incorrect version. The only way to fix it that I found was by installing the final build of Power Pack 3. The beta didn’t work, nor did downgrading to a previous PP.
Hopefully this little guide helps someone else out there. As I tinker with it some more, I will probably add additional articles, but it is amazing how long it has taken me to get this silly machine up and running, especially when this is supposed to be an appliance. I know that MS is learning a lot from this, but the polish is still a bit missing, and this is after 3 Service Packs (Power Packs).
Normally on a Windows machine when you attempt to access a share in a different domain you are prompted for credentials. However, there are no copy utilities (copy, xcopy, robocopy, etc) that pass credentials in the command line. Also, as it is an untrusted domain, you simply can’t do a RunAs (need to manually type in a password for that anyways).
The answer was so obvious, I can’t believe it didn’t come to me right away. However, net use, the simplest of commands, is your friend again. Using the following command you can initiate the connection and then copy between the machines as much as you like via normal UNC path.
net use [server][path] [password] /user:[username]
copy [source] [server][path][more path]
net use [server][path] /delete /y
By using the following syntax there is no mapped drive. There is simply a stored connection with the associated credentials for the life of the profile or until the delete command is run.
On my current project they deploy PSExec to all machines. The downside? It is a version from 2004. Yes, that is right from over 5 years ago. Needless to say, there has been nothing but problems with it. Granted, PSExec is probably one of the easiest things to upgrade as you just need to upgrade the version that you are calling PSExec from. It then copies itself out to the machine and does it’s job. However, if the old version was ever tried against a machine, you may be in some weird state like we were where PSExec wouldn’t start, or it would and wouldn’t close, etc.
Stumbling along the internet I found someone else who had this issue. However, his processes doesn’t always work because there may be something hanging onto the PSExecsvc.exe file still. Instead I recommend using the following batch file.
sc %1 stop psexesvc
sc %1 delete psexesvc
del %1admin$psexesvc.exe
del %1admin$system32psexesvc.exe
It just deletes the service before it tries to delete the files. Works like a charm.