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

HOw to update excel sheet using powershell

Hi,We have a small lab of 100 machines. I want to collect a the user name, logon time and logout time on a excel sheet which is PRESENT ON SERVER location (\\server\D$\list.xlsx). I have a script to...

View Article


Create an Optional ParameterSet with Two Mandatory Parameters

My goal is to end up with a syntax that looks like this:Cmdlet [[-ReportStart] <DateTime> [-ReportEnd] <DateTime>] [<CommonParameters>]The idea is that the Cmdlet can be run either...

View Article


Script to check specific service and status

Hi,i have a list of machines which on i want to chek few specific services AVAILABILITY and its STATUS. If these services are absent then it should give me the machine name of that machine and the...

View Article

Use local profile within powershell remoting

Hi guys!I spent a lot of time to find a solution below :) If you want to use your local powershell profile within powershell remote session (that is not supported by default due to security reason),...

View Article

Powershell Script for automatic password reset in Active directory

Hi All,Is there any script(Powershell) which automatically reset the password in Active directory for user account.Also it should automatically trigger an e-mail to the particular user.For Example :In...

View Article


Powershell ntfs rights to a folder

Hi,I am trying to make a powershell script that can set permission of a group to a folder. At this moment i have New-Item -ItemType directory -Path \\127.0.0.1\Home$\\test$acl = Get-Acl...

View Article

VBSript In GPO will not create Wscript.Shell object

Hi Scripters!I have written a dynamic logon script where admins can simply manage which user gets which printer mapped etc. (Doesn't matter at all)In the first lines of my script I am trying to...

View Article

'Comment' AD Attribute for a computer

Hi All,I'm having an issue adding text to the comment attribute in AD using powershell for a computer object.I have used the follwoing (from MS technet article) to update the 'description' field but...

View Article


Batch File - Replace old version

I have a Word document that I have created which contains several macros. This file is copied by other employees into different folders on the file server for them to use.  I often make admentments to...

View Article


Looking to send an e-mail using 365. I need to add an attachment.

Here is what I has so far and I am very close. I have tried many things. I added$attachment = New-Object System.Net.Mail.Attachment("XXXXX") But didn't work. The script below works for me I just need...

View Article

Exchange 2013 current connections formattng issue

Firstly sorry I'm new at Powerscript I need a few reports that shows the current connectionsGet-Counter“\MSExchange RpcClientAccess\User Count”,“\MSExchange OWA\Current Unique Users”,“\RPC/HTTP...

View Article

Image may be NSFW.
Clik here to view.

Powerhsell progress bar during an operation

Hi,Id like to try and use the progress bar features from New-ObjectSystem.Windows.Forms.ProgressBarbut I can't find any examples on how to use this during an operation. I have a command which I use to...

View Article

Sending E-mail from Powershell Failing with .rar attachments

Hello,Below Powershell script sends email reading a csv file and attachments of .pdf files perfectly. I want to send compressed file by winrar in .rar as attachments but it fails to send. Error: Email...

View Article


Copying and installing an MSI to multiple computers

Hello, I'm trying to troubleshoot this script. Any help would be appreciated.The first error I'm getting is "Access Denied" when attempting to copy the .msi file. The file path gets created but then...

View Article

VBS URL Program Help!

Alright Quick question for any VBS/Javascript coders out there. Basically I am making a script that scans a website for a phrase in plain text then tell me if it is there; However, I need it to change...

View Article


Load computer names into VBScript and have it scan all drives for a file.

I am new to VBScript but have been asked to create a script that searches for a file on a list of remote computers. I found this script but it doesn't seem to finish searching all of AD like is says it...

View Article

Need help using new-webserviceproxy

I am trying to follow the example in this article, http://technet.microsoft.com/en-us/library/hh849841.aspxHere is what I'm getting, any idea what the issue is? I've tried this from a few different...

View Article


Powershell XML file modification

Hi, Could someone assist me with a Powershell / XML type question please, i am trying to write out element values in a nmde but its being writen at the wrong level, i cant seem to get it...

View Article

Add additional SMTP address to all users in Exchange 2010 SP1

I am trying to find a script that will allow me to add an additional email address to everyone in the company in the format of:firstname.lastname@domain.comI do not want this to be the default address...

View Article

Create SCCM 2007 Collections from CSV

Hi, I'm pretty new to powershell so any help would be appreciated! I've created the following script to create a large number of SCCM collection based on a CSV containing AD Sites.The script uses the...

View Article
Browsing all 15028 articles
Browse latest View live