And more to the point, I want to set the background for all users, even those 
that have not ever logged on yet.

Regards,

Greg

Dr Greg Low

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax
SQL Down Under | Web: www.sqldownunder.com<http://www.sqldownunder.com/>

From: Greg Low (罗格雷格博士)
Sent: Sunday, 17 January 2016 2:45 PM
To: ozDotNet <ozdotnet@ozdotnet.com>
Subject: RE: Any Powershell gurus?

Awesome Tony.

While on the subject of Powershell, anyone have an idea on how to set the 
desktop background on one of the Azure VMs built of a Windows Server 2012 R2 
Server template?

I managed to kill of the BGInfo extension prior to the VM being created, but 
still no matter what I seem to do when changing the background, my new 
background appears immediately after login, then about 4 seconds later, it 
disappears again and goes back to the default background. I’m wondering if 
there’s more BGInfo nonsense that I need to remove somewhere.

Regards,

Greg

Dr Greg Low

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax
SQL Down Under | Web: www.sqldownunder.com<http://www.sqldownunder.com/>

From: ozdotnet-boun...@ozdotnet.com<mailto:ozdotnet-boun...@ozdotnet.com> 
[mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Tony McGee
Sent: Sunday, 17 January 2016 12:31 PM
To: ozDotNet <ozdotnet@ozdotnet.com<mailto:ozdotnet@ozdotnet.com>>
Subject: Re: Any Powershell gurus?

Hi Greg,

It seems unfortunate that you can't specify the drive letter directly with 
Mount-DiskImage
It can be set though, with a bit of mucking around and without the need for a 
dummy drive letter first:

$ImagePath = 'R:\en_sql_server_2014_enterprise_core_edition_x64_dvd_3935310.iso'
$Volume = Mount-DiskImage -ImagePath $ImagePath -NoDriveLetter -PassThru | 
Get-Volume;
$Filter = "DeviceID = '$($Volume.Path.Replace('\','\\'))'"
Get-WmiObject -Class Win32_Volume -Filter $Filter |% { $_.DriveLetter = 'Z:'; 
$_.Put() }

The Get-Volume cmdlet returns a MSFT_Volume CIM class with a DriveLetter 
property, however it's readonly.

cheers,
Tony


On 17/01/2016 10:17, Greg Low (罗格雷格博士) wrote:
Hi Folks,

Anyone know how to do either of the following via Powershell:


·         Mount an ISO as a specific drive letter

·         Change the drive letter of a mounted ISO

Mount-DiskImage doesn’t seem to have any option for choosing a drive letter.
Set-Partition doesn’t seem to recognise a mounted ISO as a partition.

Regards,

Greg

Dr Greg Low

1300SQLSQL (1300 775 775) office | +61 419201410 mobile│ +61 3 8676 4913 fax
SQL Down Under | Web: www.sqldownunder.com<http://www.sqldownunder.com>


Reply via email to