2010/09/06

Application command name for Windows

http://social.technet.microsoft.com/wiki/contents/articles/application-command-name-for-windows.aspx

Application command name for Windows

If you encounter any problem launching some of the program, please try the following :

Press the Windows Key + R on your keyboard or click on Start > Start Search and type this command

Add/Remove Programs = appwiz.cpl

Administrative Tools = control admintools

Authorization Manager= azman.msc

Calculator = calc

Certificate Manager = certmgr.msc

Character Map = charmap

Check Disk Utility = chkdsk

Command Prompt = cmd.exe

Component Services = dcomcnfg

Computer Management = compmgmt.msc

Control Panel = control

Date and Time Properties = timedate.cpl

Defragment User Interface = dfrgui

Device Manager = devmgmt.msc

Direct X Troubleshooter = dxdiag

Disk Cleanup Utility = cleanmgr

Disk Management = diskmgmt.msc

Disk Parmelonion Manager = diskpart

Display Properties = control desktop or, alternatively desk.cpl

Ditilizer Calibration Tool = tabcal

Downloads = Downloads

DPI Scaling = dpiscaling

Driver Package Installer = dpinst

Driver Verifier Utility = verifier or, alternatively reset

DVD Player = dvdplay

Encryption File System = rekeywiz

Event Viewer = eventvwr.msc

Fax Cover Sheet Editor = fxscover

File Signature Verification Tool = sigverif

Folders Properties = control folders

Fonts = control fonts

Free Cell Card Game = freecell

Group Policy Editor = gpedit.msc

Iexpress Wizard = iexpress

Internet Explorer = iexplore

Internet Properties = inetcpl.cpl

IP Configuration = ipconfig.exe

iSCSI Initiator = iscsicpl

Keyboard Properties = control keyboard

Libraries = explorer or, alternatively Windows key + E

Local Security Settings = secpol.msc

Local Users and Groups = lusrmgr.msc

Logs You Out Of Windows = logoff

Microsoft Paint = mspaint.exe

Microsoft Support Diagnostic Tool = msdt

Mobility Center (mobile) = mblctr or, alternatively Windows key + X

Mouse Properties = control mouse

Mouse Properties = main.cpl

Network Connections = control netconnections

Network Connections = ncpa.cpl

Notepad = notepad

ODBC Data Source Administrator = odbcad32

On Screen Keyboard = osk or, alternatively Windows key + U

Optional Features Manager = optionalfeatures

Performance Monitor = perfmon.msc

Phone and Modem Options = telephon.cpl

Power Configuration = powercfg.cpl

Printer Migration = PrintBrmUi

Printers and Faxes = control printers

Private Character Editor = eudcedit

Regional Settings = intl.cpl

Registry Editor = regedit.exe

Remote Assistance = msra

Remote Desktop = mstsc

Resultant Set of Policy = rsop.msc

Scheduled Tasks = control schedtasks

Security Center = wscui.cpl

Services = services.msc

Shared Folders/MMC = fsmgmt.msc

Shuts Down Windows = shutdown

Snipping Tool = snippingtool

Sound Recorder = soundrecorder

Sound Volume = sndvol

Sounds and Audio = mmsys.cpl

Spider Solitare Card Game = spider

SQL Client Configuration = cliconfg

Sticky Note = StikyNot

Stored User Names and Passwords = credwiz

System Configuration Editor = sysedit

System Configuration Utility = msconfig

System File Checker Utility = sfc

System Information = msinfo32

System Properties = sysdm.cpl or, alternatively Windows key + Pause

Task Manager = taskmgr

Trusted Platform Module = TpmInit

User Accounts = netplwiz or, alternatively control userpasswords2

Utility Manager = utilman

Windows Activation = slui

Windows Backup Utility = sdclt

Windows Fax and Scan = wfs

Windows Firewall = firewall.cpl

Windows Firewall with Advanced Security = wf.msc

Windows Image Acquisition = wiaacmgr

Windows Magnifier = magnify

Windows Management Infrastructure = wmimgmt.msc

Windows Media Player = wmplayer

Windows Share Creation Wizard = shrpubw

Windows Standalong Update Manager = wusa

Windows System Security Tool = syskey

Windows Update App Manager = wuapp

Wordpad = write

Different shortcuts

These shortcuts let you access specific features and tools in Windows 7.

Action Center = rundll32.exe shell32.dll,Control_RunDLL wscui.cpl

Add Network Location = rundll32.exe shwebsvc.dll,AddNetPlaceRunDll

Add/Remove Programs = rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl

Add/Remove Programs = RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0

Add/Remove Windows Components = rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2

Advanced Restore = sdclt.exe /restorewizardadmin

Aero (Transparency feature) Off = Rundll32.exe DwmApi #104

Aero (Transparency feature) On = Rundll32.exe DwmApi #102

Backup Location and Settings = sdclt.exe /configure

Content Advisor = RunDll32.exe msrating.dll,RatingSetupUI

Control Panel = RunDll32.exe shell32.dll,Control_RunDLL

Date and Time = rundll32.exe shell32.dll,Control_RunDLL timedate.cpl

Date and Time (Additional Clocks) = rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1

Date and Time (Properties) = RunDll32.exe shell32.dll,Control_RunDLL timedate.cpl

Device Manager = RunDll32.exe devmgr.dll DeviceManager_Execute

Device Manager = rundll32.exe shell32.dll,Control_RunDLL hdwwiz.cpl

Display Settings = RunDll32.exe shell32.dll,Control_RunDLL access.cpl,,3

Folder Options = RunDll32.exe shell32.dll,Options_RunDLL 0

Folder Options (File Types) = RunDll32.exe shell32.dll,Control_Options 2

Folder Options (Search) = RunDll32.exe shell32.dll,Options_RunDLL 2

Folder Options (View) = RunDll32.exe shell32.dll,Options_RunDLL 7

Forgotten Password Wizard = RunDll32.exe keymgr.dll,PRShowSaveWizardExW

Hibernate = RunDll32.exe powrprof.dll,SetSuspendState

Indexing Options = control.exe srchadmin.dll

Keyboard Properties = RunDll32.exe shell32.dll,Control_RunDLL main.cpl @1

Lock Screen = RunDll32.exe user32.dll,LockWorkStation

Manage Wireless Networks = explorer.exe shell:::{1fa9085f-25a2-489b-85d4-86326eedcd87}

Map Network Drive = RunDll32.exe shell32.dll,SHHelpShortcuts_RunDLL Connect

Mouse Properties = RunDll32.exe shell32.dll,Control_RunDLL main.cpl @0

Network Connections = RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl

Notification Cache = rundll32.exe shell32.dll,Options_RunDLL 5

Open Control Panel (All Items) = explorer.exe shell:::{21ec2020-3aea-1069-a2dd-08002b30309d}

Pen and Touch Tablet PC (Settings) = rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl

Pen and Touch Tablet PC (Settings Flicks Tab) = rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl,,1

Pen and Touch Tablet PC (Settings Handwriting Tab) = rundll32.exe shell32.dll,Control_RunDLL tabletpc.cpl,,2

People Near Me = rundll32.exe shell32.dll,Control_RunDLL collab.cpl

People Near Me (Sign Up Tab) = rundll32.exe shell32.dll,Control_RunDLL collab.cpl,,1

Personalization = rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2

Phone and Modem (Options) = rundll32.exe shell32.dll,Control_RunDLL telephon.cpl

Phone and Modem (Options Modems Tab) = rundll32.exe shell32.dll,Control_RunDLL telephon.cpl,,1

Phone and Modems (Options Advanced Tab) = rundll32.exe shell32.dll,Control_RunDLL telephon.cpl,,2

Power Options = rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl

Power Options Modify Plan Settings = rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl,,1

Regional Settings = RunDll32.exe shell32.dll,Control_RunDLL intl.cpl,,3

Restore Files = sdclt.exe /restorewizard

Screen Resolution = rundll32.exe shell32.dll,Control_RunDLL desk.cpl

ScreenSaver = rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1

Set Program Access and Computer Defaults = rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3

Sound Control Playback Tab = rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl

Sound Control Recording Tab = rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,1

Sound Control Sounds Tab = rundll32.exe shell32.dll,Control_RunDLLmmsys.cpl,,2

Stored Usernames /Passwords = RunDll32.exe keymgr.dll,KRShowKeyMgr

System Properties = rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl

System Properties (Advanced Tab) = rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,3

System Properties (Hardware Tab) = rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,2

System Properties (Remote Tab) = rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5

System Properties (System Protection Tab) = rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

System Properties (Advanced) RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

System Properties (Automatic Updates) = RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5

Taskbar Properties = RunDll32.exe shell32.dll,Options_RunDLL 1

Unplug Eject Hardware = RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

User Accounts = RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl

Welcome Center = rundll32.exe oobefldr.dll,ShowWelcomeCenter

Windows (About) = RunDll32.exe SHELL32.DLL,ShellAboutW

Windows Firewall = RunDll32.exe shell32.dll,Control_RunDLL firewall.cpl

