<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uncategorized Archives - VirtJunkie</title>
	<atom:link href="/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>/category/uncategorized/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Sat, 03 Aug 2019 13:38:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>

<image>
	<url>/wp-content/uploads/2020/04/cropped-vj4-150x150.png</url>
	<title>Uncategorized Archives - VirtJunkie</title>
	<link>/category/uncategorized/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>VCSA 6.7: Error trying to join AD, error code [40024]</title>
		<link>/2019/08/03/vcsa-6-7-error-trying-to-join-ad-error-code-40024/</link>
					<comments>/2019/08/03/vcsa-6-7-error-trying-to-join-ad-error-code-40024/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sat, 03 Aug 2019 13:38:00 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">http://www.virtjunkie.com/?p=786</guid>

					<description><![CDATA[<p>Tried joining a VCSA to AD today and received the error message: Couldn&#8217;t find anything on google, so connected to the VCSA via SSH, tried a simple ping test to see if DNS was the issue.. no dice. Then tried adding the VCSA to AD manually.Heavy PalmfaceLooks like the administrator password is expired. So.. I [&#8230;]</p>
<p>The post <a href="/2019/08/03/vcsa-6-7-error-trying-to-join-ad-error-code-40024/">VCSA 6.7: Error trying to join AD, error code [40024]</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Tried joining a VCSA to AD today and received the error message:</p>



<pre class="urvanov-syntax-highlighter-plain-tag">Error: Idm client exception: Error trying to join AD, error code &amp;#91;40024], user &amp;#91;administrator], domain &amp;#91;home.lab], orgUnit &amp;#91;]</pre>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="578" height="141" src="https://www.virtjunkie.com/wp-content/uploads/2019/08/image.png" alt="" class="wp-image-787" srcset="/wp-content/uploads/2019/08/image.png 578w, /wp-content/uploads/2019/08/image-300x73.png 300w" sizes="(max-width: 578px) 100vw, 578px" /></figure>



<span id="more-786"></span>



<p>Couldn&#8217;t find anything on google, so connected to the VCSA via SSH, tried a simple ping test to see if DNS was the issue.. no dice. Then tried adding the VCSA to AD manually.<br><strong>Heavy Palmface</strong><br>Looks like the administrator password is expired. </p>



<figure class="wp-block-image"><img decoding="async" width="705" height="598" src="https://www.virtjunkie.com/wp-content/uploads/2019/08/image-2.png" alt="" class="wp-image-789" srcset="/wp-content/uploads/2019/08/image-2.png 705w, /wp-content/uploads/2019/08/image-2-300x254.png 300w" sizes="(max-width: 705px) 100vw, 705px" /></figure>



<p>So.. I logged into the DC, and as we expected,</p>



<figure class="wp-block-image"><img decoding="async" width="632" height="180" src="https://www.virtjunkie.com/wp-content/uploads/2019/08/image-1.png" alt="" class="wp-image-788" srcset="/wp-content/uploads/2019/08/image-1.png 632w, /wp-content/uploads/2019/08/image-1-300x85.png 300w" sizes="(max-width: 632px) 100vw, 632px" /></figure>



<p>So, as it turns out, if AD is healthy, this isn&#8217;t an issue. Who would have known&#8230;</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="698" height="302" src="https://www.virtjunkie.com/wp-content/uploads/2019/08/image-3.png" alt="" class="wp-image-790" srcset="/wp-content/uploads/2019/08/image-3.png 698w, /wp-content/uploads/2019/08/image-3-300x130.png 300w" sizes="(max-width: 698px) 100vw, 698px" /></figure>
<p>The post <a href="/2019/08/03/vcsa-6-7-error-trying-to-join-ad-error-code-40024/">VCSA 6.7: Error trying to join AD, error code [40024]</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2019/08/03/vcsa-6-7-error-trying-to-join-ad-error-code-40024/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Ubuntu &#8211; Add Keyboard Shortcut for line in</title>
		<link>/2018/12/12/ubuntu-mute-line-in-using-keyboard/</link>
					<comments>/2018/12/12/ubuntu-mute-line-in-using-keyboard/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Wed, 12 Dec 2018 22:30:38 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://www.virtjunkie.com/?p=697</guid>

					<description><![CDATA[<p>I use the line in connection on my desktop to route audio for sources other than my PC to the speaker system attached to my computer. For whatever reason, this is still annoyingly cumbersome, even in 2018. For years, I&#8217;ve done this by using Alsamixer, a command line mixer. This is fine enough, I guess, [&#8230;]</p>
<p>The post <a href="/2018/12/12/ubuntu-mute-line-in-using-keyboard/">Ubuntu &#8211; Add Keyboard Shortcut for line in</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I use the line in connection on my desktop to route audio for sources other than my PC to the speaker system attached to my computer. For whatever reason, this is still annoyingly cumbersome, even in 2018. For years, I&#8217;ve done this by using Alsamixer, a command line mixer. This is fine enough, I guess, but I wanted something a bit more intuitive. The finished result shows the screen popup below, and is triggered by a key combination that executes a script.</p>



<span id="more-697"></span>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="541" height="119" src="https://new.virtjunkie.com/wp-content/uploads/2018/12/image-1.png" alt="" class="wp-image-701" srcset="/wp-content/uploads/2018/12/image-1.png 541w, /wp-content/uploads/2018/12/image-1-300x66.png 300w" sizes="(max-width: 541px) 100vw, 541px" /><figcaption>After</figcaption></figure>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="699" height="419" src="https://new.virtjunkie.com/wp-content/uploads/2018/12/image.png" alt="" class="wp-image-699" srcset="/wp-content/uploads/2018/12/image.png 699w, /wp-content/uploads/2018/12/image-300x180.png 300w" sizes="(max-width: 699px) 100vw, 699px" /><figcaption>Before</figcaption></figure>



<p>To duplicate this on your system, you&#8217;ll need a <a href="https://github.com/jonhowe/Virtjunkie.com/blob/master/toggleLineIn.sh">copy of the script from my github.</a>&nbsp;Once you have it, open Settings, Devices, and then select Keyboard:</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="242" height="136" src="https://new.virtjunkie.com/wp-content/uploads/2018/12/image-2.png" alt="" class="wp-image-703"/></figure>



<p>Scroll all the way down to the bottom of the keyboard shortcuts, and select&nbsp; the &#8220;+&#8221; to create a new shortcut.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="680" height="171" src="https://new.virtjunkie.com/wp-content/uploads/2018/12/image-3.png" alt="" class="wp-image-704" srcset="/wp-content/uploads/2018/12/image-3.png 680w, /wp-content/uploads/2018/12/image-3-300x75.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>As you can see, I&#8217;ve already got a couple of custom keyboard shortcuts there. I&#8217;ll show you how to create one to mute your line in input using the keyboard. Once you click the &#8220;+&#8221;, the screen below will appear. You&#8217;ll want to select your own keyboard shortcut, and ensure you&#8217;re using the correct path to the script.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="465" height="217" src="https://new.virtjunkie.com/wp-content/uploads/2018/12/image-4.png" alt="" class="wp-image-705" srcset="/wp-content/uploads/2018/12/image-4.png 465w, /wp-content/uploads/2018/12/image-4-300x140.png 300w" sizes="(max-width: 465px) 100vw, 465px" /></figure>



<p>Below is a copy of the script:</p>



<pre class="urvanov-syntax-highlighter-plain-tag">#!/bin/bash
#http://www.virtjunkie.com/ubuntu---mute-line-in-using-keyboard/
#https://github.com/jonhowe/Virtjunkie.com/blob/master/toggleLineIn.sh

OUT=$(amixer sset Line toggle)
RESULT=$(echo $OUT | grep &quot;Left:&quot; | cut -d'[' -f4 | cut -d ']' -f 1)
#notify-send pulls icons from /usr/share/icons/gnome/32x32
notify-send &quot;Toggling Line In&quot; &quot;Line in is now: $RESULT&quot; -i audio-volume-low</pre>



<p>Note 1:</p>



<p>In order for this to work, you may need to ensure that Loopback is enabled. The easiest way to do this is to install the alsa-utils package, and run Alsamixer to enable it.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="738" height="473" src="https://www.virtjunkie.com/wp-content/uploads/2018/12/image-5.png" alt="" class="wp-image-746" srcset="/wp-content/uploads/2018/12/image-5.png 738w, /wp-content/uploads/2018/12/image-5-300x192.png 300w" sizes="(max-width: 738px) 100vw, 738px" /></figure>
<p>The post <a href="/2018/12/12/ubuntu-mute-line-in-using-keyboard/">Ubuntu &#8211; Add Keyboard Shortcut for line in</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2018/12/12/ubuntu-mute-line-in-using-keyboard/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VMware Horizon Workspace – Part 3 – Configure VMware vPostgres External Database</title>
		<link>/2013/11/23/vmware-horizon-workspace-part-3-configure-vmware-vpostgres-external-database/</link>
					<comments>/2013/11/23/vmware-horizon-workspace-part-3-configure-vmware-vpostgres-external-database/#comments</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sat, 23 Nov 2013 05:09:43 +0000</pubDate>
				<category><![CDATA[Horizon Workspace]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=549</guid>

					<description><![CDATA[<p>In this post I&#8217;ll show in detail how to configure Horizon Workspace to use an external database during the install process.  This post is part of a series showing how to configure VMware Horizon Workspace in a production environment. You&#8217;ll need an external database to have multiple service virtual appliances, so this should be a [&#8230;]</p>
<p>The post <a href="/2013/11/23/vmware-horizon-workspace-part-3-configure-vmware-vpostgres-external-database/">VMware Horizon Workspace – Part 3 – Configure VMware vPostgres External Database</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In this post I&#8217;ll show in detail how to configure Horizon Workspace to use an external database during the install process.  This post is <a href="http://45.63.13.214/?p=522" target="_blank" rel="noopener">part of a series</a> showing how to <a title="VMware Horizon Workspace – Part 0 – Intro" href="http://45.63.13.214/?p=522" target="_blank" rel="noopener">configure VMware Horizon Workspace</a> in a production environment. You&#8217;ll need an external database to have multiple service virtual appliances, so this should be a requirement for your environment.  This process was suprisingly not trivial for me, however it could have something to do with the fact that I haven&#8217;t used postgres sql in the past.</p>
<p><span id="more-549"></span></p>
<p>Some assumptions and prerequisites:</p>
<ol>
<li>You have horizon workspace 1.5.1 (at least) downloaded, deployed to your infrastructure successfully, and you&#8217;re ready to go through the web configuration.</li>
<li>You have <a href="http://www.vmware.com/products/vfabric-postgres/" target="_blank" rel="noopener">VMware vFabric Postgres</a> downloaded and deployed to your infrastructure successfully, with no configuration added.</li>
</ol>
<ol>
<li>Proceed through the web configuration until you get to step 2a, and select External Database. Stop here&#8230;</li>
<li>Prepare your new external database
<ol>
<li>SSH to the postgres server (I&#8217;ll assume the server is named hzn-db.test.in)</li>
<li>Make changes to the postgres config: /var/vmware/vpostgres/9.2/pgdata/postgresql.conf.auto
<ol>
<li>Max_connections = 300 (default is 100)</li>
<li>Search_path = &#8216;saas&#8217; (no value by default)</li>
</ol>
</li>
<li>You&#8217;ll have to prepare the postgre sql schema. Run these commands to configure it. VMware graciously has not provided the default password for the postgres user in any of their documentation, even after I opened a SR requesting the password. For your reference, it is &#8220;H0rizon!&#8221;. &#8220;myPassword&#8221; below should be replaced with the password you want to use for your horizon workspace postgres user.
<ol>
<li>/opt/vmware/vpostgres/current/bin/psql -U postgres -W</li>
<li>DROP SCHEMA IF EXISTS saas CASCADE;</li>
<li>CREATE SCHEMA saas;</li>
<li>CREATE USER horizon WITH PASSWORD &#8216;<strong>myPassword</strong>&#8216;;</li>
<li>ALTER ROLE horizon SET search_path TO saas;</li>
<li>CREATE EXTENSION citext WITH SCHEMA saas;</li>
<li>CTRL+D</li>
</ol>
</li>
<li>SSH to your service-va, and run the following command
<ol>
<li>/usr/local/horizon/bin/setupExternalDb.sh</li>
<li>The wizard will ask you for a postgres admin user (postgres), and the horizon user (horizon). The password for the postgres user, unless you change it is &#8220;H0rizon!&#8221;, and the password for the horizon user is set in step 3.</li>
</ol>
</li>
</ol>
</li>
</ol>
<p>This should work &#8211; if you run into any issues, please comment!</p>
<p>The post <a href="/2013/11/23/vmware-horizon-workspace-part-3-configure-vmware-vpostgres-external-database/">VMware Horizon Workspace – Part 3 – Configure VMware vPostgres External Database</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/11/23/vmware-horizon-workspace-part-3-configure-vmware-vpostgres-external-database/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Update: Exchange 2010 – Bulk Mailbox Migration In Batches (The Right Way)</title>
		<link>/2013/09/04/update-exchange-2010-bulk-mailbox-migration-in-batches-the-right-way/</link>
					<comments>/2013/09/04/update-exchange-2010-bulk-mailbox-migration-in-batches-the-right-way/#comments</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Wed, 04 Sep 2013 04:50:49 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=539</guid>

					<description><![CDATA[<p>In June I added a post on how to migrate exchange 2010 mailboxes to an Exchange 2010 DAG in a controlled fashion. Since then I&#8217;ve completely restructured the script and made it an all-in-one solution. The first section of the script contains variables that need to be set. [crayon-667f6e75c2e2e528273143/]</p>
<p>The post <a href="/2013/09/04/update-exchange-2010-bulk-mailbox-migration-in-batches-the-right-way/">Update: Exchange 2010 – Bulk Mailbox Migration In Batches (The Right Way)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In June I added a<a title="Exchange 2010 – Bulk Mailbox Migration In Batches" href="http://45.63.13.214/?p=483"> post on how to</a> migrate exchange 2010 mailboxes to an Exchange 2010 DAG in a controlled fashion. Since then I&#8217;ve completely restructured the script and made it an all-in-one solution.</p>
<p><span id="more-539"></span></p>
<p>The first section of the script contains variables that need to be set.</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">#region ========================================================================
# Created on:	9/3/2013 8:01 PM
# Created by:	Jon Howe
# URL: http://45.63.13.214/?p=539
# Filename:		Set-MailboxMoveActive-v2.ps1
#endregion ========================================================================

#region Set Variables
#Amount of mailboxes to migrate at a time
$BatchSize = 5
#Mailbox DB to pull mailboxes from
$sourceMailboxDatabase = &quot;Mailbox Database 3&quot;
#Default amount of time to sleep when we hit a roadblock
$sleepMinutes = 20
#Time to start migrating mailboxes
$startTime = Get-Date -Hour 23 -Minute 00 -Second 00
#Time to stop migrating mailboxes
$stopTime = Get-Date -Hour 05 -Minute 00 -Second 00
#Array containing all of your DAG servers (used to check disk space)
$DAG_Servers = @(&quot;EXCH-DAG-A&quot;,&quot;EXCH-DAG-B&quot;)
#OS label for the DAG DAGA/Log drives on your DAG servers.
$OS_Label_Prefix = &quot;DAGDB*&quot;
#Threshold for stopping the migration (in bytes)
$MinOSDriveFreeBytes = 16106127360 #32212254720 is 30GB, 16106127360 is 15GB
#endregion Set Variables

$PS_Is_Awesome = $TRUE #!!!
While ($PS_IS_Awesome) #region Main Loop
{
#region Check for Business Hours
if ( (Get-Date) -gt $stopTime -and (Get-Date) -lt $startTime ) #region In Business Hours
{
	Write-Host &quot;We're in business hours. Sleeping...&quot; -ForegroundColor 'DarkCyan'
	Start-Sleep -Seconds ($sleepMinutes * 60)
} #endregion In Business Hours
else #region Out of Business Hours
{
	#region Check to make sure drive space isn't too low
	foreach($mbx in $DAG_Servers)
	{
		$space = `
		get-WmiObject win32_volume -ComputerName $mbx |
		select driveletter,label,freespace,capacity |
		where {$_.label -like $OS_Label_Prefix}

		foreach($drive in $space)
		{
			$human_freespace = [math]::Round($drive.freespace / (1024*1024*1024),1)

			if ($drive.freespace -lt $MinOSDriveFreeBytes)
			{
				Write-Host &quot;Drive&quot; $drive.driveletter &quot;on server $mbx with label&quot; $drive.label &quot;is under 30 GB. It's currently at&quot; $human_freespace &quot;GB...&quot;
				write-host &quot;Sleeping for $sleepMinutes minutes.&quot; -ForegroundColor 'DarkCyan'
				for ($i = 1; $i -le ($sleepMinutes * 60); $i++)
				{
					Write-Progress -Activity 'Drive Space is too low. Waiting until it frees up.' -Status &quot;We've waited $i Seconds&quot; -SecondsRemaining (($sleepMinutes * 60)-$i)
					sleep -Seconds 1
				}
			}
		}
	}
	#endregion Check to make sure drive space isn't too low

	#region Check to see if a move-request is currently occurring
	if (Get-MoveRequest | Where-Object { $_.Status -eq &quot;Queued&quot; -or $_.Status -eq &quot;InProgress&quot; -or $_.Status -eq &quot;CompletionInProgress&quot;})
	{
		Write-Host &quot;There are move requests currently processing.  Sleeping for $sleepMinutes minutes&quot; -ForegroundColor 'DarkCyan'

		for ($i = 1; $i -le ($sleepMinutes * 60); $i++)
		{
			Write-Progress -Activity &quot;Can't begin if move requests are already running. Waiting for them to complete&quot; -Status &quot;We've waited $i Seconds&quot; -SecondsRemaining (($sleepMinutes * 60)-$i)
			sleep -Seconds 1
		}
		continue
	}
	#endregion Check to see if a move-request is currently occurring

	#region General information display and information gathering.
	Write-Host &quot;We're out of business hours, drive space looks good, and there are no batches running&quot; -ForegroundColor 'Yellow'
	write-host &quot;Let's submit one!&quot; -ForegroundColor 'Yellow'

	# Get Mailbox Sizes
	Write-Host &quot;Getting Mailbox Sizes&quot; -ForegroundColor 'Blue'
	$allmbx = Get-Mailbox -database $sourceMailboxDatabase |
   		Get-MailboxStatistics |
   		Sort-Object TotalItemSize |
   		Select-Object DisplayName,TotalItemSize

	#endregion General information display and information gathering.

	# Submit move requests to best datatabase
	Write-Host &quot;Submitting move requests now&quot; -ForegroundColor 'Blue'

	$batch = 1
	for ($i=1;$i -le 5;$i++) #region For Loop
	{
		#region Determine the best database to send mailboxes to
		if ($i % $BatchSize -eq 0)
    	{
			# Find best Database
			$result = Get-MailboxDatabase -identity &quot;DAG*&quot; -Status |
 				Select-Object name,DatabaseSize,AvailableNewMailboxSpace |
        		Sort-Object -Property DatabaseSize

			$bestDatabase = $result[0].name

			$batch++
		}
		#endregion Determine the best database to send mailboxes to

	#Submit the mailbox move requests
	Write-Host &quot;New Move -&quot; $allmbx[$i].DisplayName &quot;to DB&quot; $bestDatabase  -ForegroundColor 'DarkGreen'
	New-MoveRequest -TargetDatabase $bestDatabase -Identity $allmbx[$i].DisplayName | out-null

	} #endregion For Loop

	Write-Host &quot;Batches submitted. Sleeping for $sleepMinutes minutes&quot; -ForegroundColor 'DarkCyan'
	for ($i = 1; $i -le ($sleepMinutes * 60); $i++)
	{
		Write-Progress -Activity 'Waiting while move requests complete' -Status &quot;We've waited $i Seconds&quot; -SecondsRemaining (($sleepMinutes * 60)-$i)
		sleep -Seconds 1
	}

} #endregion Out of Business Hours
#endregion Check for Business Hours
} #endregion Main Loop</pre><p></p>
<p>The post <a href="/2013/09/04/update-exchange-2010-bulk-mailbox-migration-in-batches-the-right-way/">Update: Exchange 2010 – Bulk Mailbox Migration In Batches (The Right Way)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/09/04/update-exchange-2010-bulk-mailbox-migration-in-batches-the-right-way/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Disable Multiple Services using Powershell</title>
		<link>/2013/04/21/disable-multiple-services-using-powershell/</link>
					<comments>/2013/04/21/disable-multiple-services-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sun, 21 Apr 2013 21:00:53 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=446</guid>

					<description><![CDATA[<p>Over the past few months I&#8217;ve been doing a lot of work that&#8217;s required me to get into the Services control panel on Windows Server.  While it&#8217;s fairly easy to get in and change the status of one service using the windows services control panel (WIN+R, Services.msc), it gets annoying when you need to do [&#8230;]</p>
<p>The post <a href="/2013/04/21/disable-multiple-services-using-powershell/">Disable Multiple Services using Powershell</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Over the past few months I&#8217;ve been doing a lot of work that&#8217;s required me to get into the Services control panel on Windows Server.  While it&#8217;s fairly easy to get in and change the status of one service using the windows services control panel (WIN+R, Services.msc), it gets annoying when you need to do this multiple times, and even worse if you need to take action on multiple services.</p>
<p>Fortunately, powershell gives us the ability to do this very easily.</p>
<p>Here&#8217;s how:</p>
<p><span id="more-446"></span></p>
<p>The command below is the building block for everything else you want to do with a service. Since vendors don&#8217;t provide a standard prefix with their service names (ahem, vmware &#8211; or in this case, HP), you need to use the -DisplayName parameter of this commandlet. You can use the asterisk as a wildcard.</p><pre class="urvanov-syntax-highlighter-plain-tag">Get-Service -DisplayName &quot;HP*</pre><p></p>
<p><img loading="lazy" decoding="async" class="size-full wp-image-447 alignnone" alt="get-service -displayname" src="https://new.virtjunkie.com/wp-content/uploads/2013/04/get-services.png" width="581" height="212" srcset="/wp-content/uploads/2013/04/get-services.png 581w, /wp-content/uploads/2013/04/get-services-300x109.png 300w" sizes="(max-width: 581px) 100vw, 581px" /></p>
<p>Once you have a set of services, you can pipe them to another commandlet, and take action, such as stopping the service, or disabling automatic startup.</p>
<p>Run this command to stop the services.</p><pre class="urvanov-syntax-highlighter-plain-tag">Get-Service -DisplayName &quot;HP* | Stop-Service</pre><p>Run the command below in order to disable these services from starting automatically</p><pre class="urvanov-syntax-highlighter-plain-tag">Get-Service -DisplayName &quot;HP* | Set-Service -StartupType &quot;Disabled&quot;</pre><p></p>
<p>The post <a href="/2013/04/21/disable-multiple-services-using-powershell/">Disable Multiple Services using Powershell</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/04/21/disable-multiple-services-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
