Not able to create Powershell profile - psconsolefile

Hi Powershell Guru,

I am trying to create a Powershell 5.1 profile on Windows 10 Pro. with the following steps but kept encountering a persistent error:

( i ) C:\>dir c:\mypreferredconsole.psc
       13-Jun-18  7:10 AM               159 mypreferredconsole.psc

( ii ) The content of C:\mypreferredconsole.psc is:
      <?xml version="1.0" encoding="utf-8"?>
      <PSConsoleFile ConsoleSchemaVersion="1.0">
        <PSSnapIns />
( iii ) Create a shortcut on the Desktop. Make the target (the destination) of that shortcut
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -noexit -psconsolefile c:\mypreferredconsole.psc

Yet I kept getting the error below in a Powershell window after double clicked the shortcut :

-psconsoleFile : The term '-psconsoleFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1
+ -psconsoleFile c:\mypreferredconsole.psc
+ ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (-psconsoleFile:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Changing suffix .psc to .psc1 did not make any difference.

Thanks in advance,


No Data
  • I am endeavoring to make a Powershell 5.1 profile on Windows 10 Pro. by the accompanying advances yet continued experiencing a constant blunder:

    Rundown thing

    C:>dir c:\mypreferredconsole.psc

    13-Jun-18 7:10 AM 159 mypreferredconsole.psc

    Rundown thing

    The substance of C:\mypreferredconsole.psc are:


    Rundown thing

    Make an easy route on the Desktop. Make the objective (the goal) of that easy route

    C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe - noexit - psconsolefile c:\mypreferredconsole.psc

    However I continued getting the mistake underneath where it can't find c:\mypreferredconsole.psc:

    - psconsoleFile : The term '- psconsoleFile' isn't perceived as the name of a cmdlet, work, content record, or operable program. Check the spelling of the name, or if a way was incorporated, confirm that the way is right and attempt once more. At line:1 char:1 + - psconsoleFile c:\mypreferredconsole.psc + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (- psconsoleFile:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

    Evolving addition .psc to .psc1 did not have any effect.

    Much obliged ahead of time,

    cheap essays

No Data