Here is a PowerShell program that prints a beautiful welcome screen using asterisks (*):
```
Write-Output "****************************************************"
Write-Output "* *"
Write-Output "* WELCOME TO POWERSHELL SCRIPTING WORLD *"
Write-Output "* *"
Write-Output "****************************************************"
Write-Output "* *"
Write-Output "* Author: [Your Name] *"
Write-Output "* Date: $(Get-Date) *"
Write-Output "* *"
Write-Output "****************************************************"
```
This program uses the `Write-Output` cmdlet to print a welcome screen with a border made of asterisks. You can replace `[Your Name]` with your actual name.
When you run this program, it will print:
```
****************************************************
* *
* WELCOME TO POWERSHELL SCRIPTING WORLD *
* *
****************************************************
* *
* Author: [Your Name] *
* Date: 09/09/2024 12:00:00 *
* *
****************************************************
```
Note: The `$(Get-Date)` part prints the current date and time.


0 Comments