Get-Service locks your services

Get-Service will lock your service database till you close the session. If you just need the services information it is better to select the particular properties to prevent the service database from being locked. The right way to get the services information is

Get-Service | select Name,  Status,  DisplayName

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s