Category : cmd

As I mentioned in the question, if Powershell can invoke the CMD as administrator by merely providing verb RunAs when opening new instance of CMD, then why CMD cannot open it’s own new instance with runas verb ? I know that this command when passed in registry and set as value under [HKEY_CLASSES_ROOTDirectoryshellrunas1command] key works: ..

Read more

I’m trying to adapt this script that is called through a contextual menu: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTAllFilesystemObjectsshellRenameWithTimestamp] @="Rename: Add Date Modified" [HKEY_CLASSES_ROOTAllFilesystemObjectsshellRenameWithTimestampCommand] @="PowerShell.exe -WindowStyle Hidden -Command "( Get-Item -LiteralPath ‘%1’ ) | %%{ Rename-Item -LiteralPath $_.FullName -NewName ( ‘{0:yyyyMMdd_HHmmss} {1} {2}’ -f $_.LastWriteTime,$_.BaseName, $_.Extension ) }"" I would like to be able to ..

Read more