Monthly Archives: August 2013

About the Windows Registry

About the Registry Windows.

Determine which properties of an object can be changed in Powershell

This is actually the example no 8 from Get-Help Get-Member

C:\PS>$file = get-item c:\test\textFile.txt

C:\PS> $file.psobject.properties | where-object {$_.issettable} | format-table -property name
 
Name
—-
PSPath
PSParentPath
PSChildName
PSDrive
PSProvider
PSIsContainer
IsReadOnly
CreationTime
CreationTimeUtc
LastAccessTime
LastAccessTimeUtc 
LastWriteTime
LastWriteTimeUtc
Attributes

C:\PS> [appdomain]::CurrentDomain.GetAssemblies() | foreach-object { $_.getexportedtypes() } | foreach-object {$_.getproperties() | where-object {$_.canwrite }} | select-object reflectedtype, name

Description
———–
This example shows how to determine which properties of an object can be changed.  The example uses a file, but you can use this command format to find the changeable properties of any object in Windows PowerShell.  The first command uses the Get-Item cmdlet to get a text file, and then it saves the file object in the $file variable.  The second command gets all of the changeable properties of the file object in the $file variable and displays the names of the properties in a table.  The third command gets the changeable properties of all objects in your Windows PowerShell session. 

How to view all IE Trusted Sites when security settings are managed by Group Policy (using Powershell)?

When trusted sites are managed by GPO one can’t even view what servers are trusted using IE menu Tools > Internet Optins > Security > Servers becaouse the UI is disabled and won’t let you scroll down

On my Windows 7 installation, the path appears to be HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey

Get-Item  "hkcu:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey"

or

Get-ItemProperty  "hkcu:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey" | fl -Property *

I have yet to find out how to do it using .NET in Powershell…

How to view all IE Trusted Sites when security settings are managed by Group Policy (using Powershell)?

When trusted sites are managed by GPO one can’t even view what servers are trusted using IE menu Tools > Internet Optins > Security > Servers becaouse the UI is disabled and won’t let you scroll down

On my Windows 7 installation, the path appears to be HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey

Get-Item  "hkcu:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey"

or

Get-ItemProperty  "hkcu:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMapKey" | fl -Property *

I have yet to find out how to do it using .NET in Powershell…

Metcorp Consulting Tech Blog – Powershell Code: Finding Unlinked Group Policy Objects

Metcorp Consulting Tech Blog – Powershell Code: Finding Unlinked Group Policy Objects.

Locating all of the Unlinked GPOs in your domain | PowerSchill

Locating all of the Unlinked GPOs in your domain | PowerSchill.

Aaron Bertrand : PowerShell, Start-Job, -ScriptBlock = sad panda face

Aaron Bertrand : PowerShell, Start-Job, -ScriptBlock = sad panda face.

smsagent

Tips, tricks and time-savers for the Windows and ConfigMgr administrator

To The Point

Anything about Technology and Business

Brian's Power Windows Blog

Microsoft in the Enterprise. Windows, Hyper-V, Exchange, SQL, and more!

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?