Windows Firewall = rundll32.exe shell32.dll,Control_RunDLL firewall.cpl

Windows Security Center = RunDll32.exe shell32.dll,Control_RunDLL wscui.cpl

Wireless Network Setup = RunDll32.exe shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW

Wireless Networks pop-up = rundll32.exe van.dll,RunVAN

Internet Explorer Advanced Settings

Delete All (Deeper Cleaning Including Add-on Data Deletion) = RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351

Delete All = RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

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

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

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

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

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

2010/08/29

mRemoteNG - External Applications



 Here is a list of the Applications you can add in your mRemote External Applications
 Application: Windows Computer Manager
This will let you launch the Windows Computer Management MMC against the selected host. This MMC will let you view event logs, manage users, configure disks, manage services, and a whole bunch more.
Filename: C:\windows\system32\compmgmt.msc
Arguments: /Computer=%Hostname%


Application: 
Zenmap GUI
Zenmap is a GUI front-end for nmap. This is the standard port-scanning tool in use by anybody who knows the difference. Gives you all sorts of detail you won't find in the built-in port scanning tool.
Filename: 
C:\Program Files\Nmap\zenmap.exe
Arguments: -p "Quick scan plus" -t %Hostname%


Application: 
WinSCP
WinSCP is a great, free GUI Secure Copy program.
Filename: 
C:\Program Files\WinSCP\WinSCP.exe
Arguments: scp://%Username%:%Password%@%Hostname%/
 
Application: FileZilla FTP
Free and open source FTP client for most platforms.
Filename: 
C:\Program Files\FileZilla FTP Client\filezilla.exe
Arguments: ftp://%Username%:%Password%@%Hostname%


Application: 
FileZilla SFTP
Same as above, but using the Secure FTP (SFTP) protocol.
Filename: 
C:\Program Files\FileZilla FTP Client\filezilla.exe
Arguments: sftp://%Username%:%Password%@%Hostname%

Application: VMware Virtual Infrastructure Client
This is specific to anybody managing a VMware vSphere or ESX environment. This will launch the VI client against the selected host. If the host is an ESX server, it will simply connect to the ESX server. If the host is a Windows machine running vCenter, it will attach to the full vCenter environment.
Filename: 
C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe
Arguments: 
-s %Hostname% -u %Username% -p %Password%

Application: Firefox
I personally don't like the browser integration in mRemoteNG. It doesn't allow me to use all of my Firefox plugins. Therefore I just use a an external app to launch websites.
Filename: 
C:\Program Files\Mozilla Firefox\firefox.exe
Arguments: %Hostname%

Application: Ping
It's ping, needs no explanation
Filename: 
cmd
Arguments: /c ping -t %HostName%

Application: Traceroute
Again, no explanation needed...
Filename: 
cmd
Arguments: /c set /P = | tracert %HostName%

Application: Cygwin
What's better than managing all kinds of remote servers with mRemoteNG? Locally managing with mRemoteNG of course! Just install Cygwin and the mintty.
Filename: 
C:\cygwin\bin\mintty.exe

Arguments: -
Application: TOAD
Filename: 
C:\Program Files\Quest Software\Toad for Oracle\TOAD.exe
Arguments: Connect=%Username%/%Password%@%UserField%


I use the UserField for the SID
BUT WATCH OUT they've changed the command line syntax between versions (just search within you TOAD Help for command line)

Application: mcgetmac (
MC-WOL Homepage)
Description: find the MAC of a PC (useful for MC-WOL - see below)
Filename: 
Apps\MC-WOL\mcgetmac.bat
Arguments: %Hostname%

Download the mcgetmac.exe, put it to mRemoteNG's subfolder (Apps\MC-WOL) and create a mcgetmac.bat with the following 2 lines

mcgetmac.bat
CODE: SELECT ALL
@Apps\MC-WOL\mcgetmac.exe %1

@pause
Application: Wake-On-LAN (MC-WOL Homepage)
Description: wake up a remote PC over the network (find the MAC by using the mcgetmac.bat from above)
Filename: 
Apps\MC-WOL\mc-wol.exe
Arguments: 
%MacAddress% /a %Hostname%
Application: Google Chrome
Filename: \portable\GoogleChromePortable\GoogleChromePortable.exe
Arguments: %HostName%
Application: Internet Explorer
Filename: Internet Explorer\IEXPLORE.EXE
Arguments: %HostName%
Application: Samba
Filename: \portable\Notepad++Portable\Notepad++Portable.exe
Arguments: \samba\%Hostname%_sambaconf.txt
Application: Traceroute
Filename: cmd
Arguments: /c set /P = | tracert %HostName%
Application: Ping
Filename: cmd
Arguments: /c ping -t %HostName%
Application: VNC Viewer
Filename: \portable\vnc\vnc-4_1_2-x86_win32_viewer.exe
Arguments: %HostName%
Application: Windows Computer Manager
Filename: C:\WINDOWS\system32\compmgmt.msc
Arguments: /Computer=%HostName%
Application: WinSCP
Filename: \portable\WinSCP\WinSCP.exe
Arguments: scp://%Username%:%Password%@%Hostname%/
Application: Zabbix
Filename: /zabbix/search.php?search=%HostName%
Arguments:

