Home
Search results “Powershell select property of object”
Manipulating Objects in Microsoft PowerShell - Video 2
 
23:29
This is part 2 of a series on using PowerShell. In this video we cover how to work with Objects in PowerShell. We do that by breaking down this script. Get-PSDrive | ?{$_.Free -gt 1} | %{$Count = 0; Write-Host "";} { $_.Name + ": Used: " + "{0:N2}" -f ($_.Used/1gb) + " Free: " + "{0:N2}" -f ($_.free/1gb) + " Total: " + "{0:N2}" -f (($_.Used/1gb)+($_.Free/1gb)); $Count = $Count + $_.Free;}{Write-Host"";Write-Host "Total Free Space " ("{0:N2}" -f ($Count/1gb)) -backgroundcolor magenta} So if you have ever wanted to understand what all of that is and how to write your own crazy script this is the video for you. Here is a link to better understanding the .NET formatting method. {0:N2} https://technet.microsoft.com/en-us/library/ee692795.aspx?f=255&MSPPError=-2147217396 For support or more information about PowerShell check out http://www.boldzebras.com Edit notes: None. :)
Views: 119653 Shane Young
PowerShell Basics: Sorting and Selecting Objects with Sort-Object and Select-Object
 
04:38
A basic overview of the Select-object and Sort-Object CMDlets and a practical example of how to use each. Download Link: http://www.signalwarrant.com/2017/05/01/powershell-basics-sorting-and-selecting-with-sort-object-and-select-object/ Recommended Reading Learn Windows PowerShell in a Month of Lunches - http://amzn.to/2spBc7u PowerShell in Depth 2nd Edition - http://amzn.to/2uJIOTf An Administrator's Guide: Powershell in Depth - http://amzn.to/2upRUFw Windows PowerShell Best Practices - http://amzn.to/2tIo0ys Windows PowerShell Cookbook: The Complete Guide to Scripting Microsoft's Command Shell - http://amzn.to/2spOSzo Website: www.signalwarrant.com Twitter: @signalwarrant Facebook: facebook.com/signalwarrant/ Google +: plus.google.com/113307879414407675617 YouTube Subscribe link: https://www.youtube.com/c/SignalWarrant1?sub_confirmation=1
Views: 801 SignalWarrant
Powershell | Piping to select | Exporting Object
 
03:35
Lets keep the channel going ! Please subscribe if this was helpful :) Commands used; get-process get-process | select * get-process | fl get-process | where ProcessName -eq 'explorer' get-process | {Where-Object $_.ProcessName -like 'explorer'} get-process ##smallerThanSign## "PATHOFOUTPUT.txt" get-process | Export-Csv "PATH OF OUTPUT.csv"
Views: 209 Scripting Tips
Getting Started with Microsoft PowerShell: 03 Objects for the Admin
 
41:29
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
Powershell/OOP - Understanding Objects
 
13:20
Part III of my Powershell Series: Everything is an Object! Learn how to create and work with Objects using their Properties and Methods. Although focusing on Objects in Powershell, this may also be useful for people starting out in any other Object Oriented Programming Language as the same principals apply.
Views: 4026 JayFilkins
10 PowerShell commands every Windows admin should know
 
22:50
10 PowerShell commands every Windows admin should know http://aikitsupport.com 1: Get-Help The first PowerShell cmdlet every administrator should learn is Get-Help. You can use this command to get help with any other command. For example, if you want to know how the Get-Process command works, you can type: Get-Help -Name Get-Process and Windows will display the full command syntax. You can also use Get-Help with individual nouns and verbs. For example, to find out all the commands you can use with the Get verb, type: Get-Help -Name Get-* 2: Set-ExecutionPolicy Although you can create and execute PowerShell scripts, Microsoft has disabled scripting by default in an effort to prevent malicious code from executing in a PowerShell environment. You can use the Set-ExecutionPolicy command to control the level of security surrounding PowerShell scripts. Four levels of security are available to you: Restricted — Restricted is the default execution policy and locks PowerShell down so that commands can be entered only interactively. PowerShell scripts are not allowed to run. All Signed — If the execution policy is set to All Signed then scripts will be allowed to run, but only if they are signed by a trusted publisher. Remote Signed — If the execution policy is set to Remote Signed, any PowerShell scripts that have been locally created will be allowed to run. Scripts created remotely are allowed to run only if they are signed by a trusted publisher. Unrestricted — As the name implies, Unrestricted removes all restrictions from the execution policy. You can set an execution policy by entering the Set-ExecutionPolicy command followed by the name of the policy. For example, if you wanted to allow scripts to run in an unrestricted manner you could type: Set-ExecutionPolicy Unrestricted 3: Get-ExecutionPolicy If youre working on an unfamiliar server, you ll need to know what execution policy is in use before you attempt to run a script. You can find out by using the Get-ExecutionPolicy command. 4: Get-Service The Get-Service command provides a list of all of the services that are installed on the system. If you are interested in a specific service you can append the -Name switch and the name of the service (wildcards are permitted) When you do, Windows will show you the services state. 5: ConvertTo-HTML PowerShell can provide a wealth of information about the system, but sometimes you need to do more than just view the information onscreen. Sometimes, its helpful to create a report you can send to someone. One way of accomplishing this is by using the ConvertTo-HTML command. Get-Service | ConvertTo-HTML -Property Name, Status C:\services.htm 6: Export-CSV Just as you can create an HTML report based on PowerShell data, you can also export data from PowerShell into a CSV file that you can open using Microsoft Excel. Get-Service | Export-CSV c:\service.csv 7: Select-Object If you tried using the command above, you know that there were numerous properties included in the CSV file. Its often helpful to narrow things down by including only the properties you are really interested in. This is where the Select-Object command comes into play. The Select-Object command allows you to specify specific properties for inclusion. For example, to create a CSV file containing the name of each system service and its status, you could use the following command: Get-Service | Select-Object Name, Status | Export-CSV c:\service.csv 8: Get-EventLog You can actually use PowerShell to parse your computers event logs. There are several parameters available, but you can try out the command by simply providing the -Log switch followed by the name of the log file. For example, to see the Application log, you could use the following command: Get-EventLog -Log "Application" Of course, you would rarely use this command in the real world. Youre more likely to use other commands to filter the output and dump it to a CSV or an HTML file. 9: Get-Process Just as you can use the Get-Service command to display a list of all of the system services, you can use the Get-Process command to display a list of all of the processes that are currently running on the system. 10: Stop-Process Sometimes, a process will freeze up. When this happens, you can use the Get-Process command to get the name or the process ID for the process that has stopped responding. You can then terminate the process by using the Stop-Process command. You can terminate a process based on its name or on its process ID. For example, you could terminate Notepad by using one of the following commands: Stop-Process -Name notepad Facebook : https://www.facebook.com/AIKITSupport/ Twitter : https://twitter.com/AIKITSupport Support Us : https://www.patreon.com/askjoyb
Views: 26386 Joy Banerjee
How to get all properties and methods of a powershell object
 
