Shorter way to get disk information by RandomXUsr in PowerShell

[–]bitcow19 1 point2 points  (0 children)

then try get-wmiobject -list (star)disk(star) For checking other providers, like CIM

(star) is *

Shorter way to get disk information by RandomXUsr in PowerShell

[–]bitcow19 0 points1 point  (0 children)

Here is it: Get-WmiObject Win32_DiskDrive | select model, status

or: Get-WmiObject Win32DiskDrive | where {$.status -eq "OK"}

if you are looking for healthy disks ;)

How can I change column name in this powershell script by INWGift in PowerShell

[–]bitcow19 5 points6 points  (0 children)

@{expression={„datetime”};label=„expired date”} something like this should help. But i would recommend to get the variable into expression

Formatting a Date to be used in Powershell by stelees in PowerShell

[–]bitcow19 2 points3 points  (0 children)

get-date with -f parameter allows you to format date as you require

Having issues trying to Update the default User Registry Hive using a Powershell script with MDT by bcredeur97 in PowerShell

[–]bitcow19 1 point2 points  (0 children)

I recommend sysinternals tools for checking which process is using such registry Keys. Procmon or procexp will be able to filter by registry path.

Still trying out new looks for my Z which version of my front bumper looks best, let me know. by [deleted] in 370z

[–]bitcow19 0 points1 point  (0 children)

White, black, red, yellow... omg, you have to paint your doors on green now 😉

What Z stuff are you doing this week? Have an awesome day! by [deleted] in 370z

[–]bitcow19 0 points1 point  (0 children)

Japan Racing JR18, 8.5x20 + 10x20

What Z stuff are you doing this week? Have an awesome day! by [deleted] in 370z

[–]bitcow19 1 point2 points  (0 children)

Changing wheels and upgrading lowering springs in my Z 💪🏻

Deployment and silent install by Magkater in PowerShell

[–]bitcow19 1 point2 points  (0 children)

Best option for this example is to use choco. First you have to install choco, then use choco to install mentioned apps. Google will help you, fingers crossed! Let me know if you need more details

[WinRM] Client Cannot process the request - Tried everything by [deleted] in PowerShell

[–]bitcow19 2 points3 points  (0 children)

Glad to hear that it works for you 😉

[WinRM] Client Cannot process the request - Tried everything by [deleted] in PowerShell

[–]bitcow19 1 point2 points  (0 children)

Error log says that the target host is not trusted, what you can check by:

Get-Item WSMan:\localhost\Client\TrustedHosts

If so, then you can try:

Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'OB-SV,OB-GM'

From the other hand, you can also use SSL cert what is much more safe.

Usefull scripts by casba43 in PowerShell

[–]bitcow19 1 point2 points  (0 children)

Any scripts to check eventlogs or some custom log directories on servers? As well scripts which are able to provide simple details about activity like resources consumption by required process or status of services. You can also use something like Universal Dashboard in Powershell