PS C:\Program files\powershell\6.0.0-beta.6> new-service-name lisa_43_dev_batch-displayname LISA_43_Dev_Batch-
Cannot be dragged because it is handled in administrator mode.
Execute the command first to ensure that the command is recorded in the history.
Then, you need to open a window that is not administrative rights to drag,
First, the UP arrow on the keyboard, find the previous command, then drag, drag, and then directly execute the command.
PS C:\Program files\powershell\6.0.0-beta.6> new-service-name lisa_43_dev_batch-displayname LISA_43_Dev_Batch- binarypathname D:\ChuckLu\GitForSvn\Lisa4. 3\lisa. Batch\lisa. Batch.monitorservice\bin\debug\lisa. Batch.MonitorService.exe
Will prompt for no permissions
Finally, in a window with administrator privileges, use the UP arrow to find the full command and execute it.
PS C:\Program files\powershell\6.0.0-beta.6> new-service-name lisa_43_dev_batch-displayname LISA_43_Dev_Batch- binarypathname D:\ChuckLu\GitForSvn\Lisa4. 3\lisa. Batch\lisa. Batch.monitorservice\bin\debug\lisa. Batch.MonitorService.exeStatus Name DisplayName------ ---- -----------Stopped Lisa_43_dev_batch Lisa_43_dev_batch
PowerShell cannot drag files to the command line