Not the same command line – Windows PowerShell Introduction to "egg-ache camouflage –profile" detailed implementation

Source: Internet
Author: User

(The modification method in this article refers to http://www.cnblogs.com/grapeot/archive/2010/02/22/1670822.html, just one of the steps to modify it.) )

This is achieved by modifying the profile, which is described in http://technet.microsoft.com/en-us/library/bb613488 (v=vs.85). aspx

1. Change its window background and icon to the following effect:

2. Generate profile

First to see if there is already a profile,

>test-path $profile

If the profile exists, the response is True; Otherwise, it is False.

If not exists,then create it:

>new-item-path $profile-itemtype File–force

To edit the generated profile, fill in the following code:

functionPrompt {$path= get- Location"$path >" }$host. Ui. Rawui.windowtitle ="C:\windows\system32\cmd.exe"$Shell=$Host. Ui. Rawuiclear-Host$str[Email protected]"Microsoft Windows [Version 6.3.9600] (c) Microsoft Corporation. All rights reserved."@$str

For profiles in effect for all users:

>new-item-path $env: Windir\system32\windowspowershell\v1.0\profile.ps1-itemtype file-force

3.

Not the same command line – Windows PowerShell Introduction to "egg-ache camouflage –profile" detailed implementation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.