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

Problem retrieving (email) items in Inbox folder using getfirst - getnext loop

Hi,i am trying in a VBScript to display all items in the inbox, using the getfirst - getnext methode in a do while loop. The ultimate goal is to move certain items to another folder, so a for each loop...

View Article


Clearing manager entry from AD with VBS

Greetings fellow scripters out there.I Know that you're able to set manager for AD object with providing DN name as value, but according to our user disabling processI have to clear the manager entry...

View Article


Modifying script from HSG blog post and loop it.

Hey guys,I am a scripting noob but I am having a ball learning Powershell to get it to do all the things I want it to do.I have found the script from this blogpost "Use PowerShell to Monitor for the...

View Article

How to wrap a powershell command in to an IF statement

Hello, I'm starting to learn Powershell.  I have found this command on the internet and it works very well.  I'm loving Powershell.Get-WmiObject win32_logicaldisk -filter "drivetype=3" -computer...

View Article

Getting User "LockoutTime" using ADSI interface (or other method not using...

Hello AllCan someone please help me with the following queryThis little function below will get a users attribute valuefunctionGet-UserAttribute...

View Article


[Powershell] Remove escape characters from a file

I am using PowerShell to work with the Java JRE configuration files such as deployment.config and deployment.properties.  The file has parameters that refer to paths, but these paths contain escape...

View Article

To download URL contents as plain text

Hi, Can any one let me know haw can I download website contents as plain text. I need to get website contents and search for specific pattern. I am trying code below, but the out put I am getting is...

View Article

Powershell script to find specific device ids across the active directory domain

I need some help finding a specific device id and am looking for the one-liner or script that can help me poll for device ID that is attached to any machine operating in my AD Domain. I know this will...

View Article


Problem with Task Scheduler and VBScript to Refresh an Excel File

I have a very simple VBScript to refresh and save a specified Excel file (see code below). It works fine when you double click the VBS file but I need to schedule it to run automatically using Windows...

View Article


SourcePath="(drive or file path)\Files"

New to scripting,  help please.Need to write a sourcepath statment so whereever the directory is place,  on a cd or a drive the SourcePath automatically is updatedI have need to make the script...

View Article

Append to existing Description

I need help on this powershell commandGet-ADuser -searchbase "OU=TEST, OU=Stale Accounts, DC=com" | Set-ADuser $_ -Description "disabled due to inactivity, termrpt $($_.Description)"What I'm trying to...

View Article

How to run a Quest Powershell script by double clicking???

Hi everybodyI got a question about Quest Powershell scripts, how do I run a script by double clicking it? Because I want to create a Scheduled task on Windows XP.Thanks!

View Article

PowerShell Script that will notify the user when their password was changed

Hello,    I have the desire to have a script that runs frequently (each hour) that will send an email to the A/D user when the password was changed.I have found the script below, but it does not work....

View Article


VB code for Office Validation

Hi Scripting Guy!I need some help with this:"Create a simple .vbs file which validates if the current office version if activated. As a function, the output result as a message box will be YES or...

View Article

wmi filter in powwershell script

Good Morning,I'm trying to get computers records in my dns server using get-wmiobject : Get-WMIObject -Computer '[DNSserver]' -Namespace "root\MicrosoftDNS" -Class "MicrosoftDNS_AType" -filter...

View Article


Employee Directory (Active Directory) in HTML using VBScript

Hello,Can someone give me an idea how to accomplish the task of creating an Employee directory HTML Page using Active Directory and VBScript?  Please help or give me a base.Thank you.

View Article

Changeing preferences on network printer queue with Powershell

Hi,I found a script on this page - http://gallery.technet.microsoft.com/scriptcenter/878e6bac-e2a1-4502-9333-5b1420f8b957 - that I am trying to adapt to work on my users computers and not only on...

View Article


Set Single user with reviewer access to multiple conference room calendars

Want to add a single user with reviewer access to multiple conference room calendars, used the below but it given a below error , Single user i am able to add but single user for multiple confernce...

View Article

VB Scipt to list all users in the local administrators Group on a member server

Hello. I am new to scripts and would like to know if the following is possible:I need a list of users, groups and details of all nested groups and it's members who belong to the local administrators...

View Article

vbscript write data from the database in word

I have this code and it displays the query results on the pop up notifier. But I would like to write the results to a word document on my C drive. In the word document I inserted the DocVariable field...

View Article
Browsing all 15028 articles
Browse latest View live


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