00:21
How to get all properties and methods of a powershell object
Custom Properties  for PowerShell Parameter Binding : PSB  E10
 
04:25
Creating custom properties when connecting PowerShell commands together via the Pipeline wont work Learn more at http://powershellbytes.com Follow me on twitter https://twitter.com/robbiepc30
Views: 406 PowerShell Bytes
sort object and group object in PowerShell
 
09:52
Sorting and grouping objects in PowerShell. If you would like to know in more details and additional material on PowerShell scripting then look at my video tutorial in udemy. In case you are not satisfied then you can get refund in 30 days and there is nothing to lose. https://www.udemy.com/powershell-command/learn/v4/overview
Views: 54 khantutorial
PowerShell Fundamentals - Working with Objects
 
05:50
http://www.Pluralsight.com/Windows-PowerShell-Fundamentals.aspx?utm_source=YouTube&utm_medium=Social%20Media&utm_campaign=PowerShell%20Demo1 In this demo from Pluralsight's PowerShell Fundamental course, Jeff Hicks will show you how to work with objects. -~-~~-~~~-~~-~- This channel is an archive! Subscribe to Pluralsight for new IT Pro training ➨ https://www.youtube.com/user/Pluralsight?sub_confirmation=1 -~-~~-~~~-~~-~-
How to select properties with Powershell
 
00:32
How to select properties with Powershell
Use PowerShell - Get IP, Computer, OS, Version, Service Pack in domain
 
06:13
Use PowerShell - Get IP, Computer, OS, Version, Service Pack in domain 1. Prepare - DC21 : Domain Controller (pns.vn) 2. Step by step : Using PowerShell get properties - DC21 : Get IP, Computer, OS, Version, Service Pack in domain + Windows PowerShell : + Get-ADComputer -Filter * -Properties ipv4Address, OperatingSystem, OperatingSystemServicePack,OperatingSystemVersion | Select-Object name, ipv4*, oper* === Get properties + Get-ADComputer -Filter * -Properties ipv4Address, OperatingSystem, OperatingSystemServicePack,OperatingSystemVersion | Select-Object name, ipv4*, oper* | Export-CSV C:\Properties.csv === Export to .CSV file
Views: 1225 microsoft lab
PowerShell Live! : Piping | Object Filtering
 
31:08
Join the PDQ crew at https://live.pdq.com and they'll answer questions and chat
Views: 622 PDQ.com
PowerShell console working tools selecting filtering
 
41:29
Object across the pipeline Getting the information that you need Sorting objects Selecting objects Custom properties Filtering data Methods
Views: 0 MIKISIMO
Compare against object types in Powershell
 
01:36
Use the -is to compare objects against a type in powershell SEE THE CODE: https://github.com/MrPowerScripts/PowerScripts/blob/master/Variables/CompareAgainstType.ps1 MrPowerScripts channel hopes to help you learn more about programming and automation. Learning to automate reptitive tasks is more effeicient and frees up time to do the things you actually enjoy. I'll cover various operating systems such as Windows and Linux using different languages. Powershell, Batch, Python, Javascript, CSS, HTML to name a few. I also cover helpful tools and concepts such as git, API, flask, various modules and even helpful code from other programmers. I hope you can learn something from these videos as creating them has helped me learn a lot.
Views: 770 MrPowerScripts
Show Properties of an Object as List in powershell
 
00:24
Show Properties of an Object as List in powershell
PowerShell Arrays Introduction
 
19:20
In this video we talk about PowerShell Arrays and how I use them with new-object to create CSV files of data that I can work with in a familiar way. Also covered are hashtables and few other tricks. For support, training, or more information about PowerShell check out http://www.boldzebras.com Here is the actual PowerShell from the video. $Array = @() $Processes = Get-Process Foreach($Proc in $Processes) { If($Proc.WS/1mb -gt 100) { $Array += New-Object psobject -Property @{'ProcessName' = $Proc.name; 'WorkingSet' = $Proc.ws} } } $Array | select 'ProcessName', 'WorkingSet' | Export-Csv .\file2.csv -NoTypeInformation $CSVImport = @() $CSVImport = Import-Csv .\file2.csv ForEach($dog in $CSVImport){Write-host "Process Name:" $dog.processname " Working Set:" $dog.workingset} #Just want to look at it in a prettier way? $CSVImport | Format-Table -AutoSize #Other tricks to keep in your pocket $CSVImport[1].ProcessName
Views: 10022 Shane Young
Use PowerShell : Get all computer list in domain
 
02:20
Use PowerShell - Get all computer list in domain 1. Prepare - DC11 : Domain Controller 2. Step by step - DC11 : + Windows PowerShell : + Get-ADComputer -Filter * -properties *|select Name, DNSHostName, OperatingSystem, LastLogonDate
Views: 11653 microsoft lab
Understanding PowerShell CmdLet Syntax : PSB E04
 
15:25
Learn how to understand CmdLet Syntax in PowerShell http://powershellbytes.com/
Views: 1608 PowerShell Bytes
Windows PowerShell: Filtering Functions and Custom Objects
 
05:53
Don Jones explains how filtering functions, the pipeline, and custom objects work in Windows PowerShell. For more info on working with Windows PowerShell, see the Windows PowerShell column in TechNet Magazine (www.technetmagazine.com).
Views: 4069 TechNetMagazine
PowerShell on Ubuntu: Objects, Properties, and Methods
 
05:10
PowerShell on Ubuntu: Objects, Properties, and Methods Hi, my name is Wes Holton and welcome back to my series on running Microsoft’s PowerShell on Ubuntu Linux. This series is aimed at the IT professional or hobbyist who may be new to PowerShell, Linux, or both. In previous videos, we’ve discussed two of the most important cmdlets to get familiar with: Get-Command and Get-Help. Today, we are going to add one more: GET-MEMBER, which will form a very powerful trio. With a basic understanding of these three cmdlets, you can figure out solutions to all sorts of challenges. Before I demonstrate Get-Member, let’s take a brief moment to talk about objects. Every action you take in PowerShell occurs within the context of objects. As data moves from one command to the next, it moves as one or more identifiable objects. An object, then, is a collection of data that represents an item. You can represent everything from a file to an ant colony. An object is made up of three types of data: the objec’ts type, its methods, and its properties. The object type tells what kind of object it is. For example, an object that represents a file is a FileInfo object. The object methods are actions that you can perform on the object. For example, FileInfo objects have a CopyTo method that you can use to copy the file. Object properties store information about the object. For example, FileInfo objects have a LastWriteTime property that stores the date and time that the file was most recently accessed. When working with objects, you can use their properties and methods in commands to take action and manage data. For a less abstract demonstration, I’ve created a custom class in PowerShell called Person. We’ll discuss classes in a later video. This Person class has three properties, and two methods. We can take a brief look at the script to create the class and see, that the Work method decreases energy, and the Rest method increases energy. If we pipe our $JohnDoe object to Get-Member, we can see those properties, and if we pipe it to select *, we can see that the Work and Rest functions decrease and increase the energy level. If you found this video helpful, and you would like to see more like it, be sure to give it a like and hit the subscribe button as well. Leave a comment if you have any questions or there’s something that you’d like me to cover in a future video. And as always, POSH ON!! -Wes TWITTER https://twitter.com/holtonwes BLOG http://wshwes.blogspot.com/ DOWNLOAD POWERSHELL FOR LINUX https://github.com/powershell/powershell/ SOURCE FOR TODAY'S SCRIPT https://gist.github.com/holtonwes/870310b3439efd34d95c9d1796026081
Views: 51 Wes Holton
Windows PowerShell and Microsoft SharePoint: Querying
 
05:54
This video is a sample from Skillsoft's video course catalog. Microsoft PowerShell and SharePoint allow administrators to retrieve property information from an object using PowerShell. In this video, David Dye demonstrates how to query properties using a Select statement within a PowerShell cmdlet, pipe variables, objects or Get statements to a Select statement, and pipe the results to a Sort. David Dye is a Microsoft Certified Trainer with over 10 years of experience in database administration, SQL programming, and computer forensics. In 2007, he received SQL Server Magazine’s Innovator of the Year runner up award. He regularly posts on the MSDN SQL Server forums where he also serves as a moderator, and is a contributor at SQLCLR.net. David also works as a software developer using VB.net and C#, and has worked extensively in SharePoint development. Skillsoft is a pioneer in the field of learning with a long history of innovation. Skillsoft provides cloud-based learning solutions for our customers worldwide, who range from global enterprises, government and education customers to mid-sized and small businesses. Learn more at http://www.skillsoft.com. https://www.linkedin.com/company/skillsoft http://www.twitter.com/skillsoft https://www.facebook.com/skillsoft
Views: 232 Skillsoft YouTube
4. Objects for the Admin
 
41:29
Getting Started with PowerShell 3.0: Objects for the Admin This modules reviews objects across the pipeline and how to get the information you need. Once you have the information it you will learn about sorting and selecting objects, custom properties and filtering data, and how to use methods when no cmdlet exists. •[00:17] - Object for the Admin •[15:19] - Objects simplify your life •[30:15] - PowerShell resources and forumns
Views: 3406 Jaqueline Vanek
Invetario Software Powershell | Windows
 
