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

Script create contact and set forwarding address (script doesn't seem to use...

If this script is run, it errors out with "operation couldn't be performed because object "object" couldn't be found on "domain controller."Then it prompts for information:"ExternalEmailAddress: "If I...

View Article


Count active users and email report

HiI am in need of a script that can create a count and list of users that have logged on in the last 40 days from within a specific organisational unit in active directory and have it emailed to me.The...

View Article


Mapping network drives using VB Script

Hi, i'm currently using VB Script to map all of our shared drive to client workstation. i would like to know if anyone can advise if there's any possible ways i can make the mapped shared drives only...

View Article

Power Shell - Running a program - Issues ??

HiI used http://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx as the basis of trying to run a exe from powersehll which has arguments.Article Example...

View Article

Need help with this.

I have a list of multiple PTR records and I'm trying to remove the first IP (technically the last octet) from each PTR to create the record using Powershell. Example: Currently PTR:...

View Article


VBS to share a folder on multiple servers

HiI used the following script to share a folder on multiple servers..... INPUT_FILE_NAME = "C:\temp\Computers.txt"Const FILE_SHARE = 0 Const MAXIMUM_CONNECTIONS = 25 Const FOR_READING = 1Set objFSO =...

View Article

ICACLS WITH POWERHSELL

Dear All,I am trying to assign permissions in Add mode to certain folders with powershell + ICACLS ,wherein read the data from a CSV and apply the permissions. Iam trying:Here i have a input CSV file...

View Article

Any idea why?

PS C:\Windows\system32> $propFolder = (Get-ChildItem "C:\Proprietary" -recurse | Measure-Object -property length -sum) PS C:\Windows\system32> $propFolderSize = "{0:N2}" -f ($propFolder.sum /...

View Article


Use Powershell to check where an ssl cert is applied

Is it possible to use Powershell to check and see where a particular ssl cert has been applied on which server?

View Article


IPM.Contact export

Good morning everyone. I have a question, and since I am not a Powershell guru, I was curious if anyone knew how to accomplish the following:I need to query mailboxes and transverse all folders to look...

View Article

Clear-event log error..Kindly Help Me.

Hey All, kindly help me. I am using  below powershell script to delete event log from all my client machines.$computer = get-content c:\system.txtclear-eventlog "system","Application","Security" -comp...

View Article

Using Powershell to script the restart of two Microsoft Dynamics AX services...

I need some help writing a Powershell script to restart two services if either of them isn't running.  The script needs to include logic to stop a process if the service doesn't stop within 10 minutes...

View Article

Test-Path only works the first time

I am somewhat new to PowerShell programming and have come accross something I can’t figure out.I wrote the following script using ISE. It uses test-path to find out if a SQL database exists. If the...

View Article


4398046510080 byte (4TB) limit on FileSystemObject Disk Properties?

Using FileSystemObject in vbs to check Disk.FreeSpace or Disk.TotalSize I can't get more than 4398046510080 bytes returned. Anyone tell me why and/or how to get around it?

View Article

VBSCRIPT: Get Quota Details of a shared remote folder

Hi,I'm trying to query following quota details of a particular shared folder on multiple remote computers:Quota Path, Limit, DiskSpaceUsedSearch took me to the...

View Article


how to pass a variable which will update key value in Powershell script

Hi, I have several Powershell script which is used for uploading azure package. Currently those scripts are hardcoded with package location from where it will take the package. The location is like...

View Article

home drive

I m using a script to create multiple home drives on a particular path on one server. I need to modify this script so that I can create home drives on another path on a different server. I think I have...

View Article


Get SMTP Statistics based on users in CSV file

Hi,I am trying to find a script that gets the e-mails sent/received based on primary e-mail addresses of users that I filtered out in a CSV file, I used the cmdlet Get-MessageTrackingLog, however, the...

View Article

Generate text files with Dynamic values

Hi,I have to run the following command Djoin.exe /Provision /Domain /MachinePC1/SaveFile C:\PC1.txtThe above command generates a text file called PC1.txtI have to generate the text file for several...

View Article

How to delete SMTP address using cmdlet?

Hello,I want to delete the address which I got after executing the following command -Get-AdUser msft -properties proxyaddresses | %{$_.proxyaddresses}|?{$_ -cmatch 'SMTP:'}For e.g. - For user/mailbox...

View Article
Browsing all 15028 articles
Browse latest View live


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