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

VBA Outlook to get the user name of who modified an entry in a shared public...

Can someone help advise how I can locate using VBA for Outlook the user name of who modified an entry in a shared public folder for contacts?I can easily get the contact details for everything else...

View Article


Notification by mail when a TCP printer toner is low

How Can I receive notification by mail when a TCP printer toner is low?Note: I have configured all printers on my computer.HeeeeelpThanks

View Article


Return in IF statement and Function Powershell What is C# equivalent?

Function updatedataset { param ($ds)  $ds = $dataset  $da = New-Object system.data.sqlclient.sqldataadapter $ds.ExtendedProperties["sql"], $ds.ExtendedProperties["connectionstring"] $cb = new-object...

View Article

Showing attributes in AD with powershell

hi, I want to list one of the attributes in my AD with powershell codethe problem is, this attribute seems an attribute that created by my company, and I dont know how to list it, since if it were a...

View Article

powershell script to obtain diretories older than x days

I must process all directories older than x days . This test-statement is ok: Get-Childitem -path $InputPath -recurse | where-object { $_.LastWriteTime -lt (get-date).adddays(-7) -and $_.PSIsContainer...

View Article


Increasing timeout of a webservice call in powershell.

Hi All,I have a script that calls  an asmx web service written in c#.The only problem is that when i go to execute the line in the script that invokes a method in the web service - I get a timeout...

View Article

Need a VBScript that calls a batch file to run on remote computers

Ok..!! I ve searched about it a lot and have decided to ask in scripting guys... Actually , I have a batch file which when executed will map a network drive and executes some applications on the...

View Article

Using Powershell to update EmployeeNumber

Hi,I've using a powershell script to take a Oracle extract (csv format) and update Active Directory objects with the information therein. All fields get updates no problem (sn, givenname,...

View Article


Delete Home directory for disabled users question

I need a script which delete the home directory of disabled  users after a specific time ( say 120 days) .For that i  have got a script which connects to an OU and deletes all disabled user's home...

View Article


Check if any elements in one array exist in the other

Is there any way I can check to see if one array, say $arrayOne, contains any elements from $arrayBase? They may not necessarily contain the same elements, and may be in a different order, so iterative...

View Article

Active directory memberof and nested memberof groups

hello , do you know how can i extract group memberof and nested memberof in a list.csvfor one group = $group = [ADSI]"LDAP://CN=GG_ADM_BULL_SIAM,OU=GG,DC=ho,DC=fr,DC=wcorp,DC=carrefour,DC=com"...

View Article

This common Vbscript returns directory names which are all lowercase...

Hi all,This stock standard MS script below returns the first level directory listing. However, it does not return it the way it is in the actual directory. It alters the case which I desperately want...

View Article

VBScript Command Prompt - wscript

Hello,I'm very new to scripting and need assistance creating one.I need to create a command line prompt on a Wyse terminal server using Windows XPembedded.What needs to happen is for a cmd window to...

View Article


Set existing directory with permissions via powershell with CSV

Hi all.Long time lurker and first time poster! There is some great stuff here and i'm hoping someone can help.I have found heaps on creating new directories and setting permissions with powershell and...

View Article

Rename user accounts in AD from file (e.g., .CSV)

We have Windows Server 2008 R2 Domain Controllers.We have user accounts in an OU called "Students", which in turn have child OUs separating the students by graduating years (e.g., 2014, 2015, 2016)....

View Article


How do I change a file accociation with a script?

I'm trying to write a script that will open all .TIF and .TIFF with Microsoft Office Document Imaging.  We are running Server 2003, so we don't have the luxury of using GPO or side extensions. We just...

View Article

PowerShell - Out-Gridview

How do you display the result for the below PS to Out-Gridviewclear #$SqlServer = read-host "SQL Server Name" #$SqlCatalog = read-host "SQL Database" $SqlServer = "evanvuuren-dv7" $SqlCatalog =...

View Article


Powershell - Add string to variable with no line breaks

I am trying to do what I thought would be very simple and join a few strings together in a powershell script.  Here's what I have tried so far.Example1: $userprofile = "C:\users\" + $user +...

View Article

Zip some, delete some, keep some - script, help needed

Hello,We've got a HUGE folder where we keep copies of databases, contracts, documentation etc etc for years and years. The data we generally receive or store as .zip files, but from time to time...

View Article

Automation USER ID/ PASSWORD using DOS batch files

Hi,Hope somebody can help me.I am calling an application's exe file inside a DOS batch (.bat) and provide the password when the application launches, by typing manually. But I want to include the User...

View Article
Browsing all 15028 articles
Browse latest View live