-
By Todd The PowerShell prompt needs to opened with elevated permissions in order to run any of the cmdlets, just as it requires administrative privilege to do any administration of GPO’s through the GPMC. The shortcut to the Active Directory ... Read More
-
By GPTeam The following is a sample script that sets a Preference registry value in a GPO, then compares that same value to all of the GPO's linked in the same domain. If the value is not already set in a linked GPO, the new GPO is linked to that ... Read More
-
This code will give you MS Office product key (no matter if you have 32-bit or 64-bit version of Office XP, Office 2003, or Office 2007). function Search-RegistryKeyValues { param( [string]$path, [string]$valueName ) Get-ChildItem $path -recurse -ea SilentlyContinue | % { if ((Get-ItemProperty -Path...
-
This script will give you a nice object with ComputerName, ProductName (tested on Office and Visio), and ProductKey. Works against the local and a remote computer. You can pass an array of computer names. function Get-MSOfficeProductKey { param ( [ string []] $computerName = "." ) $product...
-
Let's start with the theory. ;) The computer's SID is stored in the HKEY_LOCAL_MACHINE\SECURITY\SAM\Domains\Account Registry subkey. This key has a value named F and a value named V. The V value is a binary value that has the computer SID embedded within it at the end of its data. This SID is...
-
Introduction If you've been working with PowerShell for registry access, you've probably noticed by now that something is missing. PowerShell has two registry “drives” defined: HKLM for HKEY_LOCAL_MACHINE HKCU for HKEY_CURRENT_USER The ... Read More
-
By Sean Kearney “I Need a way to list all my installed applications in Powershell in Windows 7! I need it now! I need it Quick! Or I'll find myself doing nothing but testing badly designed and poorly assembled hardware for the rest of my life! Help me! ... Read More
Posted to
General
(Forum)
by
ps2
on
08-23-2009
Filed under: Registry, Installed Programs
-
By Lars Rasmussen In PowerShell, the simplest way to display the [Installed Applications] is to use the Get-ChildItem cmdlet (which has the alias of gci), then pipe its results to the Get-Item- Property cmdlet. (Get-ChildItem doesn't retrieve information ... Read More
Posted to
General
(Forum)
by
ps2
on
09-03-2009
Filed under: Registry, Installed Applications
-
No comments on the merits of User Account Control, please - I need to test in an environment with it "all the way on" - which, on Windows Server 2008 R2 Enterprise, is the "Always Notify" option. Figured I'd mass-change the systems (because after the test, I'm turning the...
-
Hi, I am new to PS have taken over an existing pool of PS scripts. The 'hub' is a Scheduler that executes jobs on the local server (Server 2008). Now we need to spread out the execution of the jobs on serveral servers. Romoting should be the answer :-) My big problem is that when I, from the...