Wednesday, August 31, 2011

How to runas Explorer.exe

My boss figured this out... Thought you could do it the normal way in XP, but apparently not...

runas /user:domain\admin_user "explorer.exe /separate"

If you open Task Manager, you will see the explorer.exe process running under the elevated account.

Sunday, August 21, 2011

Changing disk ownership on Netapp cluster


  1. Change to special advanced mode
    FILER1> priv set advanced
    Warning: These advanced commands are potentially dangerous; use
    them only when directed to do so by NetApp personnel.

  2. Show UNOWNED disks
    FILER1*> disk show -n
    disk show: No disks match option -n.

  3. Turn off auto disk ownership
    FILER1*> options disk.auto_assign off

  4. Remove ownership on disk
    FILER1*> disk remove_ownership 0b.80
    Disk 0b.80 will have its ownership removedVolumes must be taken offline. Are all impacted volumes offline(y/n)?? y

  5. Show UNOWNED disks
    FILER1*> disk show -n
    DISK OWNER POOL SERIAL NUMBER
    ------------ ------------- ----- -------------
    0b.80 Not Owned NONE 3QQ1JM8K00009951WAX4

  6. To change disk ownership to FILER2
    FILER2> priv set advanced

  7. Assign disks to FILER2
    FILER2*> disk assign all

  8. Turn ON auto disk ownership again on FILER1
    FILER1*> options disk.auto_assign on

  9. To get out of advanced mode
    FILER1*> priv set
    FILER2*> priv set

Monday, August 1, 2011

Change DTS Owner (SQL 2000)

Good tip found below... helpful during migration from SQL 2000 to SQL 2008 to allow developers to see DTS owned by other programmers.

Reference:
http://vittoriop77.blogspot.com/2006/01/sql-2000-change-dts-owner.html