Archive for the ‘Misc. Scripts’ Category

Citrix ChangeUser Mode Batch Script

Citrix
I wrote this to assist the helpdesk at my work for when they install something or make changes to our Citrix enviroment. We have been using it for a long time and thought I would share, plus its always a good reference of how to use “choice” in bat files. What this does is first check for admin rights and if admin rights are found then queries the current mode. It then offers 4 choices, 1 – Install mode, 2 – Execute mode, 3 – Cancel and Exit, and 4 – Query Current...

KixStart Macros

KiXtart Macros KiXtart macros can be used in your script configuration anywhere an expression is expected. During logon, these macros expand into values based on their definition. For example, when a user named Bob logs on to a client machine, the @userid macro expands into Bob. KiXtart macros have many practical uses. The UNC path, \\your-server\@userid, can be used to map a drive to a per-user share. The @lserver macro can be used to set the system time on legacy clients from the authenticating...

Commenting HTML

The easiest way to comment HTML is placing 1<!-- before the comment and then place 1--> after the comment. For Example: 1 <!-- comment --> There are also other variations of that method but since HTML is officially an SGML application, the comment syntax used in HTML documents is actually the SGML comment syntax. Unfortunately this syntax is a bit unclear at first. The definition of an SGML comment is basically as follows: A comment declaration starts with 1&lt;! followed by...

HTML Text Layout

These tags will let you control the layout. HTML EXPLANATION <p>text</p> Adds a paragraph break after the text. (2 linebreaks). <p align=”left”>text</p> Left justify text in paragraph. <p align=”center”>text</p> Center text in paragraph. <p align=”right”>text</p> Right justify text in paragraph. text<br> Adds a single linebreak where the tag is. <nobr>text</nobr> Turns...

How to use Netsh?

To run a netsh command, you must start netsh from the Cmd.exe prompt and change to the context that contains the command you want to use. Netsh.exe is available on Windows 2000, Windows XP and Windows Server 2003. Syntax netsh [-a AliasFile] [-c Context] [-r RemoteMachine] [Command | -f ScriptFile] -a AliasFile Specifies that an alias file is used. An alias file contains both a list of netsh commands and an aliased version of each. You can use the aliased command to shorten...
Twitter Delicious Facebook Digg Stumbleupon Favorites More
332 queries in 3.866 seconds.