Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Registry paths on server 2016 #93

Open
AngryPanda25 opened this issue Dec 9, 2021 · 4 comments
Open

Registry paths on server 2016 #93

AngryPanda25 opened this issue Dec 9, 2021 · 4 comments

Comments

@AngryPanda25
Copy link

Good Day Team

when running on server 2016 i noticed that the registry paths are different from what the script is looking for

go to the path its looking for there is not something there to find and returning an error on the CPM scripts.

Path in 2016 for the screensaver is in a different location that what the scripts is looking for

[2021-12-09 08:50:25] [INFO] Start Step Enable ScreenSaver
[2021-12-09 08:50:25] [INFO] Start EnableScreenSaver
[2021-12-09 08:50:25] [ERROR] Error comparing local group policy 'Enable screen saver'. Error: Source:; Message: Get-Reg: Registry path HKLM:\Software\Policies\Microsoft\Windows\Control Panel\Desktop does not exist
[2021-12-09 08:50:25] [ERROR] Error comparing local group policy 'Force specific screen saver'. Error: Source:; Message: Get-Reg: Registry path HKLM:\Software\Policies\Microsoft\Windows\Control Panel\Desktop does not exist
[2021-12-09 08:50:25] [ERROR] Error comparing local group policy 'Password protect the screen saver'. Error: Source:; Message: Get-Reg: Registry path HKLM:\Software\Policies\Microsoft\Windows\Control Panel\Desktop does not exist
[2021-12-09 08:50:25] [ERROR] Error comparing local group policy 'Screen saver timeout'. Error: Source:; Message: Get-Reg: Registry path HKLM:\Software\Policies\Microsoft\Windows\Control Panel\Desktop does not exist
[2021-12-09 08:50:25] [INFO] Finish EnableScreenSaver
[2021-12-09 08:50:25] [INFO] Finished Step Enable ScreenSaver

In 2016 the screensaver is located at : HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop

is there a place i can change the paths for the CPM checks ?

@AssafMiron
Copy link
Contributor

Hi @AngryPanda25 ,

HKCU is the path for the Current User
The script is looking for the global, machine level setting

The Policies folder means that it comes from GPO

There is a way to define the GPO setting on a user level or a machine level, it seems that for you it was applied on the user level and not on the machine level

Can you please confirm?

Thanks,
Assaf

@AngryPanda25
Copy link
Author

AngryPanda25 commented Dec 9, 2021

There is a GPO set on this machines , yes

and it is set under computer configuration

if you look under the Users Config it is also set to no

@AngryPanda25
Copy link
Author

It is the same with this one for Hide PSM Drives
It is looking for : Path HKU:.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer does not exist

It is in : HKU:.Defualt\software\Microsoft\windows\CurrentVersion\Explorer

if it makes sense , so the locations are different

@AngryPanda25
Copy link
Author

And just to clarify : the drives is not listed if you go into explorer , so you cant see them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants