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

Robocopy Into New Directory

I am looking for a switch (that I haven't found yet) or a way for RoboCopy to copy into a newly created destination file such as:D:\Webs_Databases\041114 Where the 041114 folder has already been...

View Article


Get-ADUser - "memberof" value returns DN

I am not not an expert in scripting. I have a simple powershell script. I can extract "memberof" attribute value but the value is in a DN. I want only group names to be exported. Someone please help me...

View Article


Send In-line or Embedded Html Images Using Powershell Send-MailMessage

So I was trying to send an email with images embedded in it using HTML and powershell but I'm not sure how to access the cid to reference the images when I add them to the Send-MailMessage -Attachments...

View Article

ForEach export assistance

Any help with this would be GREATLY appreciated, our scripting person is out and i need to get all the local users off a list of computers. however the script we have doesn't export it to CSV. I've...

View Article

How to run get-gporeport with different credential?

   Hello to all . I need to export all domains' GPO to a HTML file so I use get-gporeport command. I'm importing the right module (Import-Module GroupPolicy) but I'm not figuring out a way to run the...

View Article


Power Shell cannot see mapped network drive

I have a network storage device that is also my personal Cloud and wanted to synchronize files on it using Power SHell so that they were always up to date.  PS cannot see the drive.

View Article

Update AD values

Hello,We are trying to loop through a recordset to update AD values that have changed.  If the value for a particular property in AD already exists (ie middle initial) then updating that value to...

View Article

Using PowerShell to auto archive exchange mailboxes to *.pst.

I am trying to auto-archive terminated users' mailbox to *.pst using PowerShell.  I use the commandlet, New-MailboxExportRequest.  I then type in the the correct file path and mailbox name; however, I...

View Article


LocalHost converting the LastBoot time of RemoteHost into LocalTime

The Uptime script showing correct LastBoot time on local server however showing incorrect LastBoot time of Remote server. LocalHost converting the LastBoot time or RemoteHost into LocalTime Function...

View Article


help disabling expired user accounts in AD

I'm looking for a bit of help here... I'm trying to create a vb script that looks for all user accounts that has expired before today and disables them. After aLOT of scrounging the interwebs I've been...

View Article

unLock Ad user from all Domain controllers

We have 13 domain controllers in  5 Active directory sites, Unlock status is not updating in All DC's immediately. please help me to unlock Ad user from all the Domain controllers.Below is the script...

View Article

Powershell upload a file via new-webserviceproxy

Hi,I am a great fan of powershell, and use the new-webserviceproxy all the time to connect to the webservice for one of our tools (CA Service Desk). BUT.... I am now trying to upload a file, so there...

View Article

Powershell rename-item reports both dirs have the same name

Hi guys, I have a simple script to rename folders which is not working as expected. I have 2 variables for this specefic example    $fullpath = "\\SERVER\files\Operations\RELATIES\Klanten\11143 -...

View Article


LastLogonTimeStamp

Found the following script on the web.  It works great if you want to get the LastLogonTimeStamp from every object in the OU.  What i would like to be able to do is specifiy a "username", search AD,...

View Article

Import CSV and clean up each column.

Hi, I have a messy column in a CSV file it looks like thiscolumn1,column2,column3 2013-01-01,Servername,dnsfsdf=""4324"" tcpsdsd=""334455"" DataTransferred=""43556677""how do I clean up column3 and...

View Article


windows event viewer

Friends i am looking for script to extract server 2008 event logs from network in csv format. I have around 12 server and i want to extract all server daily logs in one location,  also i am new into...

View Article

display results of the power shell commands

Dear all, first i am new to power shell so forgive any misunderstandingi have created the folowing power shell code that creates a  window with  buttons. Each of this buttons run power shell commands...

View Article


Display message using If condition is null in Power-shell

Hi All,         I am getting list of particular product using power-shell.I want to display the info if i didn't get any list of info as "No information  exist with this product".       I had received...

View Article

PoswerShell - Compare 2 x CSV files, only if data matches in column 1 add all...

OK, 1st the background... I have been provided a list of users of a particular group. We needed to know what computers (or IP's) the users are connected to...So, using Shared Folders, I have exported a...

View Article

Powershell Script to list pdf files in a directory

Hey Scripting guy, I read few of your forum solutions for the scripts and was really enthralled to embrace this powershell scripting, thanks for the motivation.I am still a learner and want to learn...

View Article
Browsing all 15028 articles
Browse latest View live


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