Skip to content

ShellGeek

  • Home
  • PowerShell
  • PowerShell Tips
  • About Us
  • Contact

PowerShell Tips

Get last boot time of computer using PowerShell

by shelladmin

You can get the last boot time of the computer or remote computers using the PowerShell script. net stats, systeminfo, wmic (windows management instrumentation), and …

Read more

Get-ComputerInfo – Get Computer Multiple Properties

by shelladmin

The command to get computer multiple properties like manufacturer, BIOS info, etc.. is the Get-ComputerInfo cmdlet in PowerShell. Get-ComputerInfo cmdlet in PowerShell retrieves computer hardware …

Read more

Get Current User name in PowerShell

by shelladmin

To get current username in PowerShell, use whoami, GetCurrent() method of WindowsIdentity .Net class or Get-WMIObject cmdlet in PowerShell. In PowerShell, there are different ways …

Read more

CMD – Get Current UserName in Windows

by shelladmin

Use environment variable %username% to get the currently logged-in user name using cmd in the Windows system. Environment variables store the current user logged-in information. …

Read more

Get OS Version using PowerShell

by shelladmin

To get the operating system version using PowerShell, use the win32_operatingsystem class of the Get-WMIObject WMI object. It has a Version property that gets the …

Read more

How to Get Drivers Version Using PowerShell

by shelladmin

Use the Win32_PnPSignedDriver class of the Get-WmiObject WMI object to get the driver’s version using PowerShell. Refer to the below steps to get the driver …

Read more

Rename a computer in PowerShell

by shelladmin

Rename-Computer command in PowerShell renames the local computer or remote computer name. Rename-Computer cmdlet in PowerShell has a New-Name parameter to specify a new name …

Read more

PowerShell Convert String to Datetime

by shelladmin

Often while working on DateTime-based operations, it’s common problem that we face to convert string to DateTime in PowerShell and DateTime to string in PowerShell. …

Read more

PowerShell Multiline String

by shelladmin

While doing string operation in PowerShell, often we have to print multiline string for ease to read, read file content and convert multiline string to …

Read more

Startup Folder Path in Windows Server 2019,2016 or 2012

by shelladmin

Startup folder in Windows server 2012,2016 or 2019 or other Windows OS like Windows 10,11 contains the app which you want to run at startup. …

Read more

Older posts
Page1 Page2 … Page5 Next →

Recent Posts

  • Get BitLocker Status using PowerShell
  • Get BitLocker Recovery Key Using PowerShell
  • PowerShell Get Activation Key for Windows

Footer

  • Home
  • About Us
  • Contact
  • Privacy Policy
  • Terms and Conditions
Copyright © 2023 ShellGeek All rights reserved