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

Modify an user attribute using Powershell script

In the current account creation script I am setting the following two attributes targetAddress and proxyAddressess:$UserAttributes[0].Add('targetAddress', $User.mail)...

View Article


Help with Powershell script to gather eventlogs from all Domain Controllers

I am trying to write a script to grab the last 5 days of application, security and system logs from all domain controllers. The script runs but only pulls the logs from the local server. The $Computer...

View Article


Execute the batch file at specific process count

Hello Everyone, I have a batch file which kills the wscript.exe process, I am doing this manually, I need to schedule this batch file to run from task scheduler whenever the process wscript.exe reaches...

View Article

error creating efi partition with powershell

Hello. I have a problem when trying to create the partitions for installing windows 8 on a GPT disk. The error happens when trying to create the efi partition. The command that is in bold. The error...

View Article

Alert Based on Last write time

I am writing a script based on the last write time. For the most part it works; however, the script sends out an email everytime the script runs. Ideally, I would like to have the email sent only when...

View Article


how to continually check an array until all values are the same in the array

Hello,I have an array and I would like to keep looping through it until all values contained in the array are true, but i am unsure how to construct this.this is what i have$AllISCSIConnected = $false...

View Article

script for generate randomize administrator password which make log file to...

HiI Need VDS script in order to change domain client local administrator password in my domain ,and put this script in startup script via group policy, but for security purpose  I want to randomize...

View Article

Search computers for specific files in domain

I need to find specific files in computers in domain environment. I tried several scripts (VBS and PS1) but I couldn't find antything really works for me. How can I manage this using PowerShell? (PS: I...

View Article


Running a function from a powershell script from the command line

Rather than creating several scripts each with one function, I have one script with has several functions.... I would like to call the script and select the function i want to use from the command...

View Article


IPADDRESS/SLASH Help

Hi Scripting Guys,I've got a script which works perfectly on Win8 but fails on Win7 which must be down to the PS version, I am using V2.0 on Win 7The error I get is as followsMethod invocation failed...

View Article

Working with XML and dates (i'm a begginer).

Hi everyone, First of all, sorry for my english i'm a french user and I find no community in French to talk about my problem : I have an XML file like this :<?xml version="1.0" encoding="UTF-8"...

View Article

add buttons to an HTA title bar

I have coded a JUKEBOX. The current artist, title, and time remaining are scrolling across the title bar. I would like to add a next, previous and pause button to the title bar so the user can control...

View Article

VBScript to query DNS properties for multiple servers

Hi guys,I have put together a script that will query the DNS properties (Preferred and Advanced) of a remote computer. I need this script to query a text file that contains multiple server names (one...

View Article


Script for exporting the Delegated List from Exchange 2007

We are Planing to Migrate the Exchange 2007 Mailbox to O365 by Hybrid deployment.So i would like to generate the List of delegated access rights on Mailboxes, could you help the script for genetating...

View Article

Run script from explorer context(right-click) menu

Hi,I have an existing powershell script which removes certain filetypes from a directory however it requires the script and shortcut to be in the directory I want to process. I was wondering if it was...

View Article


Vbs to exe converter/encoder

i would like to know if there's any free vbs to exe converter/encoder?

View Article

Copy files from CSV file

HI,I'm new in PS and i need to copy list of files from Column A to Column B.i was trying:Import-Csv .\PS.csv | foreach {copy-item $_.SOURCE $_.TARGET}.the SOURCE is located on my NFS  where i hae full...

View Article


how to convert back from UTF8 to ISO-8859-1 encoding?

hi,I have a bunch of XML files which were wrongly encoded, and we lost all our accent characters.ie: é become éso how can I recover my XML files using powershell?so I want to change all the UTF8...

View Article

Import-RecipientDataProperty

I have a script that I use to upload photo's into AD and Exchange.  I'm wanting to know if it is possible to automate the script to do the following:1. Check to see if the AD account has a photo, if...

View Article

DFSR Reporting " not working correctly

I'm trying to get the following script to work, posted questions at the site but not sure if he is viewing the blog...

View Article
Browsing all 15028 articles
Browse latest View live


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