In this post I will talk how you can interact with registry,.NET Classes and COM Objects . We will start by talking about .NET Class and what exactly are those? .NET Framework is a framework that was developed by Microsoft and contains a large library available for many known programming languages. You can read more about .NET framework on Microsoft’s website http://msdn.microsoft.com/en-us/library/zw4w595w(v=vs.71).aspx. You can see the library of all the classes in .NET on http://msdn.microsoft.com/en-us/library/gg145045.aspx
Powershell was build also to interact with Windows registry and working with them is similar to working with files and folders. You will see that the same cmdlets used when working with files and folders are used when you interact with registry (Get-ChildItem, New-Item, Remove-Item etc.).
To locate the registry used the Get-PSDrive cmdlet:
HKEY_CURRENT_USER – Stores registry for the logged on user
To make things easier let’s create a new registry drive:
New-Items -path hkcu:\Software\_soft
Copy-Item -path hkcu:\Software\_soft -Destination hkcu:
Remove-Item -path hkcu:\Software\_soft
That’s it for this post, I don’t think there are many tutorials that will follow here under the Powershell basics tutorials, I the future we will start creating scripts in powershell or use powershell to interact with Active Directory for example. I wish all the best and stay tuned for more tutorials.