TIPS: IE Cleanup


Delete ALL:  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

Delete History:  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

Delete Cookies:  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

Delete Form Data:  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

Delete Passwords:  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

Delete Temporary Internet Files:   RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

Delete Files and Settings Stored by addons:  RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

FAQ: TIPS: WINDOWS: How to find all the process details for a particular executable using command line


wmic process where name=”cmd.exe” get executablepath,Com
mandline,Caption

output:

 Caption CommandLine                   ExecutablePath
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe
 cmd.exe "C:\Windows\system32\cmd.exe" C:\Windows\system32\cmd.exe

TIPS: VBScript : Get Logged in username using VBScript.


  • Using Environment Variable

Set wshShell = WScript.CreateObject( “WScript.Shell” )
strUserName = wshShell.ExpandEnvironmentStrings( “%USERNAME%” )
WScript.Echo “User Name: ” & strUserName

  • Using WshNetwork

Set wshNetwork = WScript.CreateObject( “WScript.Network” )
strUserName = wshNetwork.UserName
WScript.Echo “User Name: ” & strUserName

  • Using ADSI (ADSystemInfo)

Set objSysInfo = CreateObject( “ADSystemInfo” )
strUserName = objSysInfo.UserName
WScript.Echo “User Name: ” & strUserName

  • ADSI (WinNTSystemInfo)

Set objSysInfo = CreateObject( “WinNTSystemInfo” )
strUserName = objSysInfo.UserName
WScript.Echo “User Name: ” & strUserName

  • WMI (Win32_ComputerSystem)

Set objWMI = GetObject( “winmgmts:\\.\root\cimv2” )
Set colItems = objWMI.ExecQuery( “Select * from Win32_ComputerSystem” )
For Each objItem in colItems
strUserName = objItem.UserName
Next