Sep 15
G JohanssonPowerShell Grouppolicy, Powershell, Script
It’s soon time to start blog about using PowerShell to support your Group Policy environment but here’s a start from Group Policy Team blog from MS.
You can, if you want to, search for just about everything inside a gpo and here is something to prove it from a blog post from GP Team blog.
Check it out: http://blogs.technet.com/b/grouppolicy/archive/2010/09/14/more-on-searching-group-policy.aspx
Technorati Tags: Grouppolicy,
Powershell,
script
Apr 29
G JohanssonADMX, Windows 7 GPMC, GPO, Group Policy Preferences, Preference, Script
This is a quite common question about Group Policy Preferences so I’ll post it here and maybe someone will benefit from the information.
Scenario:
Trying to create a shortcut to a fixed drive letter using Group Policy Preference that points to a location on the network. After login there is no shortcut created and if you look in eventlog you see an error “0×80070002 The system cannot find the file specified”. If you run GPupdate /Force the shortcut is created.
This is an issue where it’s trying to create the shortcut before the drive’s are connected and Windows can’t create new shortcuts to locations not connected.
Workarounds:
- Create the shortcut using UNC-path
- Create the drives and shortcuts using logonscript
- Create a scheduled task (using GPP) to run GPupdate after user logon or use logonscript to run GPupdate
Hope someone benefits from this information.
Technorati Tags: Group Policy Preferences,
Preference,
script
Feb 08
G JohanssonScript code, fun, Script
Sometimes people get too much time
Today while walking the net I came to read this blogpost about “Good or bad code”.
Starting from today this is also how I will eval my code when writing scripts
New Unit of Reviewed Code Quality
Technorati Tags: code,
fun,
script
Oct 27
G JohanssonScript Download, Microsoft, Powershell, Script
Today I read a post in another blog (swedish) about some example codes released in a technetmag article from MS.
This example codes contains different methods on how to elevate different things.
- Elevate Powershell straight from a catalog.
- Elevate cmd-prompt from a catalog.
- Elevate an MSI-package installation
- Elevate a HTA-application
Right click and select your option.
Example:

Download the package and install the different options by right-click on the inf-files and select Install.
Download the package here.
Technorati Tags: Download,
Microsoft,
Powershell,
script
Sep 30
G JohanssonGPMC Download, GPMC, Script, Vista
If you are using Vista and previously used XP and the scripts included you might be missing them in Vista as they are not included.
Microsoft released the scripts as a downloadable package for Vista which you can download here: http://www.microsoft.com/downloads/details.aspx?familyid=38c1a89b-a6d2-4f2a-a944-9236999aee65&displaylang=en&tm
Technorati Tags: Download,
GPMC,
script,
Vista
Aug 20
G JohanssonGPMC, GPO GPMC, Script
Group Policy Management Console (GPMC)Â has some example scripts which get installed when you install GPMC. These scripts are not always used so I wrote a page about the scripts which you might find useful.
http://gpfaq.se/?page_id=15
Technorati Tags: gpmc,
script
Recent Comments