Application: Zenmap GUI
Filename: \portable\Nmap\zenmap.exe
Arguments: -p "Quick scan plus" -t %Hostname%
Application: Check Remoteconnection
Filename: check_remote.bat
Arguments: 
%HostName%

@echo off & setlocal

IF "%1"=="" (
GOTO MANUAL
) ELSE (
GOTO AUTO
)

:AUTO
set IP=%1
qwinsta /server:%IP%
GOTO CHOICE

:MANUAL
set /p IP=Aktuelle IP oder Servernamen eingeben:
qwinsta /server:%IP%
GOTO CHOICE

:CHOICE
echo Auswahl:
echo [1] eine Verbindung trennen
echo [2] Beenden

SET /P auswahl=[1,2]?
for %%? in (1) do if /I "%auswahl%"=="%%?" goto DISCONNECT
for %%? in (2) do if /I "%auswahl%"=="%%?" goto ENDE
goto CHOICE

:DISCONNECT
set /p ID=Session ID eingeben:
rwinsta /server:%IP% %ID%

:ENDE
PAUSE

Application: Configure Samba
Filename: 
configure_Samba.bat
Arguments: 
%HostName% %username% %password%

@echo off & setlocal
set Hostname=%1
set Username=%2
set Password=%3
:UBUNTU
\portable\WinSCP\WinSCP.com /command "open scp://%Username%:%Password%@%Hostname%" "lcd \samba" "get /etc/samba/smb.conf" "exit"
IF ERRORLEVEL 1 GOTO SUSE
GOTO Notepad_UBUNTU
:SUSE
\portable\WinSCP\WinSCP.com /command "open scp://%Username%:%Password%@%Hostname%" "lcd \samba" "get /usr/local/samba/lib/smb.conf" "exit"

GOTO Notepad_SUSE
:Notepad_UBUNTU

"\portable\Notepad++Portable\Notepad++Portable.exe" \samba\smb.conf

PAUSE

xcopy \samba\smb.conf \samba\%Hostname%_sambaconf.txt /Y

\portable\WinSCP\WinSCP.com /command "open scp://%Username%:%Password%@%Hostname%" "cd /etc/samba/" "put \samba\smb.conf" "call /etc/init.d/samba restart" "exit"

GOTO Ende
:Notepad_SUSE
"\portable\Notepad++Portable\Notepad++Portable.exe" \samba\smb.conf

PAUSE

xcopy \samba\smb.conf \samba\%Hostname%_sambaconf.txt /Y
\portable\WinSCP\WinSCP.com /command "open scp://%Username%:%Password%@%Hostname%" "cd /usr/local/samba/lib/" "put \samba\smb.conf" "call /etc/init.d/samba restart" "exit"

GOTO Ende
:Ende

PAUSE
Sysinternals tools: http://technet.microsoft.com/en-us/sysi ... fault.aspx
SYDI: http://sydiproject.com/

Application: [HTTPS] Dell OpenManage [port 1311]
Filename:
iexplore
Arguments: https://%Hostname%:1311

Application: [HTTPS] HP HomePage [2381]
Filename:
iexplore
Arguments: https://%Hostname%:2381

Application: [HTTPS] ILO [81]
Filename:
iexplore
Arguments: https://ilo-%Hostname%:81

Application: [HTTPS] LocalHost [80]
Filename:
iexplore
Arguments: http://%hostname%

Application: [MSC] Compmgmt
Filename:
compmgmt.msc
Arguments: /computer:%hostname%

Application: [MSC] Services
Filename:
services.msc
Arguments: /computer:%hostname%

Application: [TOOL] Inventory with SYDI
Filename:
cmd
Arguments: /k cscript %mremote%\scripts\sydi\sydi-server.vbs -wabefghipPqrsu -racdklp -ew -f10 -d -t%hostname%You need to have MSWORD on your machine (you can also export in xml/html)

