SA

How to change the first day of the week on Windows 7

Recently I was working to populate a Date Dimension table and I discovered that the script used was basing the first of the week on my local machine. This was fine except I wanted to line up my weeks against our financial system which hand the end of the week on Friday, not Saturday is it looks like on a normal calendar. Basically making the effective change below: To do this, I performed these steps: Open control panel Go to Clock/Language/Region Under Date and Time, click Set the date and time...

how to graph / chart multiple ping results using shell scripting and logparser

i probably should have called this post 'stupid batch file tricks' or 'how much time do you want to waste on batch files' as well. =P anyway, i needed to graph something else, and i was fiddling around with logparser. if you have ever fiddled, you have probably googled, and if you have ever googled for logparser, you probably have come across Ken Schaefer's blog post about graphing ping results. it's at http://www.adopenstatic.com/cs/blogs/ken/archive/2005/05/30/22.aspx if you haven't. go check it out. i will wait. it's quite short. wayyyy shorter than this. =P anyway, i wanted to represent several test result series from...

how do i disconnect all of my network drives in windows

net use * /d /y the /y is undocumented as far as i can see. it provides a 'Y' when it asks if you're sure.

create a custom sendto item to process files... with powershell...

in reply to dennis' comment on my last post on this little thing (http://drowningintechnicaldebt.com/blogs/royashbrook/archive/2009/01/21/create-a-custom-sendto-item-to-process-files.aspx), here's the way to do this with powershell make sure you have powershell installed and working create script somewhere with text: foreach ($i in $args) {move-item $i $i.Replace(".mod", ".mpeg")} create a shortcut in the sendto folder that has the command of '[pathtopowershell.exe] -noexit [pathtoscript] enjoy! i was only renaming certain files to certain other files (MOD to MPEG), but obviously you can customize this however you see fit. i had my batch...

dsquery, dsget, etc

how i have lived this long in my life without familiarity with these commands is beyond me. i'm a big fan of the command line especially commands that are already or mostly built in. these come with the admin pack. so much easier than opening up the ad user group mgr and other gui tools. here's a sample command. dsquery group -name "any domain group in your domain" | dsget group -members |dsget user -email -samid -display this command will pipe the full name to the get command to list the members which pipes to the command to show the email, samid,...

Full SA Archive