Using PowerShell ISE is a free tutorial by Kevin Brown from Windows Server course
Link to this course(Special Discount):
https://www.udemy.com/course/windows-...
This is the best Windows Server Course
Course summary:
Install Windows Server 2016 as a Desktop Experience Server, Server Core and as a Nano Server
Manage users and computers using Active DIrectory
Configure computers using Group Policy
Manage DNS
Understand Powershell
Create and manage Virtual Machines using Hyper-V
Implement a DHCP infrastructure
Deploy operating systems using Windows Deployment Services (WDS)
Backup and Restore Windows Server 2016
Implement Data Deduplication to reduce storage
Monitor Windows Server performance using built-in tools
Install and manage Windows Software Update Service (WSUS)
English [Auto]
In this section we want to take a look at the partial integrated scripting engine or IESE. So I'm going to go to tools and server manager and I'm going to open partial IAC a few of the sections in this course have and will cover power shall I see. But to look at that again a few of the configurations this command pane on the right hand side it gives me a list of all the modules installed on my server. I'm going to scroll down the list until I find one named as inby share what if I want a shareholder if I want to look at a shared folder. This SMB share is what I can use for example if I want to view every shared folder on my machine I can type get Dasch SMB share. Now in this list this gives me a list of all the commands that start with get SMB type s so I could just tab through these or click SMB share in the list. And that's what I'll do. Click that. So I get SMB share this list every shared folder on my machine. Presently while on my machine I'm going to go to the root of the C-Drive and there is a shared folder or main sales data at the root of the C-Drive. Now that folder is not shared at the moment. If we go to the properties of that folder on the sharing tab. Notice it says network path not shared sales data not shared. When I also ran the get dash SMB share command you'll see the name of the shares here and you see the path the sales data is not in the path. Now I know the command I could run to actually create a shared folder but let's say you don't know the command but you know what you want to see. And the partial IAC I can go to the SMB share and this gives me every command when I can actually use within SNB Well if I want to create a new share new SMB shares in the list if I select show details I can specify the name of the share the Almelo name it sales and the path I specify the path of the shared folder itself. In my case that is see Colvin's slash sales data. Now there's a space between the words sales and data in the name of that folder. When you share folder it's actually a good idea not to include spaces of an underscore perhaps but I included a space there. So if I want to leave the space I have to wrap this in quotations. If not it's going to read up to the C sales and it's going to think that's where the name actually ends. Well I'm going to click insert when I click insert it bails out the exact power shell command that for me. So I can just hit enter and it's going to share the sales data folder on my C drive and the share name of the folder will be sales. So if someone were to browse the network they're going to see a folder named sales while I'm going to hit enter for that and it tells me that that is now shared. If I run this get Nash SMB share command again I'm going to do that by hitting the up arrow twice and it just recycles through the history of my previous commands when I run get dash SMB share. Notice sales is now in the list if I navigate back to the sales folder itself or sales data actually is the name of the folder if I go to the sharing tab notice it now says sales data is a shared folder. If I click on advance share you'll see the name I specified for the share. It's actually not uncommon in production networks for a folder to have a very detailed name. But the share name that users see may be a more basic or simplistic thing. Well an example of that will be my folder named sales data. I may want that presented to my users as just sales solves cancel those windows there. We just wanted to view that it actually was now a shared folder. If I wanted to build a script that would do this I could come here and play copy on the right hand side and the commands pain and it would take this syntax and it would copy it to the clipboard. I can then take that and paste it in Notepad. Now I would have a script save that notepad file with a dot p.s. one extension and I'll have a power shell script that I could run at any time. When I look at the list of c