VB Script to Copy files one at a time and wait for Server to take file.
I feel I am close, but not sure what I am doing wrong. I code in VB .Net, and am new to VB Scripting.Here is my code so far.Set fso = CreateObject("Scripting.FileSystemObject") OrgFiles =...
View ArticlePowerShell Countdown Timer. WPF appearance and trouble updating text
The script below is a countdown timer with an abort option. The first issue is that it doesn’t look the same when run inside PS v4 ISE as from when it is run at the PS v4 prompt. The XAML was written...
View ArticleScript to create or replace Hosts file at logon.
Hello,Im searching a script to replace the hosts file at logon. This must be use in XP, W7 and W8 computers.If the hosts file is not inC:\Windows\System32\drivers\etc it must be create.If the hosts...
View ArticleHow to run a .vbs file inside a .html file ?
I have a web sever page for downloading. I want to run a vbscript in which all user must provide their username to continue the downloads. As the users give their user name that information will store...
View ArticleCatch errors on get-content | foreach-object { get-aduser ...
Hello peeps.Hoping someone can help me.I'm building a script for the service desk to add hundreds of people to a group. I'm probably going a long way around doing this but it does what I need it to do...
View ArticleBatch file > Files on USB disk, how can I use relative paths?
Greetings,currently I am working on a batch file to automate some tasks I have to perform on multiple computers, one at a time.One of the tasks I want this batch to do for me, is copy files from USB...
View ArticleSOLVED: Batch file > Files on USB disk, how can I use relative paths?
Greetings,currently I am working on a batch file to automate some tasks I have to perform on multiple computers, one at a time.One of the tasks I want this batch to do for me, is copy files from USB...
View ArticleCopy/Install Printer Drivers from one server to another
Hi All, I know everybody starts their powershell posts with, "I am new to scripting" or "I am new to powershell" - but I really mean it. You will see by the lack of logic in my code that I am making it...
View ArticleBatch file to delete printer
Hi,I'd like a batch file to delete a printer and I'm stumped at what should be a pretty simple task.So my user can go to 'Printers and Devices' and manually remove the printer no problem.I first tried...
View ArticleHow do I do this with WEVTUTIL?
Win7: There are several of these in my "System" event log.v:\> dumpel -l system -d 2 -c 2>nul | grep "20268"...
View ArticleIf here-strings are for formatting strings, why do cmdlets and other code...
I've read several posts and TechNet info about here-strings, but am still failing to grasp why code works within them. Everything I've read just seems to mostly indicate the purpose of here-strings is...
View ArticleList mounted PST files and PST Size in Outlook to a CSV file
Doing some leg work for an upcoming project. I need to know what PST files a user has mounted in Outlook, where the file is located and how large the file is. I am trying append this information...
View ArticlePowerShell - Get-ACL Error on some folders
Hi Everyone,I'm using PowerShell 4 and getting an error using Get-ACL on some of my folders on my file server. This is a new file server and I have just created all of the folders and applied...
View ArticleExtract String PowerShell
Hi,I need to extract a particular string from a line in a text fileSay for example, I have the following line in a text fileABC3007E 02072015 01:36:49 <11.10.14.10 /492C> Zumb Client --!...
View ArticleVB script Procedures order of execution
HiI have 4 procedures in my vbscript code, i am calling them in the required order (like A,B,C,D etc...). But, before it completing the Procedure B, it started Procedure D and giving error stating that...
View ArticleNTFSSecurity 3.2.3 PS module
Hi allI downloaded and am using this module: NTFSSecurity 3.2.3. Link:https://gallery.technet.microsoft.com/scriptcenter/1abd77a5-9c0b-4a2b-acef-90dbb2b84e85I then proceeded to create the following...
View ArticleScripting for DHCP Reservation
Hello AllAs I am install and configure ADDS and DHCP using PowerShell . The only things I did not found is that how to set the DHCP reservation Range using PowerShell.As I am using Server 2012r2...
View ArticleChange Java Environment Variable using script and GPEdit
I am using a script through gpedit to automatically update the java environment variable every time java updates.Here is the script:$dispkey = gci...
View ArticleSetTcpipNetbios
Hello,I tried running this on Windows 7 machine but I got an error. akosijesyang - the conqueror
View ArticlePowerShell 5.0 and Dynamic Language Runtime DLR for compiled scripts and...
Hello All:PowerShell 3.0/4.0 did not fully utilize the Dynamic Language Runtime (DLR) like IronPython did. To what extent does PowerShell 5.0 use or rely on the DLR? Fully the same as IronPython?...
View Article