Skip to main content

Subscribe

TechSckool - A Great Place To Learn

I’ll send you a monthly newsletter to keep you up to date with Azure & PowerShell.

    We respect your privacy. Unsubscribe at any time.

    Comments

    Popular posts from this blog

    Practice Exercises for PowerShell Beginner

      Practice Exercise1: File Operations/Searching/Basic PowerShell Operators 1.) Create a folder  TestingPurpose  and 3 Subfolders inside it SubFolder1, SubFolder2 2.) Create some test files inside these folders: TypeATest1.txt, TypeATest2.txt  … TypeATest50.txt into SubFolder1 TypeBTest51.txt, Purpose52Test2.txt … TypeBTest100 into SubFolder2 Needless to say that you have to use logic for creating these files. Not one by one 3.) Move all files which have an odd number in its name to SubFolder2 4.) Move all files which have even number in its name to SubFolder1 5.) Rename folder SubFolder1 to EvenFilesContainer and SubFolder2 to OddFilesContainer 5.) Prepare a list of all files currently existing inside folder  TestingPurpose      Example:  MasterFile.txt: As of YYYYMMDD HH: MM files inside Testing Purpose are: C:\testingPurpose\EvenFilesContainer\TypeBTest2.txt . . C:\testingPurpose\OddFilesContainer\TypeATest99.txt 6.) Delete all files which start with TypeA  

    Practice Exercises for PowerShell Intermediate

      Dear Friend, If you have already gone through     practice exercises for PowerShell beginner,    This is another opportunity to take your Scripting knowledge to next level. Please go through the problems, develop a clear understanding, make a rough sketch and apply your PowerShell knowledge to solve the problems.  Use PowerShell's help as much possible in case you need, but don't directly search on the internet. Trust me, solving these problems will definitely boost your confidence. Problem 1: Service restart on multiple computers and logging. Write a PowerShell script to read the computer names from a text file Then, Stop a given service (say Print Spooler service ) and wait for 30 seconds after logging the status into a dedicated log file. Ensure no child process is alive so that graceful stop of service can be confirmed If there is any child process, kill it forcefully and log the information into the log file After waiting for 30 seconds, start the service Check for the s

    Build in-demand career skills | GitHub Action | LIVE

    FREE COURSE LINK { Available for next 12 hours } Gift1:  Essential Tools for Windows System Administrators                           https://www.udemy.com/course/system-administration/ Gift2: Learning GitHub Actions         https://www.udemy.com/course/learning-github-actions/ GitHub Actions Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share actions to perform any job you'd like, including CI/CD, and combine actions in a completely customized workflow. What Is GitHub Action and How Do They Help Software development is an industry that works on collaboration. Multiple teams from different domains work together to build a good product. However, every software needs an upgrade, and since many people work together on a single project at the same time, a platform that can provide the following functionalities is needed. GitHub  is the answer to these challenges. GitHub Actions GitHub is a