Skip to content

Instantly share code, notes, and snippets.

@SadProcessor
Created March 22, 2017 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SadProcessor/228143f4fd866791961c88e30e292223 to your computer and use it in GitHub Desktop.
Save SadProcessor/228143f4fd866791961c88e30e292223 to your computer and use it in GitHub Desktop.
function Walk{
[Alias('To')]
Param(
[ValidateSet('About Windows dialog','Add Hardware Wizard','Adding a new Device','Advanced User Accounts','Advanced User Accounts msc','Backup and Restore','Bluetooth File Transfer','Calculator','Certificates','Change Computer Performance Settings','Change Data Execution Prevention','Change Data Execution Prevention Settings','Character Map','ClearType Tuner','Color Management','Command Prompt','Component Services','Component Services DCOM','Computer Management','Computer Management launcher','Connect to a Projector','Control Panel','Create A Shared Folder Wizard','Create a System Repair Disc','Data Execution Prevention','Date and Time','Default Location','Device Manager','Device Manager msc','Device Pairing Wizard','Diagnostics Troubleshooting Wizard','Digitizer Calibration Tool','DirectX Diagnostic Tool','Disk Cleanup','Disk Defragmenter','Disk Management','Display','Display Color Calibration','Display Switch','DPAPI Key Migration Wizard','Driver Verifier Manager','Ease of Access Center','EFS Wizard','Event Viewer','Fax Cover Page Editor','File Signature Verification','Font Viewer','Game Controllers','IExpress Wizard','Internet Explorer','Internet Options','iSCSI Initiator Configuration Tool','Language Pack Installer','Local Group Policy Editor','Local Security Policy','Local Users and Groups','Location Activity','Magnifier','Malicious Software Removal Tool','Manage Your File Encryption Certificates','Microsoft Management Console','Microsoft Support Diagnostic Tool','Mouse','NAP Client Configuration','Narrator','Network Connections','New Scan Wizard','Notepad','ODBC Data Source Administrator','ODBC Driver Configuration','On-Screen Keyboard','Open Documents Folder','Open Downloads Folder','Open Favorites Folder','Open Pictures Folder','Open Recent Folder','Open Videos folder','Paint','Pen and Touch','People Near Me','Performance Monitor','Performance Options','Phone and Modem','Phone Dialer','Power Options','Presentation Settings','Print Management','Printer Migration','Printer User Interface','Private Character Editor','Problem Steps Recorder','Programs and Features','Protected Content Migration','Region and Language','Registry Editor','Registry Editor 32','Remote Access Phonebook','Remote Desktop Connection','Resource Monitor','Resultant Set of Policy','SAM Lock Tool','Screen Resolution','Securing the Windows Account Database','Services','Set Program Access and Computer Defaults','Share Creation Wizard','Shared Folders','Signout','Snipping Tool','Sound','Sound recorder','SQL Server Client Network Utility','Sticky Notes','Stored User Names and Passwords','Sync Center','System Configuration','System Configuration Editor','System Information','System Properties','System Properties (Advanced Tab)','System Properties (Computer Name Tab)','System Properties (Hardware Tab)','System Properties (Remote Tab)','System Properties (System Protection Tab)','System Restore','Task Manager','Task Scheduler','Trusted Platform Module (TPM) Management','Turn Windows features on or off','User Account Control Settings','Utility Manager','Versione Windows','Volume Mixer','Windows Action Center','Windows Activation Client','Windows Anytime Upgrade Results','Windows Disc Image Burning Tool','Windows Explorer','Windows Fax and Scan','Windows Firewall','Windows Firewall with Advanced Security','Windows Journal','Windows Media Player','Windows Memory Diagnostic Scheduler','Windows Mobility Center','Windows Picture Acquisition Wizard','Windows PowerShell','Windows PowerShell ISE','Windows Remote Assistance','Windows Repair Disc','Windows Script Host','Windows Update','Windows Update Standalone Installer','WMI Management','WordPad','XPS Viewer')]
[Parameter(Position=0,Mandatory=$true)][String]$To
)
Begin{
$Dico = @{
'Open Documents Folder'='explorer documents'
'Open Videos folder'='explorer videos'
'Open Downloads Folder'='explorer downloads'
'Open Favorites Folder'='explorer favorites'
'Open Recent Folder'='explorer recent'
'Open Pictures Folder'='explorer pictures'
'Adding a new Device'='devicepairingwizard'
'About Windows dialog'='winver'
'Add Hardware Wizard'='hdwwiz'
'Advanced User Accounts'='netplwiz'
'Advanced User Accounts msc'='azman.msc'
'Backup and Restore'='sdclt'
'Bluetooth File Transfer'='fsquirt'
'Calculator'='calc'
'Certificates'='certmgr.msc'
'Change Computer Performance Settings'='systempropertiesperformance'
'Change Data Execution Prevention'='systempropertiesdataexecutionprevention'
'Change Data Execution Prevention Settings'='printui'
'Character Map'='charmap'
'ClearType Tuner'='cttune'
'Color Management'='colorcpl'
'Command Prompt'='cmd'
'Component Services'='comexp.msc'
'Component Services DCOM'='dcomcnfg'
'Computer Management'='compmgmt.msc'
'Computer Management launcher'='compmgmtlauncher'
'Connect to a Projector'='displayswitch'
'Control Panel'='control'
'Create A Shared Folder Wizard'='shrpubw'
'Create a System Repair Disc'='recdisc'
'Data Execution Prevention'='systempropertiesdataexecutionprevention'
'Date and Time'='timedate.cpl'
'Default Location'='locationnotifications'
'Device Manager msc'='devmgmt.msc'
'Device Manager'='hdwwiz.cpl'
'Device Pairing Wizard'='devicepairingwizard'
'Diagnostics Troubleshooting Wizard'='msdt'
'Digitizer Calibration Tool'='tabcal'
'DirectX Diagnostic Tool'='dxdiag'
'Disk Cleanup'='cleanmgr'
'Disk Defragmenter'='dfrgui'
'Disk Management'='diskmgmt.msc'
'Display'='dpiscaling'
'Display Color Calibration'='dccw'
'Display Switch'='displayswitch'
'DPAPI Key Migration Wizard'='dpapimig'
'Driver Verifier Manager'='verifier'
'Ease of Access Center'='utilman'
'EFS Wizard'='rekeywiz'
'Event Viewer'='eventvwr.msc'
'Fax Cover Page Editor'='fxscover'
'File Signature Verification'='sigverif'
'Font Viewer'='fontview'
'Game Controllers'='joy.cpl'
'IExpress Wizard'='iexpress'
'Internet Explorer'='iexplore'
'Internet Options'='inetcpl.cpl'
'iSCSI Initiator Configuration Tool'='iscsicpl'
'Language Pack Installer'='lpksetup'
'Local Group Policy Editor'='gpedit.msc'
'Local Security Policy'='secpol.msc'
'Local Users and Groups'='lusrmgr.msc'
'Location Activity'='locationnotifications'
'Magnifier'='magnify'
'Malicious Software Removal Tool'='mrt'
'Manage Your File Encryption Certificates'='rekeywiz'
'Microsoft Management Console'='mmc'
'Microsoft Support Diagnostic Tool'='msdt'
'Mouse'='main.cpl'
'NAP Client Configuration'='napclcfg.msc'
'Narrator'='narrator'
'Network Connections'='ncpa.cpl'
'New Scan Wizard'='wiaacmgr'
'Notepad'='notepad'
'ODBC Data Source Administrator'='odbcad32'
'ODBC Driver Configuration'='odbcconf'
'On-Screen Keyboard'='osk'
'Paint'='mspaint'
'Pen and Touch'='tabletpc.cpl'
'People Near Me'='collab.cpl'
'Performance Monitor'='perfmon.msc'
'Performance Options'='systempropertiesperformance'
'Phone and Modem'='telephon.cpl'
'Phone Dialer'='dialer'
'Power Options'='powercfg.cpl'
'Presentation Settings'='presentationsettings'
'Print Management'='printmanagement.msc'
'Printer Migration'='printbrmui'
'Printer User Interface'='printui'
'Private Character Editor'='eudcedit'
'Problem Steps Recorder'='psr'
'Programs and Features'='appwiz.cpl'
'Protected Content Migration'='dpapimig'
'Region and Language'='intl.cpl'
'Registry Editor'='regedit'
'Registry Editor 32'='regedt32'
'Remote Access Phonebook'='rasphone'
'Remote Desktop Connection'='mstsc'
'Resource Monitor'='resmon'
'Resultant Set of Policy'='rsop.msc'
'SAM Lock Tool'='syskey'
'Screen Resolution'='desk.cpl'
'Securing the Windows Account Database'='syskey'
'Services'='services.msc'
'Set Program Access and Computer Defaults'='computerdefaults'
'Share Creation Wizard'='shrpubw'
'Shared Folders'='fsmgmt.msc'
'Signout'='logoff'
'Snipping Tool'='snippingtool'
'Sound'='mmsys.cpl'
'Sound recorder'='soundrecorder'
'SQL Server Client Network Utility'='cliconfg'
'Sticky Notes'='stikynot'
'Stored User Names and Passwords'='credwiz'
'Sync Center'='mobsync'
'System Configuration'='msconfig'
'System Configuration Editor'='sysedit'
'System Information'='msinfo32'
'System Properties'='sysdm.cpl'
'System Properties (Advanced Tab)'='systempropertiesadvanced'
'System Properties (Computer Name Tab)'='systempropertiescomputername'
'System Properties (Hardware Tab)'='systempropertieshardware'
'System Properties (Remote Tab)'='systempropertiesremote'
'System Properties (System Protection Tab)'='systempropertiesprotection'
'System Restore'='rstrui'
'Task Manager'='taskmgr'
'Task Scheduler'='taskschd.msc'
'Trusted Platform Module (TPM) Management'='tpm.msc'
'Turn Windows features on or off'='optionalfeatures'
'User Account Control Settings UAC'='useraccountcontrolsettings'
'Utility Manager'='utilman'
'Volume Mixer'='sndvol'
'Windows Action Center'='wscui.cpl'
'Windows Activation Client'='slui'
'Windows Anytime Upgrade Results'='windowsanytimeupgraderesults'
'Windows Disc Image Burning Tool'='isoburn'
'Windows Explorer'='explorer'
'Windows Fax and Scan'='wfs'
'Windows Firewall'='firewall.cpl'
'Windows Firewall with Advanced Security'='wf.msc'
'Windows Journal'='journal'
'Windows Media Player'='wmplayer'
'Windows Memory Diagnostic Scheduler'='mdsched'
'Windows Mobility Center'='mblctr'
'Windows Picture Acquisition Wizard'='wiaacmgr'
'Windows PowerShell'='powershell'
'Windows PowerShell ISE'='powershell_ise'
'Windows Remote Assistance'='msra'
'Windows Repair Disc'='recdisc'
'Windows Script Host'='wscript'
'Windows Update'='wuapp'
'Windows Update Standalone Installer'='wusa'
'Versione Windows'='winver'
'WMI Management'='wmimgmt.msc'
'WordPad'='write'
'XPS Viewer'='xpsrchvw'
}
}
Process{$Value=$Dico.$To}
End{try{&$Value}Catch{}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment