התחל במצב לא מקוון עם האפליקציה Player FM !
SAS 025 – In the Lab – Intro to PowerShell
Fetch error
Hmmm there seems to be a problem fetching this series right now. Last successful fetch was on November 25, 2024 00:29 ()
What now? This series will be checked again in the next day. If you believe it should be working, please verify the publisher's feed link below is valid and includes actual episode links. You can contact support to request the feed be immediately fetched.
Manage episode 238948825 series 1751234
In this lab episode I run through a recent PowerShell project. This is a very basic example will give you an idea what can be done with PowerShell. The YouTube video for this episode can be found at https://youtu.be/SXv-ZVV9ioc.
As promised I have included the final scripts below.
##########################demo.ps1#####################
#Define variables
$webdata = “”
$complete = “”
#scrape website content to variable
$webdata = Invoke-WebRequest “www.sysadminshow.com”
while ($complete -ne “1”)
{
if($webdata -like “*SysAdmin Show*”) # check for specific string
{
write-host “Found it!”
$complete = “1”
Start-Process calc.exe
}
else
{
write-host “Not Ready”
}
Start-Sleep -Seconds 1
}
####################launch.bat#####################
powershell -WindowStyle Hidden “c:\scripts\demo.ps1”
58 פרקים
Fetch error
Hmmm there seems to be a problem fetching this series right now. Last successful fetch was on November 25, 2024 00:29 ()
What now? This series will be checked again in the next day. If you believe it should be working, please verify the publisher's feed link below is valid and includes actual episode links. You can contact support to request the feed be immediately fetched.
Manage episode 238948825 series 1751234
In this lab episode I run through a recent PowerShell project. This is a very basic example will give you an idea what can be done with PowerShell. The YouTube video for this episode can be found at https://youtu.be/SXv-ZVV9ioc.
As promised I have included the final scripts below.
##########################demo.ps1#####################
#Define variables
$webdata = “”
$complete = “”
#scrape website content to variable
$webdata = Invoke-WebRequest “www.sysadminshow.com”
while ($complete -ne “1”)
{
if($webdata -like “*SysAdmin Show*”) # check for specific string
{
write-host “Found it!”
$complete = “1”
Start-Process calc.exe
}
else
{
write-host “Not Ready”
}
Start-Sleep -Seconds 1
}
####################launch.bat#####################
powershell -WindowStyle Hidden “c:\scripts\demo.ps1”
58 פרקים
כל הפרקים
×ברוכים הבאים אל Player FM!
Player FM סורק את האינטרנט עבור פודקאסטים באיכות גבוהה בשבילכם כדי שתהנו מהם כרגע. זה יישום הפודקאסט הטוב ביותר והוא עובד על אנדרואיד, iPhone ואינטרנט. הירשמו לסנכרון מנויים במכשירים שונים.