• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Think PowerShell

PowerShell for IT Pros

  • About
    • Who I Am
    • Why I Blog
    • Privacy Policy
  • Resources
    • More PowerShell Sites
    • Post Series Index
  • Get Help
  • Show Search
Hide Search

Aaron Rothstein

Use Get-ComputerInfo to Replace msinfo32

Aaron Rothstein · Oct 26, 2016 · 6 Comments

Get-ComputerInfo in progress...
Get-ComputerInfo in progress…

The fifth post in my PowerShell Beginner series, “Daily Tasks, The PowerShell Way“. Use PowerShell’s Get-ComputerInfo to get the same information as you would from the msinfo32 System Summary. Replace multiple WMI queries with one cmdlet.

[Read more…] about Use Get-ComputerInfo to Replace msinfo32

Use PowerShell to Set Up a Hyper-V Lab

Aaron Rothstein · Oct 11, 2016 · 2 Comments

Hyper-V Manager desktop app
Hyper-V Manager desktop app

A Hyper-V lab for your PowerShell sandbox

When learning and playing with new technology like PowerShell, a lab environment is extremely beneficial. Some of the benefits are:

  • A lab environment can be torn down and and rebuilt as needed.
  • Components can be added to or removed from a lab as needed.
  • Actions that are considered risky to perform in a production environment can be performed safely in a contained lab.

Windows 10 Pro, Enterprise, and Education (as well as Windows 8 Pro and Enterprise) come with the same Hyper-V technology that runs in the datacenter, just waiting to be enabled. Here is how to get it installed and configured using PowerShell.

[Read more…] about Use PowerShell to Set Up a Hyper-V Lab

Try PowerShell “-Verbose” to Troubleshoot Errors

Aaron Rothstein · Oct 5, 2016 · 2 Comments

-Verbose example output.
-Verbose example output.

A real-world example of where using PowerShell “-Verbose” parameter is more efficient than a Google search.

“Couldn’t connect to the source mailbox.”

Recently I needed to export an Exchange 2010 mailbox to a PST file. I opened my Exchange Management Shell and ran New-MailboxExportRequest, only to get the following error:

[PS] C:\Windows\system32>New-MailboxExportRequest -Mailbox jdoe -FilePath \\FileServer1\Exports\jdoe.pst
Couldn't connect to the source mailbox.
    + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxExportRequest], RemotePermanentException
    + FullyQualifiedErrorId : C7D44FB7,Microsoft.Exchange.Management.RecipientTasks.NewMailboxExportRequest

Why couldn’t it connect to the source mailbox?

[Read more…] about Try PowerShell “-Verbose” to Troubleshoot Errors

Get Process Name and Owner User Name

Aaron Rothstein · Sep 20, 2016 · 2 Comments

Get-Process chrome -IncludeUserName
Get-Process chrome -IncludeUserName

Two ways of returning the owner User Name of a running process using PowerShell.

[Read more…] about Get Process Name and Owner User Name

PowerShell Script to Empty Recycle Bin at Logoff

Aaron Rothstein · Jul 6, 2016 · 3 Comments

Windows Recycle Bin
Windows Recycle Bin

Automate the emptying of the Windows Recycle Bin with this simple PowerShell script and Group Policy.

Redirected Folders = Recycle Bin Storage on File Server

In a lot of business environments, we redirect user folders like Documents, Desktops, Favorites, and more to a home directory on a network share, often mapped to its own drive letter. The folders are then synced to the user’s workstation to be available offline. This gives the user the ability to work on the files when disconnected, but still allows IT to have the files stored on the file servers and backed up.

[Read more…] about PowerShell Script to Empty Recycle Bin at Logoff

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 3
  • Go to page 4
  • Go to page 5
  • Go to page 6
  • Go to page 7
  • Go to Next Page »

Primary Sidebar

Aaron

Follow

Copyright © 2023 · Monochrome Pro on Genesis Framework · WordPress · Log in