|
Replies:
3
-
Pages:
1
-
Last Post:
Dec 18, 2009 1:23 AM
by: Homerken
|
|
|
Posts:
3
Registered:
12/15/09
|
|
|
|
In need of a script, to get rid of the Popups on our Citrix Terminal Server
Posted:
Dec 17, 2009 2:34 AM
|
|
|
|
|
Hello, We have a problem, with some of our Citrix Terminal Servers. This servers are somtimes slow, and when you take the screen remotely over, you will see several popus coming on screen. When you remove this popus, the system is going back on full speed. So I was wondering that anybody has a script that we can use, to clean up this popus on our Citrix Terminal Servers.
Many thanks in advance. Homerken
|
|
|
Posts:
3
Registered:
12/15/09
|
|
|
|
Re: In need of a script, to get rid of the Popups on our Citrix Terminal Server
Posted:
Dec 17, 2009 5:26 AM
in response to: Homerken
|
|
|
Back again, with more info regaring my problem.
This is NOT a service but a Regkey input, it looks like this System Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows] Value Name: ErrorMode Data Type: REG_DWORD (DWORD Value) Value Data: (0 = all errors, 1 = application errors, 2 = no popups)
To change this aon one or two Citrix Terminal Servers ok however we got around 100 Citrix Servers Worldwide. Is this this scriptable, and second question how to begin @ this project. Can somebody help me with this problem. Best regards from a newbie
|
|
|
Posts:
49
Registered:
4/23/09
|
|
|
|
Re: In need of a script, to get rid of the Popups on our Citrix Terminal Server
Posted:
Dec 17, 2009 6:37 AM
in response to: Homerken
|
|
|
I haven't tried to write to a remote registry, but I do read quite frequently. Hopefully, this will give you a starting point.
$rHost = "Remote-Computer-Name"
$RootKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LOCALMACHINE", $rHost).OpenSubKey("SYSTEM\CurrentControlSet\Control\Windows", [Microsoft.Win32.RegistryKeyPermissionCheck]::ReadSubTree)
$RootKey.GetValue("ErrorMode")
For your application, you'll want to work with the SetValue method and use ReadWriteSubTree for the permission check.
More details can be found in the MSDN documentation at:
http://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey_methods.aspx
|
|
|
Posts:
3
Registered:
12/15/09
|
|
|
|
Re: In need of a script, to get rid of the Popups on our Citrix Terminal Server
Posted:
Dec 18, 2009 1:23 AM
in response to: Art Beane
|
|
|
Hello, Thanks for the reply Art Beane.
I have played a little bit with the script that you provide me with.
After a little bit, I have the found working solution, so I will share this with you guys overhere.
$rHost = "Name of your server"
$RootKey = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LOCALMACHINE", $rHost).OpenSubKey("SYSTEM\CurrentControlSet\Control\Windows",$true)
$RootKey.GetValue("ErrorMode") $RootKey.SetValue("ErrorMode",2)
The script will give you two value's back, the first is the actual value 0, and the second on is the changed value of 2.
Hope that this will be usefull to anybody ho will need this. Regards Homerken
|
|
|
|
Legend
|
|
MVP: 2501
+
pts
|
|
Guru: 2001
- 2500
pts
|
|
Expert: 751
- 2000
pts
|
|
Enthusiast: 31
- 750
pts
|
|
Novice: 0
- 30
pts
|
|
Moderators
|
|
Helpful answer
(5 pts)
|
|
Answered
(10 pts)
|
|