How to change multiple files NTFS access rights list by command line

When you have to change ACL on huge amount of files (eg. give yourself rights to delete Vista files form a secondary partition 😉 ), you have to way’s to do that: sit all day changing ACL to small groups of files repeatedly, cause trying to call „Properties” on a …

MSOffice 2007 / MSVisio 2007 / MS Project instalation from GPO

Previous version of MS Office could be installed with a ZAP file with given values for for MSI installation package parameters. With 2007 edition you have to use a Office Customization Tool, run from setup.exe: setup.exe /admin Unfortunately your have to have OCT files in the product installation folder 🙁 …

Non-existent, not used project reference causes error in WinForms VS designer

Today I was struck by another „self-explanatory” 😛 Visual Studio exception: The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, tring description) at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, …

Replace default IPrincipal object in ASNET

There is an easy way to override or provide IPrincipal object exposed by the System.Web.UI.Page.User property. Implement OnAuthenticate handler in the Global.asax public void WindowsAuthentication_OnAuthenticate(Object Source, WindowsAuthenticationEventArgs e) { e.User = new GenericPrincipal(e.Identity, new string[] {„Role1”, „Role2”, „Role3”}); } This way you do not have to implement RoleProvider class, just …

List network connections on a remote windows workstation

There is a simple way to see network connections on a windows workstation, no extra software is needed to install on the remote machine. You can use a PsExec tool from SysInternals to exec a command line on the remote workstation and the use a standard windows utility netstat. If …

Back to Top