Thursday, December 8, 2016

PS Scripts–Add to Path Environment Variable

Here’s an easy and quick way to add a string to your Path environemnt variable:

[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\SomethingYouLike", [EnvironmentVariableTarget]::Machine)

And…you’re done! ;)

Sunday, December 4, 2016

Windows Tips – Display Previous Logon Information

For debugging purposes you may need to get information about the last login on a machine, so here’s a tip to show you that information in a very easy way.

You can use both Group Policy or Registry to achieve this:

Group Policy

  • Open your GPO Editor (if local gpo just type gpedit.msc from “run…”)
  • Navigate to Computer Configuration > Administrative Templates > Windows Componentes > Windows Logon Options
  • On the right side double-click “Display information about previous logons during user logon
  • Now just select “Enabled” and than “Apply
  • Click OK to finish


Registry

  • Open registry editor (type regedit from “run…”)
  • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  • On the right side create a new DWORD (32-bit) value
  • Name it “DisplayLastLogonInfo
  • Double-click the DWORD you’ve just created and change the value from 0 to 1
  • Close registry editor to finish

And you’re done!
For both cases, restart your machine to view the change in action.

Saturday, December 3, 2016

Windows Tips – Removing Network Icon from Lock Screen

Usually you can achieve Windows customization by simply running throught Control Panel (or Settings) menu, or for a more enterprise approach, you can apply group policies that helps doing the job.

Well, for some reason there’s no direct option though GPO to remove the network icon from Windows lock screen., so here’s a tip to do it using registry editor.
You can use it directly on Windows or using Group Policy Preferences (GPP) on your enterprise environment.

Registry

  • Open registry editor (type regedit from “run…”)
  • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  • On the right side create a new DWORD (32-bit) value
  • Name it “DontDisplayNetworkSelectionUI
  • Double-click the DWORD you’ve just created and change the value from 0 to 1
  • Close registry editor to finish

Now just restart you’re computer and you’re done!

VDISM – Easy WIM Servicing and Control

image

So…although you’re a geek and you really like to create your own scripts for managing your WIM files, sometimes you feel that a GUI app would be just great and it would really be a time saver.

Some of you may already know a tool called GImageX but from my experience I think this one its superior.

VDISM, available throungh SourceForge website, it’s a fenomenal tool with a very simple interface that gives you access through a graphical interface to all things you need for servicing WIM files.
It’s really really easy to use and so intuitive that you will probably will not use command-line anymore.

Features:

  • Driver Servicing
  • Package Servicing
  • Unattend Servicing
  • Windows Edition Servicing
  • Appx Servicing
  • Application Servicing
  • WIM Boot Entry Servicing
  • Append Image Servicing
  • Apply Image Servicing
  • Capture Image Servicing
  • Delete Image Servicing
  • Export Image Servicing
  • Image Info Servicing
  • List Image Servicing
  • Mount Image Servicing
  • Split Image Servicing
  • International Servicing
  • Provisioning Package Servicing
  • Default Associations

Go ahead and try this great tool: SourceForge – VDISM