Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

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 Article


PowerShell 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 Article


Script 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 Article

How 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 Article

Catch 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 Article


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 Article

SOLVED: 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 Article

Copy/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 Article


Batch 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 Article


How 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 Article

If 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 Article

List 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 Article

PowerShell - 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 Article


Extract 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 Article

VB 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 Article


NTFSSecurity 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 Article

Scripting 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 Article


Change 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 Article

Image may be NSFW.
Clik here to view.

SetTcpipNetbios

Hello,I tried running this on Windows 7 machine but I got an error. akosijesyang - the conqueror

View Article

PowerShell 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
Browsing all 15028 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>