Get friendly name powershell
While working on adding a new feature in the certificate request DSC resource, I came across this handy little trick: You can change the Friendly Name of a certificate using PowerShell. All you need to do is identify the certificate using Get-ChildItem and then assign the new FriendlyName to it. Sometimes PowerShell still surprises me at how easy it can make things. You are commenting using your WordPress. You are commenting using your Google account.SEE VIDEO BY TOPIC: Get ADUser information using PowerShell
SEE VIDEO BY TOPIC: Using PowerShell - Find User Display Name by User Logon NameContent:
Recently, the Windows Surface Laptop 2 shipped with a faulty device driver that suffered from a massive memory leak that was causing widespread bluescreens and crashes. As Microsoft has yet to patch the memory leak, we needed a workaround… quickly. Unfortunately for us, we had multiple remote endpoints and it simply was not feasible to touch every single computer that was affected by the issue.
Thankfully, Windows Powershell was up for the task with its nifty disable-pnpdevice cmdlet! If you find yourself in a similar situation and you need to disable a hardware device on hundreds, or possibly thousands, of remote endpoints, check out the above video for doing so using Powershell. I hope you find it helpful and are able to incorporate the cmdlets into your existing script libraries!
If you prefer a written tutorial, the quick steps are below. Thanks and leave any questions in the comments! A status of OK indicates the device is enabled. The class, friendly name, and truncated InstanceId is also displayed.
This command returns the friendlyname and instanceid without truncating the values. You can also check manually with the device manager. If needed, you can re-enable the device by using enable-pnpdevice -instanceid as follows:. You can then confirm it is enabled by using get-pnpdevice one more time.
Categories Contact About.
Updating the FriendlyName property of a certificate using PowerShell
The values returned are common to all devices. Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.
Designed for anyone who wants to learn Windows PowerShell. Inside, you'll find comprehensive overviews, step-by-step procedures, frequently used tasks, documented examples, and much more. One of the goals is to keep the content so concise that the training kit remains compact and easy to navigate while at the same time ensuring that this training kit is packed with as much information as possible--making it a valuable resource. Techniques for working at the prompt and using scripts are covered extensively.
How to Disable Hardware Devices Using Windows Powershell (Video)
Seems I was just too blind to notice it earlier. Thanks to Michel De Rooij for pointing this out. As part of that process you had to configure the Office Web Apps farm with the name of the certificate that the farm would use. According to an article I found , certutil. Although CertUtil. Unsurprisingly, the solutions with PowerShell is pretty easy! Using the Set-Location cmdlet, you can change your active namespace to the certificate store:.
Gets a certificate from a file on the file system or from a Windows certificate store by thumbprint or friendly name. Certificates can be files or they can be in a Windows certificate store. This function returns an XCertificate2 object for a script that's a file on the file system or a cert stored in Microsoft's certificate store.
how to get friendly names for machines
In just 24 lessons of one hour or less, Sams Teach Yourself Windows PowerShell in 24 Hours helps you streamline all facets of Windows administration, supercharging your effectiveness as an IT professional or power user. Step-by-step instructions carefully walk you through the most common PowerShell scripting tasks. Tim became acquainted with information technology in when his dad bought the family a Timex Sinclair home computer and he taught himself BASIC programming.
Subscribe to RSS
Make use of hands-on recipes for many tasks that are typically encountered in both the on-premises as well as the cloud world. This book will follow a recipe-based approach and start off with an introduction to the fundamentals of PowerShell, and explaining how to install and run it through simple examples. Next, you will learn how to use PowerShell to access and manipulate data and how to work with different streams as well. You will also explore the object model which will help with regard to PowerShell function deployment. Going forward, you will get familiar with the pipeline in its different use cases. The next set of chapters will deal with the different ways of accessing data in PowerShell. The last set of chapters will help you understand the management of a private and public cloud with PowerShell Core.
Recently, the Windows Surface Laptop 2 shipped with a faulty device driver that suffered from a massive memory leak that was causing widespread bluescreens and crashes. As Microsoft has yet to patch the memory leak, we needed a workaround… quickly. Unfortunately for us, we had multiple remote endpoints and it simply was not feasible to touch every single computer that was affected by the issue. Thankfully, Windows Powershell was up for the task with its nifty disable-pnpdevice cmdlet! If you find yourself in a similar situation and you need to disable a hardware device on hundreds, or possibly thousands, of remote endpoints, check out the above video for doing so using Powershell.
How to find certificates by thumbprint or name with powershell
The Set-PhysicalDisk cmdlet sets attributes on a specific physical disk in a storage pool, other than the primordial pool when using Storage Spaces. When using the Windows Storage subsystem, this cmdlet only works on physical disks that have been added to a storage pool. Runs the cmdlet as a background job.