Thursday, October 27, 2011

Runas program for touch screens

This has been updated :
http://www.tonyunger.com/2012/01/runas-touch-screen-application-purpose.html

Purpose: Touch screen application to run applications as a different user. It also dynamic creates button based on what it reads from a text file. I have added many changes to this application and will post a new version soon this week.
















Monday, October 24, 2011

Run explorer using the Runas Command

Little batch file i made to run explorer using the runas command.

It adds a registry key to the current user hive that is being used to to run explorer as a different user.

@Echo Off
Echo Importing Key
reg add "HKCU\software\microsoft\windows\currentversion\explorer\advanced" /v SeparateProcess /t REG_DWORD /d 00000001 /f
Echo Reg Key imported

Echo Starting Explorer

explorer /e

Echo Closing Explorer
reg add "HKCU\software\microsoft\windows\currentversion\explorer\advanced" /v SeparateProcess /t REG_DWORD /d 00000000 /f
exit

Tuesday, September 20, 2011

bit for bit copy of usb flash drive free utiltiy


Found this free utility to create a bit by bit copy of a flash drive
http://www.osforensics.com/tools/write-usb-images.html

ImageUSB is a free utility which lets you write an image concurrently to multiple USB Flash Drives. Capable of creating exact bit-level copies of USB Flash Drive (UFDs), ImageUSB is an extremely effective tool for the mass duplication of UFDs. ImageUSB also supports writing of an ISO file byte by byte directly to an USB drive, useful in conversion of bootable CD/DVD iso to a bootable USB drive. ImageUSB can also be used to install OSFClone to a USB Drive for use with PassMark OSForensics™.

Download Link
http://www.osforensics.com/downloads/imageusb.zip

Download link if site is down
http://dl.dropbox.com/u/24077962/imageusb.zip

Friday, September 16, 2011

Shell ipconfig the lazy way Visual Basic 2010


  • Shell("cmd /c ipconfig /all | findstr ""IPv4 Subnet Gateway"" > c:\support\ipconfig.txt", AppWinStyle.Hide, True)


  • lblIPConfig.Text = My.Computer.FileSystem.ReadAllText("c:\support\ipconfig.txt")

  • Tuesday, September 6, 2011

    Managing AD objects

    3 Ways to Move AD Objects
    1. Open ADUC and drag and drop object
    2. Context Menu - right click
    3. DSMove - Command line

    Example
    To move user tunger from the users container to the sales users ou under corp users ou here is the command
    dsmove "cn=tunger,cn=users,dc=tonyunger,dc=com" -newparent "ou=sales users,ou=corp users,dc=tonyunger,dc=com"

    3 Ways to Delete Objects
    1. Highlight object and hit delete button on keyboard
    2. context Menu - right click and choose delete
    3. DSRM - command line

    Delete User:
    DSRM "cn=tunger,cn=users,dc=tonyunger,dc=com"
    Delete OU:

    Remove an ou named sales users and all objects under the ou
    DSRM -subtree - nopromp -c "ou=sales users,ou=corp users,dc=tonyunger,dc=com"
    To remove all objects under an OU named sales, but leave the ou intact
    DSRM - subtree -exclude -noprompt -c "ou=sales users,ou=corp users,dc=tonyunger,dc=com"

    Add a user
    dsadd user "cn=tunger,cn=users,dc=tonyunger,dc=com" -fn Tony -ln Unger -pwd 1234 -mustchpwd yes

    Shadow Groups

    http://trycatch.be/blogs/roggenk/archive/2007/07/18/active-directory-domain-services-fine-grained-password-policies.aspx

    A shadow group is a global security group that is logically mapped to an OU to enforce a fine-grained password policy. You add users of the OU as members of the newly created shadow group and then apply the fine-grained password policy to this shadow group. You can create additional shadow groups for other OUs as needed


    More information:
    http://technet.microsoft.com/en-us/library/cc770394(WS.10).aspx

    Monday, September 5, 2011

    Active Directory Service command-line tools

    High overview

    dsadd adding objects.
    dsget displaying objects.
    dsmod modifying objects.
    dsmove moving objects.
    dsquery finding objects matching search criteria.
    dsrm deleting objects.

    Powershell: Microsoft Graph to add new roles to application registration

    PowerShell Script Bulk add new roles to application registration in azure. Update $roles with ,Us...