Application: [TOOL] Command Prompt (using SysInternals PSEXEC)
Filename:
cmd
Arguments: /k %tools%\psexec.exe \\%hostname% cmd.exe
In my case i added %tools% (system variable)

Application: [TOOL] Files Opened (using SysInternals PSFiLE)
Filename:
cmd
Arguments: /k %tools%\psfile.exe \\%hostname%

Application: [TOOL] Logged-on users (using SysInternals psloggedon.exe)
Filename:
cmd
Arguments: /k %tools%\psloggedon.exe \\%hostname%
Application: Netstat (Listening ports)(using Sysinternals PSEXEC)
Filename:
cmd
Arguments: /k %tools%\psexec.exe \\%hostname% netstat -nab |find /i

Application: Nslookup
Filename:
cmd
Arguments: /K nslookup %hostname%

Application: RDP /Admin (Console Session)
Filename:
cmd
Arguments: /c mstsc /v:%hostname%:3389 /admin
Application: Processes List (Powershell)
Filename:
powershell
Arguments: -noexit Get-wmiobject win32_process -computername %hostname% | Select-Object __server,name,processid,sessionid,vm,ws,description,executablepath,osname,windowsversion,__path | Out-GridView
Application: Shares List (Powershell)
Filename:
powershell
Arguments: -noexit Get-WmiObject win32_share -computer %hostname%|sort name|fl
Application: Shutdown GUi
Filename:
shutdown
Arguments:
/i /m %hostname%

2010/08/03

Powershell - How to use a config file (ini, conf,…) with a Powershell Script ? Is it possible ?

Is it possible to use a configuration file with a PowerShell script ?
for example, the configuration file:
#links
link1=http://www.google.com
link2=http://www.apple.com
link3=http://www.microsoft.com

and then call this information in the PS1 script:
start-process iexplore.exe $Link1

thanks in advance for your help!!

Your answers put me on the good track and I found this

SETTINGS.TXT
#from http://tlingenf.spaces.live.com/blog/cns!B1B09F516B5BAEBF!213.entry
#
[General]
MySetting1=value

[Locations]
InputFile="C:\Users.txt"
OutputFile="C:\output.log"

[Other]
WaitForTime=20
VerboseLogging=True

POWERSHELL COMMAND
#from http://tlingenf.spaces.live.com/blog/cns!B1B09F516B5BAEBF!213.entry
#
Get-Content "C:\settings.txt" | foreach-object -begin {$h=@{}} -process { $k = [regex]::split($_,'='); if(($k[0].CompareTo("") -ne 0) -and ($k[0].StartsWith("[") -ne $True)) { $h.Add($k[0], $k[1]) } }

then

After executing the code snippet, a variable ($h) will contain the values in a HashTable.
Name                           Value
----                           -----
MySetting1                     value
VerboseLogging                 True
WaitForTime                    20
OutputFile                     "C:\output.log"
InputFile                      "C:\Users.txt"

*To get an item from the table use the command $h.Get_Item("MySetting1").*

2010/08/01

Move a Computer Object to an OU

I’m currently working on the configuration of HP Rapid Deployment Pack (RDP) and I had to create a task who will automatically move the Computer object in the good OU.

So I want to move a computer object to the good OU depending of the SERVERNAME
In my company we use the name convention MTL1ASTT01:

MTL is the city name
1 is the site number
A for application
STT custom info
01 number of the server
In our Active Directory we use:

DOMAIN.local > GLOBAL > %SITENAME% > SERVERS

So if want to get the SITENAME and the SITENUMBER from the SERVERNAME i would use the code below, it will select

echo. Getting Sitename from the Computer name ...
Set SITENAME=%COMPUTERNAME%:0,4%
echo. SITENAME is %SITENAME%
dsmove "CN=%COMPUTERNAME%,OU=COMPUTERS,DC=DOMAIN,DC=LOCAL" -newparent OU=Servers,OU=%SITENAME%,OU=GLOBAL,DC=DOMAIN,DC=LOCAL

More information about DSMOVE

2010/07/21

Front-end PsTools - GUI for PSTools

Source: http://www.davitools.com/fepstools/fepstools.aspx
This is a GUI for the SYSINTERNALS PSTOOLS


Release Notes

Version 1.0
First version release in june 2004


Version 2.0 (06/2009)
Made up to date with the PsTools version 2.44
Quoted long names with space
Fixed several command line bugs
Password can be hidden in command line
Made Window resizable
Several GUI updates
Search network for computers and populate computer list
Added shortcuts for most common actions
Added option to show tool help output
Added option to show pstools help pages