71 subscribers
با برنامه Player FM !
پادکست هایی که ارزش شنیدن دارند
حمایت شده


SAS 025 – In the Lab – Intro to PowerShell
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 قسمت
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 قسمت
همه قسمت ها
×
1 SAS 045 – In The Lab – Python vs. Bash with Ken Youens-Clark 1:21:24

1 SAS 044 – Python for SysAdmins with Doug Farrell 1:03:26

1 SAS 042 – Your IT Career Journey with Jeff Brown 1:16:25

1 SAS 039 – Michael Levan – Transitioning to DevOps 1:03:23

1 SAS 038 – Joseph Bragdon – Day In The Life Of A Client Support Specialist 1:05:36

1 SAS 037 – Adam Bertram – Side Hustles, Consulting, Writing and Training 1:07:25

1 SAS 034 – Interview with Johnard Owens – Starting an IT Services Company 1:03:10


1 SAS 029 – Arbitrary Update – Lync/AudioCodes Troubleshooting, HP Server Workstation & Behind the Podcast 19:26
به Player FM خوش آمدید!
Player FM در سراسر وب را برای یافتن پادکست های با کیفیت اسکن می کند تا همین الان لذت ببرید. این بهترین برنامه ی پادکست است که در اندروید، آیفون و وب کار می کند. ثبت نام کنید تا اشتراک های شما در بین دستگاه های مختلف همگام سازی شود.