Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

PowerShell question

$
0
0

 

1. Creat a new folder named current date (ddmmyyyy)

2. Save ApplogEvent with errors for the last week in file app.csv in your new folder

3. The event have to be sorted by name.

4.Open file

 

Menu 
1.Application
2.Systems
3Quit

I am a beginner to power shell and i need some help i have done this much so far.. 

 

 

$curDate=get-date -format ddmmyyyy

$folername="LogError" + $curDate

$intch=Read-Host "please type 1(App) 2(System) 3(Quit)"

switch ($intch)

{

        1 {"Application"}

        2 {"System"}

        3 {"Quit"}

}

 

I am stuck at this point, something as simple as possible because i am new to this. 

Thank you


Viewing all articles
Browse latest Browse all 6937

Trending Articles