- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Chirag Nagrekar has Published 465 Articles
Chirag Nagrekar
617 Views
To create a task using GUI (As shown below image) we need a few settings like the Name of the task, trigger, and Action.Similarly, to create a new task in task scheduler using PowerShell comprises of several settings.Name of the taskThe time when the task to triggerAction − Do we ... Read More
Chirag Nagrekar
1K+ Views
To start the specific task of the task scheduler using PowerShell, we need to use the Start-ScheduledTask command.When we run the above command, we need to provide the task name.For example, Start-ScheduledTask -TaskName 'FirstTask'When you check the above task status, ExampleGet-ScheduledTask -TaskName 'FirstTask'Output:TaskPath TaskName State -------- -------- ----- \ FirstTask ... Read More
Chirag Nagrekar
16K+ Views
To retrieve the existing tasks in the task scheduler using PowerShell, we can use the PowerShell command Get-ScheduledTask. We can use the Task Scheduler GUI to retrieve the scheduled tasks. To retrieve using PowerShell, use the Get-ScheduledTask command.When we use the above command, it retrieves all the tasks from the different paths/folders as ... Read More
Chirag Nagrekar
656 Views
There are two methods to install PowerShell modules. Online and Offline.Online MethodThis method is just like downloading the online package through Yum in the Unix system.We first need to search the package available on the internet using the Find-Module command. You can use the wildcard character if you don’t know ... Read More
Chirag Nagrekar
1K+ Views
Javascript Object Notation (JSON) is the light-weight structure which is easy to read by human and simple to parse and understand by machine. Although the name contains the Javascript, both Javascript and JSON are different and they have syntax and structure is different as well.You can get more information about ... Read More
Chirag Nagrekar
441 Views
In PowerShell when you create a complex script or function then it should be essential to create help for the end-users to easily understand your script functionality. Writing comment-based help or XML-based help, at the end is similar to Get-Help syntax for cmdlets or function which is the online version ... Read More
Chirag Nagrekar
3K+ Views
We can remove connected RDP sessions using PowerShell and for that, we can use the cmd command “reset session” in PowerShell. Let’s see the supported parameters for it.ExamplePS C:\> reset session /? Reset the session subsytem hardware and software to known initial values. RESET SESSION {sessionname | sessionid} [/SERVER:servername] ... Read More
Chirag Nagrekar
2K+ Views
To get the user sessions on the remote computers using PowerShell, we need to use the cmd query command. First of all, we will get the user sessions on the local computer using the below command.Examplequery sessionOutputLet’s see what are other supported parameters for the query session command.ExamplePS C:\> query ... Read More
Chirag Nagrekar
869 Views
Like any other data type conversion in PowerShell, we can convert Dictionary to hashtable in a similar way. We have a below Dictionary for the example called $CityData.Key Value --- ----- India 91 Austria 43Its datatype is Dictionary, ExamplePS C:\> $citydata.GetType() | ft ... Read More
Chirag Nagrekar
974 Views
PowerShell programmers generally prefer the Hashtable over the Dictionary although there are some advantages of using Dictionary. See the difference below.a. Hashtable is easy to declare while the Dictionary is a little complex compared to Hashtable. For example, To create a hashtable, $hash = @{ 'Country' = 'India' 'Code' = ... Read More