02:29
Comandos: Get-WmiObject -Class Win32_Product | Select-Object -Property Name Exportar a un archivo. Get-WmiObject -Class Win32_Product | Select-Object -Property Name (Signo mayor que) C:\Software.txt Redes Sociales: Facebook: https://www.facebook.com/Engicode Google+: https://plus.google.com/118091092465583810174/posts Twitter: https://twitter.com/EngiCode web: http://www.engicode.com
Views: 38 Engicode
How to look for Unexpected Shutdown/User Restarts/BSOD using powershell and get-eventlog
 
08:41
In this video, I will show you how to look for an unexpected shutdown, user restart and blue screen of death (BSOD) using powershell. Here are the commands used in the video 1. To query the event log at when event id 6008(unexpected reboot) occured. This will pull the first(from todays date back of the event. a. get-eventlog -logname system | where-object {$_.eventID -eq 6008} | select-object -property * | select-object -first 1 2. To query the event log at when event id 1074(user or service restarted) a. get-eventlog -logname system | where-object {$_.eventID -eq 1074} | select-object -property * | select-object -first 1 3. To query for a BSOD bug check error a.get-eventlog -logname system | where-object {$_.eventid -like '1001' -and $_.source -like 'bugcheck'} | select-object -property * | select-object -first 1
Views: 2989 Jason
Using PowerShell - Get all Members of a Group (With Name,Description,Office,Phone)
 
06:16
Using PowerShell - Get all Members of a Group (With Name,Description,Office,Phone) 1. Prepare - DC21 : Domain Controller (pns.vn) 2. Step by step : Get all Members of GHR group - DC21 : Get all Members of GHR group (With Name,Description,Office,Phone) + Start - Windows PowerShell, type : + Get-ADGroupMember GHR | Select Name # List member of GHR group + Get-ADUser -Identity HiepHR -Properties * # Check properties of HiepHR + Get-ADGroupMember GHR | Get-ADUser -Properties * | Select Name,Description,OfficePhone,Office # Get all Members of GHR group WHRh Name,Description,Office and Phone + Get-ADGroupMember GHR | Get-ADUser -Properties * | Select Name,Description,OfficePhone,Office | Out-gridview # Get all Members of GHR group With Name,Description,Office and Phone showed form grid ---------------------------******************** Youtube.com/c/MicrosoftLab ********************---------------------
Views: 135 microsoft lab
How to export user information to CSV from AD Active Directory Powershell
 
01:39
First: import-module ac* Second: get-aduser -filter * -Properties DisplayName, EmailAddress | Select DisplayName, EmailAddress | Export-csv C:\userswithemailaddress.csv Third: File name "userswithemailaddress.csv" is now located in C Drive. You can export to other directories, just change the path.
Views: 133238 letzmedodis
Get a Specific Method in Powershell
 
03:38
Sometimes the list of properties and methods is too big to sift through when you do a get-member on an object. Here I'll show you how to cut down the list to a more manageable size so you can find exactly what you're looking for.
Views: 75 MidnightDBA
Getting Started with Microsoft PowerShell: 04 The pipeline: deeper
 
42:37
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
PowerShell Hash Tables and Calculated Properties Basics
 
03:35
Recommended Reading Learn Windows PowerShell in a Month of Lunches - http://amzn.to/2spBc7u PowerShell in Depth 2nd Edition - http://amzn.to/2uJIOTf An Administrator's Guide: Powershell in Depth - http://amzn.to/2upRUFw Windows PowerShell Best Practices - http://amzn.to/2tIo0ys Windows PowerShell Cookbook: The Complete Guide to Scripting Microsoft's Command Shell - http://amzn.to/2spOSzo Website: www.signalwarrant.com Twitter: @signalwarrant Facebook: facebook.com/signalwarrant/ Google +: plus.google.com/113307879414407675617 YouTube Subscribe link: https://www.youtube.com/c/SignalWarrant1?sub_confirmation=1
Views: 754 SignalWarrant
Powershell Chapter 5: Arrays & HashTables (English)
 
15:31
Working with Arrays & HashTables (English)
Views: 2834 Yashpal Pundir
Getting Started with Microsoft PowerShell: 05 The PowerShell in the shell: remoting
 
54:12
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
German PowerShell Basis Video Tutorial Teil 6 von 21 Dateien, PowerShell Objekte, Get-Member
 
01:02:54
Der sechste Teil von einem 21 Teiligen PowerShell Basis Tutorial. In diesem Teil wird das Arbeiten mit PowerShell Objekten und den Cmdlets Get-Member, Select-Object vorgestellt : • PowerShell Klassen und Objekte, was sind Klassen was sind Objekte • Mit Get-Member PowerShell Objekte analysieren • Dokumentation zu Klassen (Objekten) im Microsoft Developer Network MSDN • Properties und Methoden, Eigenschaften und Aktionen von PowerShell Objekten • Das Cmdlet Select-Object, Properties auswählen, Daten über Ihren Namen auslesen Die Links und Tabellen und Demos zu diesem Video sind auf meinem Blog zu finden: http://www.admin-source.de/BlogDeu/866/powershell-objekte-und-die-cmdlets-get-member-und-select-object-basis-tutorial-teil-521 Ich werde in 21 ungefähr, 1 Stündigen, Videos die Grundlagen der Windows PowerShell 2.0 und 3.0 erklären. So dass man die PowerShell Grundlagen in eine 3 Tägigen Lehrgang verstanden hat. In dem Tutorial geht es um die Interaktive Nutzung der PowerShell NICHT um das Scripten! Das Scripting werde ich dann in einem weiteren PowerShell Lehrgang erklären.
Views: 6271 Peter Kriegel
Getting Started with Microsoft PowerShell: 01 The help system
 
54:38
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
Getting Started with Microsoft PowerShell: 06 Getting prepared for automation
 
25:14
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
Get-ADComputer a quick how to
 
14:32
We will be using PowerShell to show how to identify computers in your domain. This example will show how to find computer by operating system, service pack, if the computer is enabled, last logon date of the computer and the distinguished name. Get-ADComputer -SearchBase "DC=happysubnet,DC=local" -Filter * -Properties * | Select-Object -Property Name,OperatingSystem,OperatingSystemServicePack,Enabled,LastLogonDate,DistinguishedName | sort name | Export-Csv "c:\temp\computer.csv" -NoTypeInformation
Views: 3515 John Impallomeni
PowerShell Excel Spreadsheet Creation
 
21:25
Make sure to check out my PowerShell forum BlogPowerShell.com This tutorial will show you how to use Power Shell to pull information from AD on computer objects, then create a spreadsheet and color the enabled objects green and disabled objects red. #Creates Excel application $excel = New-Object -ComObject excel.application #Makes Excel Visable $excel.Application.Visible = $true $excel.DisplayAlerts = $false #Creates Excel workBook $book = $excel.Workbooks.Add() #Adds worksheets #gets the work sheet and Names it $sheet = $book.Worksheets.Item(1) $sheet.name = 'Computer Information' #Select a worksheet $sheet.Activate() | Out-Null #Create a row and set it to Row 1 $row = 1 #Create a Column Variable and set it to column 1 $column = 1 #Add the word Information and change the Font of the word $sheet.Cells.Item($row,$column) = "Computer Information" $sheet.Cells.Item($row,$column).Font.Name = "Cooper Black" $sheet.Cells.Item($row,$column).Font.Size = 21 $sheet.Cells.Item($row,$column).Font.ColorIndex = 16 $sheet.Cells.Item($row,$column).Interior.ColorIndex = 2 $sheet.Cells.Item($row,$column).HorizontalAlignment = -4108 $sheet.Cells.Item($row,$column).Font.Bold = $true #Merge the cells $range = $sheet.Range("A1:c1").Merge() | Out-Null #Move to the next row $row++ #Create Intial row so you can add borders later $initalRow = $row #create Headers for your sheet $sheet.Cells.Item($row,$column) = "Computer Name" $sheet.Cells.Item($row,$column).Font.Size = 16 $sheet.Cells.Item($row,$column).Font.ColorIndex = 1 $sheet.Cells.Item($row,$column).Interior.ColorIndex = 48 $sheet.Cells.Item($row,$column).Font.Bold = $true $column++ $sheet.Cells.Item($row,$column) = "LastLogonTimeStamp" $sheet.Cells.Item($row,$column).Font.Size = 16 $sheet.Cells.Item($row,$column).Font.ColorIndex = 1 $sheet.Cells.Item($row,$column).Interior.ColorIndex = 48 $sheet.Cells.Item($row,$column).Font.Bold = $true $column++ $sheet.Cells.Item($row,$column) = "Enabled" $sheet.Cells.Item($row,$column).Font.Size = 16 $sheet.Cells.Item($row,$column).Font.ColorIndex = 1 $sheet.Cells.Item($row,$column).Interior.ColorIndex = 48 $sheet.Cells.Item($row,$column).Font.Bold = $true #Now that the headers are done we go down a row and back to column 1 $row++ $column = 1 #command you want to use to get infromation $computers = Import-Csv C:\Users\mdaugherty\Desktop\Computers.csv foreach($i in $computers){ $info = Get-ADComputer -Identity $($i.name) -Properties name, enabled, PasswordLastSet #$TimeStamp = [datetime]::FromFileTime($info.lastlogontimestamp) $sheet.Cells.Item($row,$column) = $info.Name $column++ $sheet.Cells.Item($row,$column) = $info.PasswordLastSet $column++ Switch($info.Enabled){ True{$Enabled = "Enabled"; $sheet.Cells.Item($row,$column).Interior.ColorIndex = 4} False{$Enabled = "Disabled"; $sheet.Cells.Item($row,$column).Interior.ColorIndex = 3} } $sheet.Cells.Item($row,$column) = $Enabled $row++ $column = 1 } $row-- $dataRange = $sheet.Range(("A{0}" -f $initalRow),("c{0}" -f $row)) 7..12 | ForEach { $dataRange.Borders.Item($_).LineStyle = 1 $dataRange.Borders.Item($_).Weight = 2 } #Fits cells to size $UsedRange = $sheet.UsedRange $UsedRange.EntireColumn.autofit() | Out-Null
Views: 8517 Matthew Daugherty
Using PowerShell - Find all computers belong an OU
 
04:32
Using PowerShell - Find all computers belong an OU 1. Prepare - DC21 : Domain Controller (pns.vn) 2. Step by step : Using PowerShell find all computers belong an OU - DC21 : Find all computers belong HR OU + Windows PowerShell : + Get-ADComputer -Filter * -searchbase 'ou=HR,dc=pns,dc=vn' -Properties ipv4Address,OperatingSystem,LastLogonDate | Select-Object name,ipv4*,oper*,LastLogon* === Get OS Windows Server in domain + Get-ADComputer -Filter * -searchbase 'ou=HR,dc=pns,dc=vn' -Properties ipv4Address,OperatingSystem,LastLogonDate | Select-Object name,ipv4*,oper*,LastLogon* | Export-CSV C:\HR.csv === Export to .csv file
Views: 678 microsoft lab
Creare una lista dei programmi installati in Windows tramite Prompt e Powershell
 
02:31
IL SEGUENTE VIDEO E' A PURO SCOPO INFORMATIVO; NON MI RITENGO RESPONSABILE DI QUALSIASI INCONVENIENTE. DESCRIZIONE: Una delle numerose funzioni che possiamo effettuare attraverso il classico cmd e Powershell è creare una lista, in formato txt o csv, di tutti i programmi installati sul pc. Vedremo un passaggio nel prompt dei comandi, e tre nel powershell. Naturalmente si tratta di stringhe con codice simile, che riportano in conclusione al medesimo risultato. *date le limitazioni dei caratteri nelle descrizioni video su YouTube, il carattere in questione è il segno maggiore ---Per il Prompt dei comandi----------------- • Per una lista salvata nel file: wmic /output:D:\inostriprogrammi.txt product get name,version ---Per Powershell----------------- • Per una lista salvata nel file: Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize (parentesi angolare*) $env:userprofile\software_installati.txt • Per una lista visualizzata direttamente nella finestra: Get-WmiObject -Class Win32_Product | Select-Object -Property Name • Per una lista visualizzata in una nuova finestra: WmiObject -Class Win32_Product | Select-Object -Property Name, Vendor, InstallDate, Language, Version | Out-GridView LINKS: • Video precedente: http://zipansion.com/2SNyB • Segui la playlist dedicata: http://swifttopia.com/1a8L • Seguimi su Telegram: http://zipansion.com/H7nZ • Seguimi su Instagram: http://zipansion.com/H7kw HASHTAGS: #fabioguadagno #informatica #windows #software
PowerShell: Auto-Completion for .NET Object Constructors
 
09:32
Are you a frequent PowerShell script or module author? If so, you most likely are a frequent user of .NET libraries, and need to instantiate objects. Unfortunately, PowerShell does not offer the same quality of tooling as C# .NET in Visual Studio. Thankfully, there are add-ons that enable us to customize the PowerShell experience. During this video, I will walk you through the process of installing the TabExpansion++ PowerShell module from Jason Shirk (Microsoft), and then how to install a custom "argument completer" function that offers Intellisense for .NET object constructor signatures. Finally, we will use that custom argument completer in Visual Studio PowerShell Tools, authored by Adam Driscoll (PowerShell MVP). http://trevorsullivan.net http://twitter.com/pcgeek86
Views: 1271 Trevor Sullivan
Getting Started with Microsoft PowerShell: 08 Introducing scripting and toolmaking
 
50:03
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
How to use Windows Powershell in Windows 7/8.1/10
 
00:44
Here i show you how you can use Windows Powershell 1. Navigate the Windows Registry like the file system: cd hkcu: 2. Search recursively for a certain string within files: dir –r | select string "searchforthis" 3. Find the five processes using the most memory: ps | sort –p ws | select –last 5 4. Cycle a service (stop, and then restart it) like DHCP: Restart-Service DHCP 5. List all items within a folder: Get-ChildItem – Force 6. Recurse over a series of directories or folders: Get-ChildItem –Force c:\directory –Recurse 7. Remove all files within a directory without being prompted for each: Remove-Item C:\tobedeleted –Recurse 8. Restart the current computer: (Get-WmiObject -Class Win32_OperatingSystem -ComputerName .).Win32Shutdown(2) Collecting information 9. Get information about the make and model of a computer: Get-WmiObject -Class Win32_ComputerSystem 10. Get information about the BIOS of the current computer: Get-WmiObject -Class Win32_BIOS -ComputerName . 11. List installed hotfixes -- QFEs, or Windows Update files: Get-WmiObject -Class Win32_QuickFixEngineering -ComputerName . 12. Get the username of the person currently logged on to a computer: Get-WmiObject -Class Win32_ComputerSystem -Property UserName -ComputerName . 13. Find just the names of installed applications on the current computer: Get-WmiObject -Class Win32_Product -ComputerName . | Format-Wide -Column 1 14. Get IP addresses assigned to the current computer: Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Format-Table -Property IPAddress 15. Get a more detailed IP configuration report for the current machine: Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Select-Object -Property [a-z]* -ExcludeProperty IPX*,WINS* 16. Find network cards with DHCP enabled on the current computer: Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "DHCPEnabled=true" -ComputerName . 17. Enable DHCP on all network adapters on the current computer: Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=true -ComputerName . | ForEach-Object -Process {$_.EnableDHCP()} Software management 18. Install an MSI package on a remote computer: (Get-WMIObject -ComputerName TARGETMACHINE -List | Where-Object -FilterScript {$_.Name -eq "Win32_Product"}).Install(\\MACHINEWHEREMSIRESIDES\path\package.msi) 19. Upgrade an installed application with an MSI-based application upgrade package: (Get-WmiObject -Class Win32_Product -ComputerName . -Filter "Name='name_of_app_to_be_upgraded'").Upgrade(\\MACHINEWHEREMSIRESIDES\path\upgrade_package.msi) 20. Remove an MSI package from the current computer: (Get-WmiObject -Class Win32_Product -Filter "Name='product_to_remove'" -ComputerName . ).Uninstall() Machine management 21. Remotely shut down another machine after one minute: Start-Sleep 60; Restart-Computer –Force –ComputerName TARGETMACHINE 22. Add a printer: (New-Object -ComObject WScript.Network).AddWindowsPrinterConnection("\\printerserver\hplaser3") 23. Remove a printer: (New-Object -ComObject WScript.Network).RemovePrinterConnection("\\printerserver\hplaser3 ") 24. Enter into a remote PowerShell session -- you must have remote management enabled: enter-pssession TARGETMACHINE 25. Use the PowerShell invoke command to run a script on a remote servers: invoke-command -computername machine1, machine2 -filepath c:\Script\script.ps1 Bonus command To dismiss a process you can use the process ID or the process name. The -processname switch allows the use of wildcards. Here's how to stop the calculator: Stop-Process -processname calc*
Views: 27 Tech Tips Tv
Getting Started with Microsoft PowerShell: 07 Automation in scale: remoting
 
26:45
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
Powershell - Administrator Tasks 2 - Working with users, Group and Domains
 
17:11
#Section 0 - Domain Information Get-ADDomainController -Filter * | Format-table name,domain, forest,site, ipv4address, operatingsystem #Find the Domain controllers on your estate DC Get-ADDomainController -Filter {IsGlobalCatalog -eq $true} | Select-Object Name,ipv4address,isglobalcatalog, operatingsystem | FT -A #Find Global Cataglog Servers in Domain DC Get-ADDomainController -Filter {IsReadOnly -eq $true} #Find Readonly domain controllers if applicable to your infrastructure DC Get-ADComputer -Filter 'Name -like "RB*"' -Properties canonicalName, CN, created, IPv4Address, objectclass, OperatingSystem, OperatingSystemServicePack | FT -A #Find Domain computers like "Server1", displays useful info in table DC Get-ADForest | Select-Object -ExpandProperty ForestMode # Get AD Forest level DC Get-ADDomain | Select-Object -ExpandProperty domainmode #Get AD Domain level DC Get-ADReplicationConnection -Filter {AutoGenerated -eq $true} #Get replication details on domain DC $datecutoff = (Get-Date) Get-ADComputer -Filter {LastLogonTimestamp -lt $datecutoff} -Properties Name,LastLogonTimeStamp| Select Name,@{N='LastLogonTimeStamp'; E={[DateTime]::FromFileTime($_.LastLogonTimeStamp)}} #Set the $datecutoff and this will tell you last time a computer logged in DC #Section 1 - Users Get-ADUser -Filter * -Properties * | where { $_.whenCreated -ge $week } | select Name,whenCreated | Sort Name #Get Users created in the last Week, sorted by Name. USERS Get-ADUser -Filter * -Properties PasswordNeverExpires | where { $_.PasswordNeverExpires -eq $true } | select Name | sort Name #Get Users with passwords set to "Never Expire", sorted by Name USERS Get-ADUser -Filter "Enabled -eq '$false'" | Select Name, UserPrincipalName | Sort name #Get Users with INACTIVE accounts, Display Name and FQN, Sort by Name USERS Search-ADAccount -AccountDisabled -UsersOnly | Sort-Object Name | FT Name,ObjectClass -A #Get Users with DISABLED accounts, Display Name and FQN, Sort by Name USERS Search-ADAccount -LockedOut | Format-Table name,lastlogondate, lockedout, objectclass, passwordexpired, passwordneverexpires #Find Users with locked Accounts Search-ADAccount -AccountInactive -TimeSpan 01.00:00:00 -UsersOnly |Sort-Object | FT Name,ObjectClass -A #Find User Accounts not used for last 90 days USERS Get-ADuser -Filter {name -like "*"} -properties *|select @{N="Account";E={$_.name}},@{N="Name";E={$_.givenname}},@{N="LastName";E={$_.surname}},@{N="Mail";E={$_.mail}},@{N="AccountEnabled";E={$_.enabled}},@{N="MemberOf";E={(Get-ADPrincipalGroupMembership $_).name -join ("`r`n",",,,,,")}} | Sort-Object "Account" | FT -AutoSize #Get all users group membership. Sorts data and formats as a table. Use Export-CSV to output to CSV file. USERS Get-ADUser -Filter * -Properties LastLogonDate | ? { $_.LastLogonDate -eq $null } | Select name,samaccountname #Find users who have Never Logged on USERS #Section 2 - Querying Groups get-adgroup -filter * -Properties GroupCategory | Select name, groupcategory | FT -A # List all your Groups in active directory GROUPS Get-ADGroupMember -identity “Domain Admins” -recursive | select name #List all members of the Administrators Group (Edit Group name accordingly) GROUPS Get-ADPrincipalGroupMembership -identity Test.User21| Sort-object | FT -property name, samaccountname -AutoSize #Find which groups a user is a member of. (Edit username accoridngly) GROUPS #Section 4 - Editing Active Directory Disable-ADaccount -identity Turbogeek #Disable account Turbogeek USERS Enable-ADaccount -identity Turbogeek #Enable account Turbogeek USERS Clear-ADAccountExpiration -identity Turbogeek # Clear account expiry date USERS Set-ADAccountPassword -identity Turbogeek -reset -newpassword (Convertto-Securestring -asplaintext "Passw0rd123!" -Force) #This will change users password securely and encyrpt password transmissions - essential USERS Unlock-ADAccount -identity Turbogeek #Unlocks Turbogeek Account USERS
Getting Started with Microsoft PowerShell: 02 The pipeline: getting connected & extending the shell
 
27:13
Interested in learning PowerShell? This Microsoft PowerShell course is designed to teach busy IT professionals, admins, and help desk personnel about how to use PowerShell to improve management capabilities, automate redundant tasks, and manage the environment in scale. Through this PowerShell tutorial, you will learn how PowerShell works and how to make PowerShell work for you from experts Jeffrey Snover, the inventor of PowerShell, and Jason Helmick, Senior Technologist at Concentrated Technology. Create a valuable experience when you take this free Microsoft PowerShell course at Microsoft Virtual Academy. Don't fear the shell This module provides an overview of PowerShell, including how to install it, manage it, and customize it. Get familiar with the shell. The help system Learn about the Help system, including updatable Help, understanding Syntax, and discoverability. The pipeline: getting connected & extending the shell In this session you will discover what the pipeline is and what it does. It will go into details on exporting/ importing CSV, exporting/ importing XML, displaying information in a GUI, cmdlets. Additionally you will learn about extending the shell and how to find and add snap-ins, modules and commands. Objects for the Admin This module reviews objects across the pipeline and how to get the information you need. You will learn about sorting and selecting objects, custom properties and filtering data, and what methods to use when no cmdlet exists. The pipeline: deeper This section reviews how the pipeline really works and the four step solution - ByValue, ByPropertyName, how to customize properties that do not match, and the Parenthetical. The PowerShell in the shell: remoting This session provides an overview of remoting and how to enable it. You will also learn how one-to-one and one-to-many remoting works. Getting prepared for automation In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Automation in scale: remoting In this module, learn about automation and PowerShell security goals, execution policy, and variables. You’ll be introduced to to fun with quotes, getting and displaying input, and other output for scripts and automation. Introducing scripting and toolmaking This module provides an overview of the new ISE and how to make commands repeatable, how to add parameters to your script, and how to document your script. It shows you how to turn your script into a tool for others and store your tools in a module.
Powershell JSON tables
 
04:26
Working with json in PowerShell, this doesn't cover web request only values. These values can be imported or exported and later used with Database or Rest API for storage or actions.
Views: 68 Tips For IT Pros
Powershell Fundamentals (1)
 
01:27:16
In this hangout, we'll be discussing the ffw: Basics of the powershell syntax; PSSnapins and Modules; Powershell Operators; Working with Objects; The Pipeline;
Views: 380 David Okeyode
Windows 10 And 8.1 Change System Files And Folder User Permissions (ACL)
 
04:11
Windows 10 And 8.1 Change System Files And Folder User Permissions (ACL) Please also see: https://youtu.be/UvsiNiuxBPE We get a lot of requests regarding changing file and folder permissions. For System files the process is a little bit different but changes can still be done. We do not advise such changes as they can cause system problems, but in certain circumstances it is necessary. For more visit: http://www.windows10.ninja http://www.2012r2.com Transcript (machine generated so it contains errors) Hello, we get quite a few requests regarding the permissions on files and folders and things the right out and not changeable, especially this will happen generally when it's a folder that is either a system folder or folder or file that is owned by E. Shall we say another user or the trusted solar system et cetera okay, and let's take an example. As we got a request for the system32, which is in the windows directory. Okay, how we actually change the permissions because of really click change permissions. It just goes all grey and that's the end of okay. The simple answer is you action to change the owner 1st to yourself. If you don't know your username go over there and then type in power shell okay and then run it are those admin right click and then run as administrator and then that'll bring up this window and then just type exactly what we have dollar EMV: username okay ours as windows into like I am so basically, there. However, this has to be very, very temporarily done. Okay, so windows ninja check names to find us. Okay, now he was trusted installer before okay to launch do not, shall we say, keep it as windows ninja or your own username okay will cause a lot of problems because most of the system folders and files need to be in the original owner like. However, for whatever reason, it is a temporary change that needs to be done. Okay, click on that click apply. Okay, ill go through all of them. Okay, and when that completes, hopefully presented. Okay, that's fine. Click okay. Basically what it says is you need to close these windows down and then you can open up against okay, now if I want okay, I can change permissions, I can enable inheritance disable inheritance. It's all there. Okay, and let's for example, take the present solar and it is the permissions can be changed okay now. The key thing that you must remember okay. It's tidying up before you finish. Okay, you know. Wanna restart your computer with your username is owner on especially system32 folder again, props before you shut down. Okay, make sure you go back and for the thousand dollars NT space service and is\trusted five and click okay. Once again, replace owner on all the contents apply okay will take roughly by the same time as before okay saying you need to restart the bit okay, and if you see us back to the original way what's. Thanks for watching
Views: 131859 Windows Ninja
Get ADUser information using PowerShell
 
07:05
This video shows how to get AD user information from Active Directory using PowerShell.
Views: 28113 Tech World

Sample cover letters for employment gaps in resumes
Business writing service
What is a cover letter supposed to say
Vet cover letters examples
Iti mallepally hyderabad admissions essay