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

Search Rest API: LastModifiedDate to a readable Format

Hey,a call a rest search service and get my items returned.But how can i make a readable format from the datetimes?With the following datetime Modified 2013-07-06T095000.0000000Zit is not...

View Article


using vbscript to read a remote file with alternate credentials

Hello,im writing a script with vbscript that monitors remote log files.i can easily access remote files with the "Scripting.FileSystemObject" object and a UNC path.i just use the administrative share...

View Article


A little Powershell Help - Powershell - parse directory names on remote...

I am trying to get the $names of the most current profiles on XP hosts by using get-childitem. Then for each name returned get the size of the desktop, my documents, and *.pst"I pieced together the...

View Article

Creating Folders based on usernames created from a .csv file using PowerShell

Hi,   To preface, I am very, very new to PowerShell.I am trying to write a script that will reference a .csv file that has two columns (First Name & Last Name) and three names. I want to create a...

View Article

Script to enable/disable Secure Boot

HelloI created an image for Dell Latitude 10 tablets, I have configured it to enable Bitlocker automatically, unfortunately Dell have release a new version of BIOS (A05) which stops me from enabling...

View Article


To estimate the sleep time to be given when compressing a file using windows...

Hi,I am trying to compress a file whose size is inconsistent and may vary everytime.So, each time I have to increase the sleep time for bigger size files after the script fails to zip it.below is the...

View Article

[VBscript] search numbers after a CNTREF in .html.

Hello,I am very new in scripting. I have just create a script using powershell that create an .html report and send it to another server. The report contains a line with server reference “CNTREF:...

View Article

Image may be NSFW.
Clik here to view.

How to set security setting for Powershell?

When I try to set security for Powershell on Window 7 Home, referring to following linked image, I get following error messageDoes anyone have any suggestions on what wrong it is?Thanks in advance for...

View Article


Image may be NSFW.
Clik here to view.

Creating New DFSR Folder Memberships

Hi, I've been trying to write some end to end Powershell scripts using the DFSR Powershell Module published by Mike Walker here.  The module is great (thank you Mike), however I'm incurring an issue...

View Article


Windows batch script FindStr to search for a string and matching line

Hi Gurus,I've been having some problem in using FIND or FINDSTR command to find a particular string in a log file and return its output with the matching string along with 1 line above and 1 line below...

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

Windows 7 will not map home folder

We are having an issue with our Personal drive not mapping through Active Directory on Windows Server 2008 R2.  We use vbs scripts to map our other folders.  This only happened when we introduced...

View Article

Trying to add two scripts together and run as administrator

I am trying to put all of these scripts together and I cant seem to get it. I think it has something to do with my format. It always has an error saying it needs to be ran as admin but I cant seem to...

View Article


Problem searching for an AD user by powershell

Hi,I'm new in Powershell scripting. I'm trying to search for a specific user to update some of his attributes from a powershell script that create this user using EMS. But I'm getting the error at the...

View Article

Stopping or changing batch script execution if no files created yesterday?

I'm looking for ideas on how to change the execution of my script if no files were written *yesterday*.I have a 3rd party system that's directing its backups to an FTP folder on our Windows system.  To...

View Article


Parallel process and pop up notifications

Hi all, Anyone know of a good way to run prework notifications / work process / workdone notifications ?  Need to run prework notifications and work process in parallel. I am using either new-object...

View Article

Code to detect if NLB is enabled on NIC?

I wasnt sure where else to ask this. I have a list of 2003/2008/2008R2 servers that I was able to get and find that the 'Network Load Balancing' service was installed on the NIC(s).  What I am trying...

View Article


Send powershell generated html files to a printer via a scheduled task...

How can I script the printing of a powershell html report I have generated? The needs to be run on a box as a scheduled task.This was more difficult than I thought it would be as I found automating...

View Article

Powershell - Copy Folders based on Date

Hello,Be thankful for help,I have a list of FOLDERS like ( first 2 digits = branch number, rest are the current date )01-20130613, 02-20130613, 03-20130613 .......25-20130613. These folders has to be...

View Article

Find unique values in a row from 2 different columns

I have some data that looks similar to this:Column1     Column2     Column3     Column4     Column5GoodData    123            GoodData   ABC             GoodDataGoodData    123            GoodData...

View Article
Browsing all 15028 articles
Browse latest View live


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