Creating touch file using Batch script
Hi,I want to create a touch file using Batch script.Touch file means a zero byte file will be created in a particular location.I know how to do this in Unix, But in windows I dont know how to do it...
View ArticleScript to revoke home folder permission for users
We are in the process of migrating file server to new hardware and need help with revoking permission to Home folders. We want users to manually copy onlymeaningful data from old home drive to new home...
View ArticlePowershell workflow for vm deploy
Hi All,I am trying to create a workflow for automated deploy of vms from the below link.http://gallery.technet.microsoft.com/scriptcenter/c74b4a23-e4ec-4829-b38e-54252b40fdecWhen ever I try to run even...
View ArticleProblem Windows 8 logon script not working from windows server 2008 R2
Is a very simple logon script for mapping drive purpose .... PLS take note Domain users can access and run this script for domain users using windows XP / WINDOWS VISTA / WINDOSWS 7 and only users "...
View ArticleInvalid root in registry key
HelloI'm running a vbscript to modify a windows 7 registry.The path i'm using exists and is correct, still i get an error "invalid root in registry key". The error refers to the Homeloc variable.Any...
View ArticleNeed a batch script to check a file is zero byte or not
Hi,I want to check a file zero byte or not using a Batch script.If it is a zero byte file then fail it, if not (more than zero byte) then process will be successful.Can anyone help me on this ?Thanks,Jitu
View ArticleHow to delete a Key of registry by VBScript?
How to delete a Key of registry by VBScript? like the strValueName under Software\Microsoft\Office\15.0\Lync\ConfAddin\test@contoso.com.cn.---------------------------------------------------Const...
View ArticleDeleting one semicolon in the end of a file using Batch script
Hi,I have a file which structure is belowName : a.datValue : abcde; vdeerf; ;I want to delete only the last semicolon entered in the end of the file.I need a batch script to do this, Can you guys...
View ArticlePowershell Calling Functions
Very odd issue as i have no idea why i can't call any of the functions as per the below. CLS #… Present the Menu Options Write-Host “`n`tOffice 365 Connection`n” -ForegroundColor Red Write-Host “`t`1....
View ArticleVBscript to upload files to ftp server
Hello, Im looking for a example of vbs to upload a pair of zip files to the ftpserver. This vbs will be working under Windows task manager.
View ArticleOccasional "The client cannot connect to the destination specified in the...
Hi guys,Only occasionally will I get "Connecting to remote server "blah" failed with the following error message : The client cannot connect to the destination specified in the request. Verify that...
View ArticleScript to locate name in list and fill Answer yes or no.
I currently have a script that finds a file on my computer (or any computer i run script on) then reports back to a file on a network drive, this way all the computers on the domain can report back...
View ArticleChanging Screen Resolution on Multiple Monitors
I'm usung a script I found on this site under "Set-ScreenResolution". This works great but will only change the primary screen resolution. How can this be altered to change the res for dual monitors?...
View ArticleAssiging user rights to folders - Powershell
HiI have only just started working with powershell. Have got a few good books and been hitting bing(not really, I googled) a lot. So far I'm pleased with what I have been able to do. This weekend I...
View Articleproblem using ADSI Schema systemMustContain
Hello AllI am learning more about the ADSI interface, and doing some practice on getting information from the Schema partitionI am having an issue with the systemMustContain or muchContain. the...
View ArticleDownload various print drivers (178) given a list of models
I have a task go go out and download 178 printer drivers from various companies both 32 and 64 bit for deployment to a new print server. Rather than start the very manual task of searching and...
View ArticlePowershell - Export to multiple sheets in an Excelfile
Hello,Ik hope somebody can help me. Ik have a Powershell script and i use this to export a couple OU's in the Active Directory. This exports go each to there own CSV file (as backup). I realy would...
View ArticleDomain Joining Script
Hi,I have a requirement for vbscript to join workstation PC's to Domain. The requirement is as belowThe script should prompt for Computername, username and Password for Joining the PC to DomainThe...
View ArticleScript to rename AD user accounts(bulk) (cn, dn, samaccount & upn) from csv...
Hello and thanks in advance for any help on this request!Currently our company has acquired another company, and I have been tasked with handling of the user account conflicts. I have a csv file with...
View Articlemounting network shares based on username
I need to mount a network drive at login for domain users in a public lab. The storage server that contains all of these SMB shares is a non-Windows SMB server. I can do this easily enough with the...
View Article