VBS Script to disable a list of Active Directory Accounts
The below script will disbale all of the users accounts provided in a CSV file, the script could easily be modified to change any other properties for the list of users.
Change the values strCSV and strDomain as needed
Converting Between Decimal, Binary and Hexadecimal
For a Cisco exam you need to be able to very quickly convert between Decimal, Binary and Hexadecimal and back again.
Being able to recreate the below tables will greatly help will this
Citrix: Migrating the data store from MS Access to MS SQL 2005
I recently needed to migrate our Citrix data store from a MS Access database to Microsoft SQL Server 2005 (32-Bit), this document shows the steps I went though.
Step 1
Before starting I created a backup of my data store take a look at http://www.geekshangout.com/?q=node/32 for instructions
Step 2
I created a new database and user on the SQL server
Step 3
On one of the Citrix Servers I created a file DSN that pointed to my new SQL database
Citrix: Backing up a MS Access Data Store MF20.mdb
On a Citrix server run the command DSMAINT BACKUP <destination_path>
For example:
DSMAINT BACKUP C:\
Make sure you do not add a filename or you will receive a message such as
ERROR: Cannot copy database file.
Imaging a Cisco Router with ROMMON and tftp
If you find yourself in ROMMON mode having done something silly like wiping the flash or if there was a problem updating the IOS then the below steps will go though how to copy a replacement image from tftp to the routers flash.
What you will need
- A tftp server, I tend to use tftpd32
- A compatible IOS image in the base directory of your tftp server
- The router need to be pluged into your network
- You need to be connected to the router via a console cable
The Commands
Enter the below commands one by one
First scan of our baby
My wife is pregnant with our first child and the other day was a great day as we had our 12 week scan, I have to say I am now a feeling a bit scared but I can't wait.
VBS List Properties of All AD Users
This script creates a CSV file listing the below details for all Active Directory users. The script could be very easily extended to include any extra user properties.
sAMAccountName
displayName
description
TerminalServicesProfilePath
TerminalServicesHomeDirectory
TerminalServicesHomeDrive
ProfilePath
HomeDirectory
HomeDrive
scriptPath
msNPAllowDialin
VBS: Copy files and display a progress bar
The below script with copy files and display a standard windows progress bar.
VBS Script to run a Query against a Active Directory Domain
The below script is an example of how using VBS and ADODB you can perform SQL like queries against Active directory to return or change properties of an object.
In this case the script returns the "Home Drive" on the user "testusername" in the domain "domainname.com"
Citrix: Return the VIrtual IP address of the current users Citrix session
For a long time I have been tring to find or write a vbs script that will return the VIrtual IP address of the current users Citrix session.
I have managed to finally find a way of doing it, please comment if you have a better way!!!!!!
The big problem with the script is the user running the script needs to be a Citrix administrator.
I will continue to work on this problem and will post new versions.
File attached: You must be a member to download
CODE:
