Link to home
Start Free TrialLog in
Avatar of Chris
ChrisFlag for United States of America

asked on

Windows 10 deployed via Symantec Ghost 3.0 HF4 - Support for Dual Display Orientation

Hello,
I'm working on setting up a classroom environment, in which all of the machines are deployed via Ghost/Altiris 3.0 HF4 with Windows 10.
My images deploy flawlessly, with 1 exception. We are using dual monitors; 1 monitor in Landscape, the other in Portrait. On the image source machine, the displays are configured properly, however, when I snap the image, and then redeploy it, the orientation is set to landscape on all of the target machines.

These machines are all identical hardware, identical monitors, and all the drivers are up to date. I even went as far as resetting the monitors settings, and trying the config from within the ATI Control Center, and it still drops the config.

Can anyone direct me on if there is a way to set this orientation, so that I don't need to reset it by hand after the image is deployed everytime? I'd like to be able to do this natively if possible. Is there a regkey I can set? I'm not opposed to installing a magical piece of software to do it, but if I can accomplish this without installing something, that would be preferred.

Thank you all for your help!
Avatar of Davis McCarn
Davis McCarn
Flag of United States of America image

Firstly, Windoze knows that the specific hardware is different on each PC which is why it reverts to the default orientation for the displays.
Secondly, you need to be logged in with local admin privileges in order to make the changes stick and we'll probably need to export some registry settings in order to be able to set each user after they log in for the first time.
Have you tried changing the display with admin privileges and are you using AD?
Avatar of Chris

ASKER

I don't know if I agree with your first statement. These machines are all exactly the same in terms of hardware, and configuration. They are even cabled exactly the same. Windows is conducting an inventory in device manager, and locating exactly the same hardware, and using the same drivers.
I'm not logging in the first time, and seeing messages on "The Hardware has changed". Its only changing the orientation of the second monitor back to landscape.
No, I'm not using AD. Because these are classroom PCs, they are not activated, and not joined to a domain. These machines are only running for 1 week at a time, before they are re-imaged. There are only 2 accounts, a student account, and an administrator account. Both accounts have local admin access.
Every PC has tens of devices that are specifically tied to that PC.  Think of it as akin to a serial number embedded in the devices (and monitors are included).
Recently, I did 11 identical Dell desktops for a client and almost every device was redetected as new.
Do Start, and, in the search box, type CMD <CTRL-SHIFT-ENTER> to run an elevated CMD window.  In it, type:
set DEVMGR_SHOW_NONPRESENT_DEVICES=1<ENTER>
devmgmt.msc<ENTER>
In the resultant device manager, click View -> Show nonpresent devices
You will then have a device manager with every device Windows ever detected instead of what it thinks is there now.  I'll bet you find bunches of grayed out (not there) items that will often be the same description as the item currently present.  Its OK, BTW to right click on the grayed out, duplicate entries, and uninstall them.
Avatar of Chris

ASKER

Davis,
I appreciate your comments, and thank you for the insight; however, I'm not here to debate semantics on if I can see all the disabled devices, or all the many hidden devices in control panel, or if I can uninstall them. I know your statement is true.

With that being said, maybe its better if I re-ask my question.

Can I programmatically re-orientate the monitors on a newly imaged computer? Perhaps I can write a little VB script, export a registry setting, or a create a powershell script to readjust the monitor as a runonce?

Do you know if this can be done? Do you have any code/script examples?
If not natively, do you know of any 3rd party software solutions that may allow this?
You had said that changes made using the ATI utility did not stick.  If you use the display applet in the control panel, does that work?
Avatar of Chris

ASKER

No, I actually tried that first. When that didn't work, I tried in ATI Utility. It still didn't work. I assume that its resetting to default because the OS detects the hardware address on each device has changed. (even though the hardware is physically identical) - like you said.
But I see I can query the device with WMI, I assume there is a way to set the orientation, and then reset it to that on a post install, runonce; or a powershell script or something, but alas, my googlefu is failing me.. :-)
Run the CMD's I gave you earlier and uninstall any phantom monitors and Display Adapters it shows.  Reboot and try the display options again.
It would be awfully dumb of them; but, maybe the PC thinks its changing the non-existant devices!
If that didn't get it, I'd even try uninstalling the active display adapter to see if it straightened itself out afterwards.
Avatar of Chris

ASKER

Hi Davis,
As you can see from this screenshot, I only have 1 ghosted entry. and its not even for the monitor i'm having my orientation issue with. (sorry for the poor picture quality)
User generated image
This is a brand new image, created just for these new classroom PCs only 1 day prior to testing this deployed image. Its not like the adapter is broken, both displays are working fine, it just doesn't retain the landscape/portrait config post deploying the image via ghost.

I think I finally found a couple links, that are close to what I'm looking for. I'm doing some research now, to see if they will work on Windows 10.
http://superuser.com/questions/447155/how-do-i-set-up-a-hotkey-or-shortcut-to-rotate-my-screen-in-windows  (I reviewed this in hotkey manager, this would be perfect, if it didn't rely on where the cursor was to activate the hotkey) bummer..

http://superuser.com/questions/394601/change-display-arrangement-via-batch-command-line-on-windows-7

http://stackoverflow.com/questions/12644786/powershell-script-to-change-screen-orientation
ASKER CERTIFIED SOLUTION
Avatar of Chris
Chris
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry I missed your earlier post.  Yes, display.exe seems to be just the ticket so kudo's to you.
I will mention; though, that the grayed out 2214 is almost undoubtedly the second monitor on your original PC and I'd bet it isn't there if you do the same on it.
Avatar of Chris

ASKER

No, All of the landscape monitor's are DP, and all of the Portrait monitor's are DVI.

I checked that too this morning, to confirm..

Regardless, thank you for the dialog, it seems it was enough to keep me pressing on to find the solution.
Avatar of Chris

ASKER

I needed just a little something to point me in the correct direction, and I thank Davis for his dialog to keep pushing me in the right direction.