DIR Return Create A Forum - Home
---------------------------------------------------------
Infrastructure Services
HTML https://infrastructureservices.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Powershell
*****************************************************
#Post#: 33--------------------------------------------------
Task 6
DIR By: uday
Date: October 28, 2019, 3:50 am
---------------------------------------------------------
Hint: Using get-command
A)Identify cmdlets:
1.produce a random number
2.display the current date and time
3.display information about installed hotfixes
B)What type of object does the cmdlet from task 2 produce? (What
is the type name of the object produced by the cmdlet?)
Using the cmdlet from task #2 and Select-Object, display only
the current day of the week in a table like this:
DayOfWeek
---------
Monday
C)Display a list of installed hotfixes. Sort the list by the
installation date, and display only the installation date, the
user who installed the hotfix, and the hotfix ID.
D)Repeat above task, but this time sort the results by the
hotfix description, and include the description, the hotfix ID,
and the installation date. Put the results into an HTML file.
E)Display a list of the 50 newest entries from the Security
event log (you can use a different log, such as System or
Application, if your Security log is empty). Sort the list so
that the oldest entries appear first, and so that entries made
at the same time are sorted by their index. Display the index,
time, and source for each entry. Put this information into a
text file (not an HTML file, just a plain text file).
*****************************************************
Page 1 of 1